-
Notifications
You must be signed in to change notification settings - Fork 239
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
severity set to CRITICAL but action returning all vulnerabilities when using Sarif format #95
Comments
thanks @larryclaman for reporting this - we'll take a look @krol3 could you check if your unit tests are able to reproduce this issue locally? |
I believe this is because of the SARIF output format. According to the following lines, this is by design: Lines 138 to 144 in a7a829a
|
@kgeorgiou Thanks for pointing this out. Couple of thoughts:
|
cc @simar7 -- could you comment on the above? I'm trying to understand why sarif reports have special case to return ALL vulnerabilities rather than respecting the user's filter settings. |
Sorry we missed documenting it. Please feel free to send a PR.
GitHub allows the user to filter vulnerabilities. The idea is to report all, irrespective of the level and only fail (return non zero exit code) if a vulnerability was over the user specified threshold. |
I'm using the gh action to scan my container, and I have the severity field set to critical, but the scan seems to be returning ALL vulnerabilities. My code looks like:
The text was updated successfully, but these errors were encountered: