1
0
mirror of https://github.com/donaldzou/WGDashboard.git synced 2024-11-22 15:20:09 +01:00

Changed failing criteria

This commit is contained in:
Daan 2024-10-21 12:07:33 +02:00
parent 321b7b4cee
commit 1098475473

View File

@ -41,7 +41,10 @@ jobs:
echo "Docker Scout analysis completed." echo "Docker Scout analysis completed."
- name: Fail if critical CVEs are found - name: Fail if critical CVEs are found
run: | run: |
if grep -q "CRITICAL" scout-results.txt; then if grep -q "0C" scout-results.txt; then
echo "Critical vulnerabilities found! Failing the job." echo "No critical vulnerabilities found! Continueing."
exit 0
else
echo "At least one critical vulnerabilities found! Exiting."
exit 1 exit 1
fi fi