Skip to content

Commit

Permalink
ci: add Trivy fallback DB repositories
Browse files Browse the repository at this point in the history
Just adding these now to try to avoid people hitting the Trivy rate limiting issues later.
  • Loading branch information
adamconnelly committed Oct 22, 2024
1 parent 3426803 commit 944969e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,14 @@ jobs:
tags: "spacelift-promex:${{ github.sha }}"

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
uses: aquasecurity/trivy-action@0.27.0
with:
image-ref: "spacelift-promex:${{ github.sha }}"
format: "sarif"
output: "trivy-results.sarif"
severity: "CRITICAL,HIGH"
env:
TRIVY_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-db,public.ecr.aws/aquasecurity/trivy-db

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

0 comments on commit 944969e

Please sign in to comment.