--check and --skip-check lists defined in files
See original GitHub issueIs your feature request related to a problem? Please describe.
We have a need to either define multiple skip checks
or multiple checks
. Would be great if we could load them from a file and not define explicitly in the cli param
Describe the solution you’d like
--skip-check-list /path/to/file --check-list /path/to/file
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:18 (11 by maintainers)
Top Results From Across the Web
Suppressing and Skipping Policies - checkov
To skip a check on a given Terraform definition block or CloudFormation ... and then the --skip-check list will be applied to remove...
Read more >SKIPCHECK - IBM
(Skipping rules-calculated cells will cause consolidated totals to be incorrect). When the sparse consolidation algorithm is turned off, every cell is checked ......
Read more >Prioritize, skip, and fail with policy severities in Checkov
Policy severities are now included in Checkov to help prioritize findings and make CI/CD skip and fail flags more manageable.
Read more >pt-online-schema-change — Percona Toolkit Documentation
Do not use this tool before reading its documentation and checking your backups carefully. ... Read this comma-separated list of config files; if...
Read more >Package Deployer tool - Power Platform | Microsoft Learn
You will be modifying these files as described later in this topic. ... Enter pac package help to see the list of subcommands....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
To further illustrate the point I was trying to make, I established a very simple/checkov-compatible initial data contract for exceptions, such as:
Now we just need a mechanism (currently) to get those suppressions in-line (although my preference would lean towards a new mechanism where skips could be passed automatically to the filter where they’re utilized). However, the current model can be processed by a shell script such as:
This would need to be paired with a CLI flag to disable in-line suppressions (for audits sake an enterprise needs to track such security exceptions to established policy, things like approvals, requestor, requested date, expiration, last update, etc). I feel like the data retrieval on the JSON can be handled outside of checkov, and that checkov itself would not need all of this data, since it is purely doing the exception handling, but it would need a way to be passed in as a JSON blob or file.
Note: this is just a preliminary analysis, something such as
moduleName
might also be necessary in the JSON to help distinguish between similar named resources at different levels, etc.@larryboymi you can use the
--framework
/--skip-framework
flags for restrictions on specific IaC type(s). The--check
flag restricts specific checks on specific resource types, so tweaking it to scan only specific resource types is feasible. Explicit resource types granularity is not supported yet, but that’s a great idea. @schosterbarak WDYT?