diff --git a/pkg/report/table/misconfig.go b/pkg/report/table/misconfig.go index 25f9a27688f5..722e809e9508 100644 --- a/pkg/report/table/misconfig.go +++ b/pkg/report/table/misconfig.go @@ -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)