Skip to content

Commit 71eec41

Browse files
authored
Manage Trivy rate limiting on db pull (#68)
1 parent b4ac57e commit 71eec41

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/trivy.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ on:
2323
required: false
2424
REGISTRY_PASSWORD:
2525
required: false
26-
26+
2727
jobs:
2828
trivy:
2929
env:
@@ -36,7 +36,12 @@ jobs:
3636
uses: actions/checkout@v4
3737

3838
- name: Image Scan
39-
uses: aquasecurity/trivy-action@master
39+
uses: aquasecurity/trivy-action@0.28.0
40+
# Due to rate limiting faced by aquasecurity/trivy-action#389 we download the DBs
41+
# from the public ECR repository
42+
env:
43+
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db
44+
TRIVY_JAVA_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-java-db
4045
with:
4146
image-ref: "${{ inputs.registry }}/${{ inputs.namespace }}/${{ inputs.name }}:${{ inputs.tag }}"
4247
format: 'sarif'

0 commit comments

Comments
 (0)