Skip to content

Commit

Permalink
fix: output for cves
Browse files Browse the repository at this point in the history
  • Loading branch information
ed382 committed Oct 30, 2024
1 parent 842ae26 commit c56a691
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/image_cve_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ helm template test ../charts/testkube-enterprise --skip-crds --set global.certif
# Check for images that do not start with the image registry
failure=false
while IFS= read -r image; do

echo "DOCKER SCOUT OUTPUT\n==================="
docker scout cves $image --platform linux/amd64 --exit-code --only-severity critical
ec=$?
if [ $ec -ne 0]; then
echo "===================\n"

if [ $ec -ne 0 ]; then
echo "Failure: The '$image' has critical CVEs."
failure=true
fi
Expand Down

0 comments on commit c56a691

Please sign in to comment.