diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 23f25c225..e01476a0d 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -75,13 +75,15 @@ jobs: cache-from: type=gha,scope=${{ github.ref_name }}-ofo cache-to: type=gha,scope=${{ github.ref_name }}-ofo - name: Run Trivy vulnerability scanner - uses: aquasecurity/trivy-action@0.27.0 + uses: aquasecurity/trivy-action@0.28.0 with: input: ${{ github.workspace }}/open-feature-operator-local.tar - format: "template" - template: "@/contrib/sarif.tpl" + format: "sarif" output: "trivy-results.sarif" severity: "CRITICAL,HIGH" + env: + # use an alternative trivvy db to avoid rate limits + TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2,ghcr.io/aquasecurity/trivy-db:2 - name: Upload Trivy scan results to GitHub Security tab uses: github/codeql-action/upload-sarif@v2 with: