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:
parent
321b7b4cee
commit
1098475473
7
.github/workflows/docker-analyze.yaml
vendored
7
.github/workflows/docker-analyze.yaml
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user