Skip to content

Commit

Permalink
Scan images debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
m-bull committed Jul 24, 2024
1 parent 69fc7ce commit 52584c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/scan-images.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env bash
set -eo pipefail

set -x

# Check correct usage
if [[ ! $2 ]]; then
echo "Usage: scan-images.sh <os-distribution> <image-tag>"
Expand Down Expand Up @@ -47,7 +49,7 @@ for image in $images; do
echo $vulnerability >> .trivyignore
done
if $(trivy image \
--quiet \
--debug \
--exit-code 1 \
--scanners vuln \
--format json \
Expand Down

0 comments on commit 52584c5

Please sign in to comment.