Skip to content

Commit

Permalink
Upload the sarif file AFTER filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
jonesmz committed Oct 30, 2023
1 parent 92b2848 commit 8be6bfb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/analyzers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ jobs:
if: ${{ matrix.tool == 'CodeQL' }}
uses: github/codeql-action/analyze@v2
with:
upload: false
output: sarif-results

- name: Filter 3rdparty from CodeQL
Expand All @@ -99,6 +100,12 @@ jobs:
input: sarif-results/cpp.sarif
output: sarif-results/cpp.sarif

- name: Upload SARIF
if: ${{ matrix.tool == 'CodeQL' }}
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: sarif-results/cpp.sarif

# Implicitly requires build/compile_commands.json to exist
- name: Run Clang Analyzer
if: ${{ matrix.tool == 'clang-analyzer' }}
Expand Down

0 comments on commit 8be6bfb

Please sign in to comment.