Skip to content

Commit 6d5937c

Browse files
Update SARIF upload to use proper branch (#82)
1 parent 5f60ebb commit 6d5937c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/scan.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ jobs:
4848
uses: github/codeql-action/upload-sarif@17a820bf2e43b47be2c72b39cc905417bc1ab6d0 # v3.28.6
4949
with:
5050
sarif_file: cx_result.sarif
51+
sha: ${{ contains(github.event_name, 'pull_request') && github.event.pull_request.head.sha || github.sha }}
52+
ref: ${{ contains(github.event_name, 'pull_request') && format('refs/pull/{0}/head', github.event.pull_request.number) || github.ref }}
5153

5254
quality:
5355
name: Quality scan

0 commit comments

Comments
 (0)