-
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(general): Enable running cloned policies in case the OOTB policy is suppressed #4281
Conversation
bc_cloned_checks = custom_policies_integration.bc_cloned_checks | ||
runner_filter.bc_cloned_checks = bc_cloned_checks | ||
custom_policies_integration.policy_level_suppression = policy_level_suppression | ||
runner_filter.set_suppressed_policies(policy_level_suppression) |
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 like you have this block of code 3 times here, can you extract to a function?
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.
Not needed IMO (we won't reuse it anywhere else than main)
checkov/common/bridgecrew/integration_features/features/suppressions_integration.py
Outdated
Show resolved
Hide resolved
… cloned_suppressed_policies
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.
🏖️
…is suppressed (bridgecrewio#4281) * enable running cloned policies in case the OOTB policy is suppressed * flake8 lint * mypy * UT * lint * lint * UT * PR comment
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Description
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)
Handle cases where cloned policies are not ran in case their OOTB policy is suppressed
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: