Exit code for misconfiguration scan? #1561
-
I am scanning Dockerfiles using the From what I see there is no option to specify an exit-code that would fail the build if a misconfiguration is found with the built-in policy. Nor do I see an option to output to a json format that we could easily parse. How should I go about detecting misconfiguration and automatically failing my build in a CI pipeline? For now I don't see any other option than parsing the console output for certain keywords. Regards, Olivier |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Did you try
|
Beta Was this translation helpful? Give feedback.
Did you try
trivy config -h
?