Skip to content

Commit

Permalink
Work around trivy ratelimits (TraceMachina#1442)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
aaronmondal authored Oct 30, 2024
1 parent 399e95b commit b4cb577
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/local-image-test.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,9 @@ writeShellScriptBin "local-image-test" ''
''${IMAGE_NAME}:''${IMAGE_TAG} \
--highestWastedBytes=0
${trivy}/bin/trivy image ''${IMAGE_NAME}:''${IMAGE_TAG}
# TODO(aaronmondal): Keep monitoring this for better solutions to ratelimits:
# https://github.com/aquasecurity/trivy-action/issues/389
${trivy}/bin/trivy image \
''${IMAGE_NAME}:''${IMAGE_TAG} \
--db-repository public.ecr.aws/aquasecurity/trivy-db:2
''

0 comments on commit b4cb577

Please sign in to comment.