Skip to content

Conversation

@DanaMaxfield
Copy link
Contributor

@DanaMaxfield DanaMaxfield commented Nov 10, 2025

PROBLEM: When scanning Docker images, Detect uses the name of the version of the image as part of the scan location name. In the case of Alert, we do 'QA releases'. So, prior to release, we could have multiple versions for the images, meaning each will create a unique scan location name. This also means that if we address vulnerable dependencies in one QA version, they will still be present in the BOM because of the unique versioning we use. Detect already has the ability to address this with the option --detect.code.location.name. See screenshot below for the number of scan locations we have for Alert 8.0.0

SOLUTION: This change adds a boolean parameter to DockerImage.groovy. If set to true, this will append --detect.code.location.name= parameter, with the image org, name, and "cleaned" version. The cleaned version is the version with -SIGQA and -SNAPSHOT stripped off. So this means if the input image is blackducksoftware/blackduck-alert:9.0.0-SNAPSHOT, this process will append --detect.code.location.name=blackducksoftware_blackduck-alert_9.0.0 to the process. This was tested with the Alert 9.0.0 images.

image

@DanaMaxfield DanaMaxfield merged commit ee1208b into master Dec 2, 2025
@DanaMaxfield DanaMaxfield deleted the dev/djm/IALERT-3910-clean branch December 2, 2025 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants