checkov-action
checkov-action copied to clipboard
Option to specify 'check' severity
There is an option to check individual checks via their identifiers. It would also be good if you could select the checks by their severity.
For example only "--check HIGH" as in https://github.com/bridgecrewio/checkov with "checkov -d . --check MEDIUM".
My current config is:
- name: Run Checkov action
id: checkov
uses: bridgecrewio/checkov-action@master
with:
directory: .
quiet: true
soft_fail: false
framework: all
output_format: sarif
download_external_modules: true
log_level: WARNING
check: LOW # Results in - no checks applied
This feature has been in Checkov itself for a few months now and for me is one of the most useful configuration options to have. Enabling this setting in the Github Action would be by far the lowest overhead to integrate checkov into existing IaC projects, and get meaningful but well-scoped feedback for new projects as well.
Hope to see it feature here soon! 👍
- name: tests-checkov-sam
if: hashFiles('**/serverless.yml') != ''
uses: bridgecrewio/checkov-action@v12
with:
check: 'MEDIUM,HIGH,CRITICAL'
I reckon you need at least 2 and a coma XD
hey everyone, this works since it was added to checkov
, but you need use an API key for severities like in checkov
.