From c14a1f7d056cf6dd623d35fccef9003d9cbef640 Mon Sep 17 00:00:00 2001 From: ArielSAdams <63608107+ArielSAdams@users.noreply.github.com> Date: Thu, 16 Jun 2022 09:37:23 -0500 Subject: [PATCH] Fix #509, Rename Tool for CodeQL Results --- .github/workflows/codeql-reusable.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codeql-reusable.yml b/.github/workflows/codeql-reusable.yml index 091df690e..34de98ad2 100644 --- a/.github/workflows/codeql-reusable.yml +++ b/.github/workflows/codeql-reusable.yml @@ -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