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 48f8f32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/report/table/misconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ 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 48f8f32

Please sign in to comment.