-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
fix(gitlab): Modify gitlab ci resource id #3706
Conversation
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.
nice work, left a couple of comments
if registry.report_type == CheckType.GITLAB_CI: | ||
registry.set_definitions_raw(self.definitions_raw[file_path]) |
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.
any reason, why limit it to just GitLab CI?
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.
I wasn't sure if that's needed for all frameworks, I added it because some gitlab ci check names were missing the resource lines and code blocks and I needed the definitions to resolve them.
I think we should gradually apply it to more frameworks as we find issues with their resource ids, WDYT?
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.
gotcha, gotcha. let's leave it for now as it is. if we need it for something else, then lets add it for all check types
@gruebel Addressed all your comments, thanks! 😄 |
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.
last one 😄
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Description
*.rules.*.rules.CKV_GITLABCI_2[7:9]
->planOnlySubset
For the following source code:
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
New/Edited policies (Delete if not relevant)
Description
Include a description of what makes it a violation and any relevant external links.
Fix
How does someone fix the issue in code and/or in runtime?
Checklist: