Skip to content

Commit

Permalink
.github/workflows/codeql.yml: use filter-sarif to filter meson-private
Browse files Browse the repository at this point in the history
  • Loading branch information
ejoerns committed Feb 28, 2024
1 parent 59d62f9 commit b05eb9f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,19 @@ jobs:
uses: github/codeql-action/analyze@v3
with:
category: "/language:cpp"
upload: false
output: sarif-results

- name: filter-sarif
uses: advanced-security/filter-sarif@v1
with:
patterns: |
-build/meson-private/**/testfile.c
input: sarif-results/cpp.sarif
output: sarif-results/cpp.sarif

- name: Upload CodeQL results to code scanning
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: sarif-results/cpp.sarif
category: "/language:cpp"

0 comments on commit b05eb9f

Please sign in to comment.