-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skip Comment Feature #530
Skip Comment Feature #530
Conversation
@ChanochShayner can you review it please? |
Thank you for your contribution! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
src/common/runner/runner.go
Outdated
@@ -43,6 +43,8 @@ type Runner struct { | |||
|
|||
const WorkersNumEnvKey = "YOR_WORKER_NUM" | |||
|
|||
var mutex sync.Mutex |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove it if it is not in use.
@@ -25,12 +25,13 @@ import ( | |||
) | |||
|
|||
var ignoredDirs = []string{".git", ".DS_Store", ".idea", ".terraform"} | |||
var mutex sync.Mutex |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove it if it is not in use.
@chanaMovshowich Please add # checkov:skip=CKV_SECRET_80 to src/terraform/structure/terraform_parser.go in line 363 (like line 361), it recognizes the line as a secret. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice work!
The feature allows for adding special comments above resources that users wish to exclude from tagging, enabling skipping tagging for specific resources, the special comments are: "yor:skip" to skip a specific resource and "yor:skipAll" to skip all resources on the page.
It addresses the difficulties encountered in tagging resources within large and intricate projects, streamlining the process and reducing potential errors.
fixes: #531