Skip to content

Commit

Permalink
fix: improve cve output
Browse files Browse the repository at this point in the history
  • Loading branch information
ed382 committed Oct 30, 2024
1 parent 6a1c5c0 commit d107d64
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions scripts/image_cve_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@ helm template test ../charts/testkube-enterprise --skip-crds --set global.certif
failure=false
while IFS= read -r image; do

echo "*******************"
echo "DOCKER SCOUT OUTPUT"
echo "==================="
docker scout cves $image --platform linux/amd64 --exit-code --only-severity critical
docker scout cves $image --platform linux/amd64 --exit-code --only-severity critical -o /tmp/scout.log
ec=$?
echo "==================="

if [ $ec -ne 0 ]; then
echo "Failure: The '$image' has critical CVEs."
echo "*******************"
echo "DOCKER SCOUT OUTPUT"
echo "==================="
cat /tmp/scout.log
echo "==================="
failure=true
fi
done < "$CP_IMAGES"
Expand Down

0 comments on commit d107d64

Please sign in to comment.