Skip to content

Commit 52bac10

Browse files
authored
ci(trivy): fetch vulnerabilities DB from ERC (#721)
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
1 parent 69efcf0 commit 52bac10

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/pr-checks.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,15 @@ jobs:
7575
cache-from: type=gha,scope=${{ github.ref_name }}-ofo
7676
cache-to: type=gha,scope=${{ github.ref_name }}-ofo
7777
- name: Run Trivy vulnerability scanner
78-
uses: aquasecurity/trivy-action@0.27.0
78+
uses: aquasecurity/trivy-action@0.28.0
7979
with:
8080
input: ${{ github.workspace }}/open-feature-operator-local.tar
81-
format: "template"
82-
template: "@/contrib/sarif.tpl"
81+
format: "sarif"
8382
output: "trivy-results.sarif"
8483
severity: "CRITICAL,HIGH"
84+
env:
85+
# use an alternative trivvy db to avoid rate limits
86+
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2,ghcr.io/aquasecurity/trivy-db:2
8587
- name: Upload Trivy scan results to GitHub Security tab
8688
uses: github/codeql-action/upload-sarif@v2
8789
with:

0 commit comments

Comments
 (0)