Skip to content

Commit

Permalink
Merge pull request #18672 from ivanvc/use-ecr-public-mirror-for-trivy…
Browse files Browse the repository at this point in the history
…-scan-action

github/workflows: use ECR mirror for Trivy's DB
  • Loading branch information
ahrtr authored Oct 5, 2024
2 parents 7b429f9 + 1af428a commit 448fb7e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ jobs:
severity: 'CRITICAL,HIGH'
format: 'sarif'
output: 'trivy-results-${{ matrix.platforms }}.sarif'
env:
# Use AWS' ECR mirror for the trivy-db image, as GitHub's Container
# Registry is returning a TOOMANYREQUESTS error.
# Ref: https://github.com/aquasecurity/trivy-action/issues/389
TRIVY_DB_REPOSITORY: 'public.ecr.aws/aquasecurity/trivy-db:2'
- name: upload scan results
uses: github/codeql-action/upload-sarif@e2b3eafc8d227b0241d48be5f425d47c2d750a13 # v3.26.10
with:
Expand Down

0 comments on commit 448fb7e

Please sign in to comment.