Skip to content

Commit

Permalink
fix(trivy): add ecr registry as a fallback option for trivy db (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
hairmare authored Nov 14, 2024
1 parent e4de78c commit 27dd2f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release-container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ jobs:

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@0.28.0
env:
TRIVY_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-db,public.ecr.aws/aquasecurity/trivy-db
TRIVY_JAVA_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-java-db,public.ecr.aws/aquasecurity/trivy-java-db
with:
image-ref: '${{ inputs.image }}:${{ steps.meta.outputs.version }}'
format: 'json'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/schedule-trivy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ jobs:

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@0.28.0
env:
TRIVY_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-db,public.ecr.aws/aquasecurity/trivy-db
TRIVY_JAVA_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-java-db,public.ecr.aws/aquasecurity/trivy-java-db
with:
image-ref: ${{ inputs.image-ref }}
timeout: ${{ inputs.timeout }}
Expand Down

0 comments on commit 27dd2f1

Please sign in to comment.