-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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(html): handle muted status to html outputs #4195
fix(html): handle muted status to html outputs #4195
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4195 +/- ##
==========================================
- Coverage 86.76% 86.66% -0.10%
==========================================
Files 817 818 +1
Lines 25599 25674 +75
==========================================
+ Hits 22211 22251 +40
- Misses 3388 3423 +35 ☔ View full report in Codecov by Sentry. |
Thanks @pedrooot! 💯 |
prowler/lib/outputs/html/html.py
Outdated
elif finding.status == "WARNING": | ||
row_class = "table-warning" |
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.
This is no longer needed in v4
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.
True
prowler/lib/outputs/html/html.py
Outdated
elif "Muted" in finding.status: | ||
row_class = "table-secondary" |
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.
elif "Muted" in finding.status: | |
row_class = "table-secondary" |
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.
True
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.
Good catch @pedrooot ! Please, see my comments.
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.
LGTM
Co-authored-by: Sergio Garcia <38561120+sergargar@users.noreply.github.com>
Co-authored-by: Sergio Garcia <38561120+sergargar@users.noreply.github.com>
Co-authored-by: Sergio Garcia <38561120+sergargar@users.noreply.github.com>
Context
Fixes #4181
Description
Muted FIndings appeared as Pass/Fail/Manual, it's necessary to handle the case when the finding it's muted on HTML outputs.
Thanks @alanrickman-keysight for the report 🥇
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.