Skip to content
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

Merged
merged 19 commits into from
Jun 30, 2024
Merged

Conversation

chanaMovshowich
Copy link
Contributor

@chanaMovshowich chanaMovshowich commented Jun 6, 2024

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

@chanaMovshowich
Copy link
Contributor Author

@ChanochShayner can you review it please?
thanks

@ChanochShayner ChanochShayner self-requested a review June 6, 2024 10:41
@ChanochShayner
Copy link
Contributor

@ChanochShayner can you review it please? thanks

Thank you for your contribution!
I'll take a look.
Please take a look at the failing jobs (Tests & Lint).
It would be very helpful if you could open an issue for this feature with some information and an explanation.

@chanaMovshowich chanaMovshowich changed the title Skip Comment feature Skip Comment Feature Jun 9, 2024
Copy link
Contributor

@ChanochShayner ChanochShayner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@@ -43,6 +43,8 @@ type Runner struct {

const WorkersNumEnvKey = "YOR_WORKER_NUM"

var mutex sync.Mutex
Copy link
Contributor

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
Copy link
Contributor

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.

@ChanochShayner
Copy link
Contributor

@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.

Copy link
Contributor

@ChanochShayner ChanochShayner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice work!

@ChanochShayner ChanochShayner merged commit 20ec9a6 into bridgecrewio:main Jun 30, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Skip Comment Feature
3 participants