Skip to content

Commit f216b60

Browse files
authoredOct 1, 2024
Merge pull request #1023 from nscuro/trivy-ratelimit-fix
Work around ghcr.io rate limiting for Trivy database downloads
2 parents 79c5966 + d1d5bec commit f216b60

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎.github/workflows/_meta-build.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ jobs:
113113
- name: Run Trivy Vulnerability Scanner
114114
if: ${{ inputs.publish-container }}
115115
uses: aquasecurity/trivy-action@0.24.0
116+
env:
117+
# https://github.com/aquasecurity/trivy-action/issues/389
118+
TRIVY_DB_REPOSITORY: 'public.ecr.aws/aquasecurity/trivy-db:2'
119+
TRIVY_JAVA_DB_REPOSITORY: 'public.ecr.aws/aquasecurity/trivy-java-db:1'
116120
with:
117121
image-ref: docker.io/dependencytrack/frontend:${{ inputs.app-version }}
118122
format: 'sarif'

0 commit comments

Comments
 (0)