Skip to content

Commit

Permalink
Fix #509, Rename Tool for CodeQL Results
Browse files Browse the repository at this point in the history
  • Loading branch information
ArielSAdams authored and arielswalker committed Jun 16, 2022
1 parent 561b128 commit c14a1f7
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/codeql-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,21 @@ jobs:
with:
add-snippets: true
category: ${{matrix.scan-type}}

upload: false
output: CodeQL-Sarif-${{ matrix.scan-type }}

- name: Rename Sarif
run: |
mv CodeQL-Sarif-${{ matrix.scan-type }}/cpp.sarif CodeQL-Sarif-${{ matrix.scan-type }}/Codeql-${{ matrix.scan-type }}.sarif
sed -i 's/"name" : "CodeQL"/"name" : "CodeQL-${{ matrix.scan-type }}"/g' CodeQL-Sarif-${{ matrix.scan-type }}/Codeql-${{ matrix.scan-type }}.sarif
- name: Archive Sarif
uses: actions/upload-artifact@v2
with:
name: CodeQL-Sarif-${{ matrix.scan-type }}
path: /home/runner/work/${{env.REPO}}/results/cpp.sarif
path: CodeQL-Sarif-${{ matrix.scan-type }}

- name: Upload SARIF
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: CodeQL-Sarif-${{ matrix.scan-type }}/Codeql-${{ matrix.scan-type }}.sarif

0 comments on commit c14a1f7

Please sign in to comment.