From 10984754730e81b1923619980adc184669d58978 Mon Sep 17 00:00:00 2001 From: Daan Date: Mon, 21 Oct 2024 12:07:33 +0200 Subject: [PATCH] Changed failing criteria --- .github/workflows/docker-analyze.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-analyze.yaml b/.github/workflows/docker-analyze.yaml index 340fa90..2cfbb0a 100644 --- a/.github/workflows/docker-analyze.yaml +++ b/.github/workflows/docker-analyze.yaml @@ -41,7 +41,10 @@ jobs: echo "Docker Scout analysis completed." - name: Fail if critical CVEs are found run: | - if grep -q "CRITICAL" scout-results.txt; then - echo "Critical vulnerabilities found! Failing the job." + if grep -q "0C" scout-results.txt; then + echo "No critical vulnerabilities found! Continueing." + exit 0 + else + echo "At least one critical vulnerabilities found! Exiting." exit 1 fi