-
Notifications
You must be signed in to change notification settings - Fork 594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
grype 0.64.0 doesn't list vulnerabilties if --fail-on
fails
#1392
Comments
Seeing the same behavior, as well as Grype ignoring the .grype.yaml whitelist of CVEs Downgrading to Grype v0.63.1 resolves both issues. It seems there was an API break between v0.63.1 -> v0.64.0 that broke both functionalities |
Hi @kwelch426 and @Atharex, thanks for the bug reports. For the issue reported here, I've reproduced it on latest grype. Note that it only happens in the failure case:
Here's the previous behavior of grype (by cloning grype, checking out the tag
I'll try to also repro the issue @Atharex reported and probably open a separate issue for it. @Atharex, do you have an example config and image that exhibits the issue you're seeing, that you're comfortable sharing here? |
@Atharex can you open a separate issue with steps to reproduce the whitelist issue you're seeing? We'll keep this issue alive for the issue of not showing an output on failure. My attempt was not successful
Allowed
Found
|
--fail-on
fails
What happened: Updated grype from 0.59.1 to 0.64.0 in our build pipeline which runs:
grype containername -q -f critical --only-fixed
.It used to display a report with the list of vulnerabilities in a table. Now we just see:
What you expected to happen: We expect there to be a table output with the vulnerabilities listed like in previous versions.
How to reproduce it (as minimally and precisely as possible): Grype 0.63.0 works correctly. Download it and run grype containername -q -f critical --only-fixed. Replace containername with a container with known critical vulnerabilities. Then run the same command using grype 0.64.0
Anything else we need to know?:
Environment: N/A
grype version
: 0.64..0cat /etc/os-release
or similar): Ubuntu 22.04.01 LTSThe text was updated successfully, but these errors were encountered: