Skip to content

Commit 1af428a

Browse files
committed
github/workflows: use ECR mirror for Trivy's DB
GitHub Container Registry is returning a TOOMANYREQUESTS error. Switch to AWS ECR mirror, as suggested in aquasecurity/trivy-action#389. Signed-off-by: Ivan Valdes <[email protected]>
1 parent 2c97110 commit 1af428a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/release.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ jobs:
6666
severity: 'CRITICAL,HIGH'
6767
format: 'sarif'
6868
output: 'trivy-results-${{ matrix.platforms }}.sarif'
69+
env:
70+
# Use AWS' ECR mirror for the trivy-db image, as GitHub's Container
71+
# Registry is returning a TOOMANYREQUESTS error.
72+
# Ref: https://github.com/aquasecurity/trivy-action/issues/389
73+
TRIVY_DB_REPOSITORY: 'public.ecr.aws/aquasecurity/trivy-db:2'
6974
- name: upload scan results
7075
uses: github/codeql-action/upload-sarif@e2b3eafc8d227b0241d48be5f425d47c2d750a13 # v3.26.10
7176
with:

0 commit comments

Comments
 (0)