diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml index 030b68b..95f6d60 100644 --- a/.github/workflows/semgrep.yml +++ b/.github/workflows/semgrep.yml @@ -24,8 +24,15 @@ jobs: - name: Scan run: semgrep scan --config auto --sarif --output semgrep.sarif + - name: Remove suppressed findings + id: filter + uses: UnitVectorY-Labs/sarif-filter-suppressed@7df70341a6662d39039bc82045ea743cafe37a55 # v0.1.0 + with: + input: semgrep.sarif + output: semgrep.filtered.sarif + - name: Upload findings to GitHub uses: github/codeql-action/upload-sarif@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3 with: - sarif_file: semgrep.sarif + sarif_file: ${{ steps.filter.outputs.output }} category: semgrep