We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 484ddd8 commit 9809a07Copy full SHA for 9809a07
pkg/types/report.go
@@ -89,7 +89,7 @@ func (s MisconfSummary) Empty() bool {
89
return s.Successes == 0 && s.Failures == 0 && s.Exceptions == 0
90
}
91
92
-// Failed returns whether the result includes any vulnerabilities or misconfigurations
+// Failed returns whether the result includes any vulnerabilities, misconfigurations or secrets
93
func (results Results) Failed() bool {
94
for _, r := range results {
95
if len(r.Vulnerabilities) > 0 {
@@ -100,6 +100,9 @@ func (results Results) Failed() bool {
100
return true
101
102
103
+ if len(r.Secrets) > 0 {
104
+ return true
105
+ }
106
107
return false
108
0 commit comments