Skip to content

Commit

Permalink
Manage Trivy rate limiting on db pull (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarmet authored Nov 13, 2024
1 parent b4ac57e commit 71eec41
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 71eec41

Please sign in to comment.