Handle all resources failure

This commit is contained in:
dwertent
2021-12-28 10:47:12 +02:00
parent 2c57b809d2
commit 1b0e2b87de

View File

@@ -124,7 +124,7 @@ func ScanCliSetup(scanInfo *cautils.ScanInfo) error {
// print report url
interfaces.report.DisplayReportURL()
if score >= float32(scanInfo.FailThreshold) {
if score > float32(scanInfo.FailThreshold) {
return fmt.Errorf("scan risk-score %.2f is above permitted threshold %d", score, scanInfo.FailThreshold)
}