Skip to content

Commit

Permalink
build docker script changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gatsbyz committed Jan 21, 2024
1 parent 3fc3ef3 commit 208d4da
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,13 @@ jobs:
"$(cat ./scan_id.txt)" \
--format="value(vulnerability.effectiveSeverity)")
# Check if CRITICAL vulnerability is found
echo "$severity"
echo "$severity" | grep -c "CRITICAL"
if [ $(echo "$severity" | grep -c "CRITICAL") -gt 5 ]; then
echo "Failed vulnerability check for CRITICAL level"
exit 1
else
echo "No CRITICAL vulnerability found. Congratulations."
exit 0
fi
- name: Sign the docker image
run: |-
Expand Down

0 comments on commit 208d4da

Please sign in to comment.