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."
|
||||
- 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
|
||||
|
Loading…
Reference in New Issue
Block a user