Skip to content

Commit f92b7e2

Browse files
committed
trivy: Add more repositories to handle rate limits
More repositories are configured to avoid issues when ghcr.io hits rate limits. If the primary repository fails due to rate limiting, the system will fall back to the public ECR repository [1] [1] aquasecurity/trivy#7668 (reply in thread)
1 parent 83b9fc0 commit f92b7e2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/scan-images.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ for image in $images; do
5454
--severity HIGH,CRITICAL \
5555
--output image-scan-output/${filename}.json \
5656
--ignore-unfixed \
57+
--db-repository ghcr.io/aquasecurity/trivy-db:2 \
58+
--db-repository public.ecr.aws/aquasecurity/trivy-db \
59+
--java-db-repository ghcr.io/aquasecurity/trivy-java-db:1 \
60+
--java-db-repository public.ecr.aws/aquasecurity/trivy-java-db \
5761
$image); then
5862
# Clean up the output file for any images with no vulnerabilities
5963
rm -f image-scan-output/${filename}.json

0 commit comments

Comments
 (0)