Skip to content

Warn when container URL does not reference a tar#1644

Open
dterrybd wants to merge 4 commits intomasterfrom
dev/dterry/IDETECT-4847-container-url-warnings
Open

Warn when container URL does not reference a tar#1644
dterrybd wants to merge 4 commits intomasterfrom
dev/dterry/IDETECT-4847-container-url-warnings

Conversation

@dterrybd
Copy link
Contributor

@dterrybd dterrybd commented Feb 2, 2026

Detect will attempt to run a container scan on any file or URL given to it via detect.container.scan.file.path

While we don't want to stop this and break current behavior, we do want to let the user know that their results might not be what they are expecting. For example, there are cases where Detect is unable to deal with the file but reports success anyway.

In cases where the file or URL does not point to a tar file we will warn the user of this and then continue the scan as we currently do. Documentation is also updated to mention this really should be a .tar file.

.setHelp(
"If specified, this file and this file only will be uploaded for container scan analysis.",
"Detect will accept either a user provided local file path, or remote HTTP/HTTPS URL to fetch a container image for scanning. The CONTAINER_SCAN tool does not provide project and version name defaults to Detect, so you need to set project and version names via properties when only the CONTAINER_SCAN tool is invoked."
"If specified, this .tar file and this .tar file only will be uploaded for container scan analysis.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tiny tweak suggestion:
"If it is specified, only this.tar file will be uploaded for Container Scan analysis."

@dterrybd dterrybd requested a review from cpottsbd February 2, 2026 15:27
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.

3 participants