Skip to content

Commit

Permalink
refactor(misconfigs): use number of Misconfigurations to check
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyLewen committed Jul 16, 2024
1 parent 32e9311 commit 4b1e1c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/report/table/misconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func NewMisconfigRenderer(result types.Result, severities []dbTypes.Severity, tr
func (r *misconfigRenderer) Render() string {
// Trivy doesn't currently support showing suppressed misconfigs
// So just skip this result
if r.result.MisconfSummary.Failures == 0 {
if len(r.result.Misconfigurations) == 0 {
return ""
}
target := fmt.Sprintf("%s (%s)", r.result.Target, r.result.Type)
Expand Down

0 comments on commit 4b1e1c8

Please sign in to comment.