diff --git a/.github/workflows/trivy.yml b/.github/workflows/trivy.yml index f4f4cf8..b1f1c7d 100644 --- a/.github/workflows/trivy.yml +++ b/.github/workflows/trivy.yml @@ -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