Skip to content

Commit

Permalink
fix: trivy action failure
Browse files Browse the repository at this point in the history
  • Loading branch information
irtazaakram committed Nov 11, 2024
1 parent d4d15da commit 9c27d2c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/trivy-code-scanning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@ jobs:

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
env:
# https://github.com/aquasecurity/trivy/discussions/7668#discussioncomment-11141034
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db,aquasec/trivy-db,ghcr.io/aquasecurity/trivy-db
TRIVY_JAVA_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-java-db,aquasec/trivy-java-db,ghcr.io/aquasecurity/trivy-java-db
with:
scan-type: "fs"
format: "sarif"
output: "trivy-results.sarif"
args: --skip-update

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

0 comments on commit 9c27d2c

Please sign in to comment.