Skip to content

Commit

Permalink
Manage Trivy rate limiting on db pull
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarmet committed Nov 13, 2024
1 parent b4ac57e commit c14a27a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/trivy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ on:
required: false
REGISTRY_PASSWORD:
required: false

jobs:
trivy:
env:
Expand All @@ -36,7 +36,12 @@ jobs:
uses: actions/checkout@v4

- name: Image Scan
uses: aquasecurity/trivy-action@master
uses: aquasecurity/[email protected]
# Due to rate limiting faced by aquasecurity/trivy-action#389 we download the DBs
# from the public ECR repository
env:
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db
TRIVY_JAVA_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-java-db
with:
image-ref: "${{ inputs.registry }}/${{ inputs.namespace }}/${{ inputs.name }}:${{ inputs.tag }}"
format: 'sarif'
Expand Down

0 comments on commit c14a27a

Please sign in to comment.