-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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(aws): Add support to see successes in results #4427
Conversation
Should we make this the new default for JSON output? Or should we introduce a new command line flag? Based on the last call I had with Itay, I think we concluded that today Trivy shows failures for "things that are genuinely wrong/bad" and not because "they don't exist". Based on this, if we show things that PASS, they will only show up if they didn't FAIL. Or in other words, you won't see passing results for things that were not evaluated because of any reason (not applicable, not found, etc.) Based on the above, I lean towards a new flag. |
Is it something different from
|
Oh interesting, I didn't know about that flag. Will try it out. |
274383e
to
e4745c3
Compare
Fixes: #4417 Signed-off-by: Simar <simar@linux.com>
e4745c3
to
47f9a74
Compare
res := results.GetFailed() | ||
if opt.MisconfOptions.IncludeNonFailures { | ||
res = results | ||
} |
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 the flag wasn't used in Cloud scanning, I've added it here. The results will still only be shown in the JSON output.
@simar7 Is this ready for review now? |
Yes, I've marked it ready for review (out of draft). Let me know how it goes and if I can answer any questions. |
LGTM, but we're in the bug fix sprint now for v0.42.1. I'll merge this PR afterward. |
Fixes: aquasecurity#4417 Signed-off-by: Simar <simar@linux.com>
Signed-off-by: Simar simar@linux.com
Description
Add the ability to show successes when evaluating AWS results
Related issues
Checklist