File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -859,15 +859,15 @@ def main():
859859 if vulnerability_count > 0 :
860860 if threshold_breached :
861861 logger .error (
862- f"Found { vulnerability_count } vulnerabilities with { args .threshold } or higher severity. See report at: { report_path } " )
862+ f"Vulnerability(ies) have been found with { args .threshold } or higher severity. See report at: { report_path } " )
863863 sys .exit (1 ) # Exit with error if threshold is breached
864864 else :
865865 if args .threshold :
866866 pass
867- # logger.warning(
868- # f"Found {vulnerability_count} vulnerabilities , but none exceed the {args.threshold} threshold. See report at: {report_path}")
867+ logger .warning (
868+ f"Vulnerability(ies) have been found , but none exceed the { args .threshold } threshold. See report at: { report_path } " )
869869 else :
870- logger .warning (f"Found { vulnerability_count } vulnerabilities . See report at: { report_path } " )
870+ logger .warning (f"Vulnerability(ies) have been found . See report at: { report_path } " )
871871 sys .exit (0 ) # Permit build to continue if no threshold breach
872872 else :
873873 logger .info ("No vulnerabilities found in the scanned files." )
You can’t perform that action at this time.
0 commit comments