exclude a family of checks: --skip-checks-prefix
See original GitHub issueIs your feature request related to a problem? Please describe. It is useful for CI tools to run checks on specific families of checks, and exclude the default rules, or rules, matching the prefix. this is separate from the existing check_id exclusion, or, the inline “nosec” feature.
Describe the solution you’d like
a flag similar to --skip-checks-prefix
. Input is a prefix string. Checkov will skip/disable checks that match the prefix “$prefix-*” and exclude them from reports.
Describe alternatives you’ve considered I’ve considered filtering the output of the scan results in my CI tooling. I would prefer if an individual GHAction or CircleCI orb fail the build right from checkov, rather than maintain a second step in my CI tools.
Additional context For example, we have an internal set of controls related to Trust Service Criteria and other internal controls. It would be helpful to run checkov ONLY against the TSC_* or ACME_CNTRL_* rules, which would “Fail” the scans invoked by the compliance/sec-ops teams.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
can you please open a new issue? @vangundy-jason-pfg
https://github.com/bridgecrewio/checkov/pull/750 does not seem to be working as expected. For a simple recreation I have a file with an aws secret in it. The following fails appropriately:
But then the following wildcard attempt to skip this check does not work (i.e. it still runs and fails):
Would it be best to file this as a new / separate issue @metahertz ?