Closed afterdesign closed 10 months ago
hey @afterdesign thanks for reaching out.
The CLI flag help text clearly mentions it is only for CLI output and not for SARIF or any other output. Implementing it would mean a breaking change, so it needs to be properly timed.
--quiet in case of CLI output, display only failed checks. Also disables progress bars
@gruebel 🤔 So why does --quiet
work with -o json
also ? Is there a way that sarif
report can have only errors so I can use it with reviewdog ?
When using
-o sarif
theresults.sarif
file ignores--quiet
and rules that were inline ignored. Results and expectations showed in examples below:How to replicate
Example
test.tf
:docker run --pull missing --tty --volume "$PWD:/tf" --workdir /tf bridgecrew/checkov:latest --quiet -o cli -f test.tf
produces:docker run --pull missing --tty --volume "$PWD:/tf" --workdir /tf bridgecrew/checkov:latest --quiet -o json -f test.tf
produces:docker run --pull missing --tty --volume "$PWD:/tf" --workdir /tf bridgecrew/checkov:latest --quiet -o sarif -f test.tf
produces cli output:And
results.sarif
file has this: