Skip to content

Commit 9dfdd2f

Browse files
committed
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).
1 parent d599e4a commit 9dfdd2f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/codeql-ql.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ jobs:
105105
106106
echo "sarif=$SARIF_FILE" >> "$GITHUB_OUTPUT"
107107
108+
- name: Update SARIF file tool name
109+
run: |
110+
jq '.runs[].tool.driver.name = "CodeQL-Extractor"' ${{ steps.run_ql.outputs.sarif }} > updated_sarif.sarif
111+
mv updated_sarif.sarif ${{ steps.run_ql.outputs.sarif }}
112+
108113
- name: Upload SARIF file
109114
uses: github/codeql-action/upload-sarif@v3
110115
with:

0 commit comments

Comments
 (0)