-
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
feat: hide successful policy check results when --quiet-policy-checks is set with multiple projects #5168
feat: hide successful policy check results when --quiet-policy-checks is set with multiple projects #5168
Conversation
d2b193e
to
b22a3aa
Compare
b22a3aa
to
d092a44
Compare
Thanks for this @joec4i. Can you add before and after example results to the PR description as evidence of your change. |
Thanks for reviewing this, @X-Guardian . I've uploaded two screenshots to show the difference. This was taken from our test repo with two test projects. The noise reduction will be even more noticeable in repositories with more projects, which is common for Terraform setups supporting multiple environments. Looking forward to your feedback! |
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.
Looking good. Just a few small refinement suggestions to the tests.
02a462c
to
26a07a5
Compare
…t with multiple projects Signed-off-by: Joe Cai <[email protected]>
…sistency Signed-off-by: Joe Cai <[email protected]>
26a07a5
to
c118111
Compare
Thanks again for your review, @X-Guardian . I've updated the test cases. Please have another look! Cheers! |
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 @joec4i.
what
Improve the
--quiet-policy-checks
flag to only display unsuccessful policy check results when multiple projects are involved.why
Currently, the
--quiet-policy-checks
flag is effective for a single project or when all policy checks pass across multiple projects. However, when there are multiple projects involved, it becomes noisy when one or more checks fail, as it shows both successful and unsuccessful results. This PR hides successful check results when--quiet-policy-checks
is specified in order to reduce noise and allow users to focus on failed checks.tests
Before
Note: the bot's username is masked.
After
references