Skip to content

Commit

Permalink
chore: use public ecr registry for downloading trivy databases (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
ravisingal authored Nov 12, 2024
1 parent 8f41043 commit a5e4e44
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions trivy-image-scan/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ runs:
timeout: ${{ inputs.timeout }}
limit-severities-for-sarif: true
exit-code: '1'
env:
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db
TRIVY_JAVA_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-java-db

- name: Rerun Trivy vulnerability scanner with logging
if: failure() && inputs.output-mode != 'log'
Expand All @@ -111,6 +114,9 @@ runs:
ignore-unfixed: ${{ inputs.ignore-unfixed }}
timeout: ${{ inputs.timeout }}
exit-code: '1'
env:
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db
TRIVY_JAVA_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-java-db

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
Expand Down

0 comments on commit a5e4e44

Please sign in to comment.