From 9dfdd2f3c551414191328574ee51d01fb3dcaa02 Mon Sep 17 00:00:00 2001 From: Mathew Payne <2772944+GeekMasher@users.noreply.github.com> Date: Wed, 9 Apr 2025 15:28:07 +0100 Subject: [PATCH] Update ql-for-ql to make it update the SARIF file tool name to be `CodeQL-Extractor` and overwrite the file --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/advanced-security/reusable-workflows?shareId=XXXX-XXXX-XXXX-XXXX). --- .github/workflows/codeql-ql.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/codeql-ql.yml b/.github/workflows/codeql-ql.yml index 99024fd..ef8cec2 100644 --- a/.github/workflows/codeql-ql.yml +++ b/.github/workflows/codeql-ql.yml @@ -105,6 +105,11 @@ jobs: echo "sarif=$SARIF_FILE" >> "$GITHUB_OUTPUT" + - name: Update SARIF file tool name + run: | + jq '.runs[].tool.driver.name = "CodeQL-Extractor"' ${{ steps.run_ql.outputs.sarif }} > updated_sarif.sarif + mv updated_sarif.sarif ${{ steps.run_ql.outputs.sarif }} + - name: Upload SARIF file uses: github/codeql-action/upload-sarif@v3 with: