Skip to content

Commit

Permalink
fix: filter SARIF file before uploading it to GH
Browse files Browse the repository at this point in the history
  • Loading branch information
iWas-Coder committed Sep 16, 2024
1 parent 1b62a1e commit d8a0b57
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ jobs:
uses: github/codeql-action/init@v3
with:
languages: c-cpp
config: |
paths-ignore: [vendor]
- name: configure
run: |
cmake \
Expand All @@ -66,5 +64,19 @@ jobs:
-DCMAKE_CXX_COMPILER=${{ matrix.cxx-compiler }}
- name: build
run: cmake --build build
- name: analyze
- name: run-codeql
uses: github/codeql-action/analyze@v3
with:
output: sarif-results
upload: failure-only
- name: filter-codeql
uses: advanced-security/filter-sarif@v1
with:
patterns: |
-vendor/*
input: sarif-results/c-cpp.sarif
output: sarif-results/c-cpp.sarif
- name: upload-codeql
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: sarif-results/c-cpp.sarif

0 comments on commit d8a0b57

Please sign in to comment.