Skip to content

Commit 76b164c

Browse files
committed
Work around trivy ratelimits
The ECR registry currently has a lower chance to run into ratelimiting issues. Technically it's a less scalable registry though, so we might need to revisit this in the future. Fixes TraceMachina#1438
1 parent b44383f commit 76b164c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/local-image-test.nix

+5-1
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,9 @@ writeShellScriptBin "local-image-test" ''
2424
''${IMAGE_NAME}:''${IMAGE_TAG} \
2525
--highestWastedBytes=0
2626
27-
${trivy}/bin/trivy image ''${IMAGE_NAME}:''${IMAGE_TAG}
27+
# TODO(aaronmondal): Keep monitoring this for better solutions to ratelimits:
28+
# https://github.com/aquasecurity/trivy-action/issues/389
29+
${trivy}/bin/trivy image \
30+
''${IMAGE_NAME}:''${IMAGE_TAG} \
31+
--db-repository public.ecr.aws/aquasecurity/trivy-db:2
2832
''

0 commit comments

Comments
 (0)