Skip to content

Commit 537b380

Browse files
Update SARIF upload to use proper branch (#84)
1 parent 6a6bd7a commit 537b380

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
@@ -49,6 +49,8 @@ jobs:
4949
uses: github/codeql-action/upload-sarif@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3.28.9
5050
with:
5151
sarif_file: cx_result.sarif
52+
sha: ${{ contains(github.event_name, 'pull_request') && github.event.pull_request.head.sha || github.sha }}
53+
ref: ${{ contains(github.event_name, 'pull_request') && format('refs/pull/{0}/head', github.event.pull_request.number) || github.ref }}
5254

5355
quality:
5456
name: Quality scan

0 commit comments

Comments
 (0)