Exit with error only on specified severities #5958
PascalTurbo
started this conversation in
Ideas
Replies: 2 comments 3 replies
-
|
It can be achieved by |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
@knqyf263 can it be done with stdout? I pipe my trivy output to reviewdog so it can creat github PR comments. not sure running it twice is a good approach in pre-commit. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
For usage in CI Pipelines it would be great to configure, when trivy should exit with or without an error. For example, if CVEs with critical severities are found, trivy should fail with exit code 1. But if the highest severity of a scan is LOW, trivy should succeed.
Target
None
Scanner
None
Beta Was this translation helpful? Give feedback.
All reactions