Skip to content

Commit

Permalink
Changed failing criteria
Browse files Browse the repository at this point in the history
  • Loading branch information
DaanSelen committed Oct 21, 2024
1 parent 321b7b4 commit 1098475
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/docker-analyze.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1098475

Please sign in to comment.