diff --git a/scripts/pipeline/check_ecr_scan_results/aws_ecr_scan_results.py b/scripts/pipeline/check_ecr_scan_results/aws_ecr_scan_results.py index 09c73c3010..9b8bef0a42 100755 --- a/scripts/pipeline/check_ecr_scan_results/aws_ecr_scan_results.py +++ b/scripts/pipeline/check_ecr_scan_results/aws_ecr_scan_results.py @@ -196,7 +196,7 @@ def ci_check_and_output(self, report): for severity, count in severity_dict.items(): print(f"{severity}: {count}") - if severity_dict["HIGH"] > 0 or severity_dict["CRITICAL"] > 0: + if severity_dict["CRITICAL"] > 0: print("Failing the build. Please fix security vulnerabilities") exit(1)