Skip to content

Commit 448fb7e

Browse files
authored
Merge pull request #18672 from ivanvc/use-ecr-public-mirror-for-trivy-scan-action
github/workflows: use ECR mirror for Trivy's DB
2 parents 7b429f9 + 1af428a commit 448fb7e

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)