Usage of --external-checks-dir, custom checks do not get recognised
See original GitHub issueDescribe the bug: I created a basic yaml custom rules and I plan to create several new rules. Currently I don’t get why the custom rules does not get asserted as it should be.
My custom rule checkov-checks/chekov_custom_rule_tagging.yaml
looks like that:
---
metadata:
name: "Check that all resources are tagged with the key - InfoSecClass"
id: "CKV_AWS_123"
category: "GENERAL_SECURITY"
scope:
provider: aws
definition:
cond_type: "attribute"
resource_types: "AWS::EC2::SecurityGroup"
attribute: "tags.infosecclass"
operator: "exists"
And I run it via checkov -f src/test/rds-cf-template.json --external-checks-dir ./checkov-checks
Is there something I am doing wrong or is the rule malformed/incorrect?
Currently I am using the Version 2.0.1079
Issue Analytics
- State:
- Created a year ago
- Reactions:4
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Scanning Infrastructure as Code for Security Issues
Typically, tools scanning the HCL code take no more than a few seconds to run and can be used without network connectivity.
Read more >Replacement Check Instructions | U.S. Customs and Border ...
Replacement of an original check mailed to a U.S. address that is deemed to be outstanding/not negotiated at the time of a FOIA...
Read more >CLI Command Reference - checkov
CLI Command Reference ; --add-check, Generate a new check via CLI prompt ; -f, --file FILE, File to scan (can not be used...
Read more >Create custom checks for the Splunk AppInspect CLI
You can create your own custom checks for Splunk AppInspect validation. ... If the word "bad" is not detected in the Splunk app,...
Read more >How to Order New Checks: Business and Personal Accounts
One risk of online check printers is that you provide checking account information to somebody you don't know. Most printers are trustworthy and ......
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
This is a case where a Python check is likely better, but here are both options:
or in YAML:
Thank you for the help @tsmithv11 ! I was able to run it successfully.