Skip to content

Commit

Permalink
use Id instead of RepoDigests as image is local only
Browse files Browse the repository at this point in the history
  • Loading branch information
rkm committed Jun 21, 2024
1 parent fb3e819 commit 812c887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/trivy-image-scan.bash
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ TRIVY_IMG="ghcr.io/aquasecurity/trivy:latest"
set -x

# Put the full image reference in a file
docker inspect --format="{{index .RepoDigests 0}}" "${image}" > "${reports_dir}/image.txt"
docker inspect --format="{{index .Id}}" "${image}" > "${reports_dir}/image-id.txt"

docker pull "${TRIVY_IMG}"

Expand Down

0 comments on commit 812c887

Please sign in to comment.