-
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(misconf): Show misconfig ID in output #7762
Conversation
I think the before and after output should be added to the description. |
Thanks! I forgot about that. |
I prefer a single line as below, but I guess @itaysk has some idea as it's his request.
|
agree with @knqyf263 |
nit: There are some more options.
|
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. If you prefer another option, please feel free to update and merge this PR.
pkg/report/table/misconfig.go
Outdated
switch misconf.Severity { | ||
case severityCritical: | ||
r.printf("<red><bold>%s: ", misconf.Severity) | ||
r.printf("%s <red><bold>(%s): ", misconf.ID, misconf.Severity) |
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.
It is better to use the AVDID field instead of ID because ID can contain aliases https://github.com/aquasecurity/trivy/blob/main/pkg/misconf/scanner.go#L452-L454
s3-bucket-logging (LOW): Bucket has logging disabled
══════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Ensures S3 bucket logging is enabled for S3 buckets
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.
thanks! good catch, updated.
Description
Show misconfig ID in output
Before
After
Related issues
Checklist