diff --git a/.github/workflows/trivy.yml b/.github/workflows/trivy.yml index b6f70ca..bf40e9d 100644 --- a/.github/workflows/trivy.yml +++ b/.github/workflows/trivy.yml @@ -43,6 +43,8 @@ jobs: output: "trivy-results.sarif" severity: "CRITICAL,HIGH" # While vulnerabilities of all severities are reported in the SARIF output, the exit code and workflow failure are triggered only by these specified severities (CRITICAL or HIGH). hide-progress: false + exit-code: "1" + limit-severities-for-sarif: true - name: Upload Trivy scan results to GitHub Security tab uses: github/codeql-action/upload-sarif@v3