Skip to content

Commit df92ca1

Browse files
committed
Fix refs used for code scanning results
1 parent afe425b commit df92ca1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ jobs:
166166
- name: "Generate SARIF report from code scanning alerts"
167167
uses: mongodb-labs/drivers-github-tools/code-scanning-export@v2
168168
with:
169-
ref: ${{ inputs.version }}
169+
ref: refs/tags/${{ inputs.version }}
170170
output-file: ${{ env.S3_ASSETS }}/code-scanning-alerts.json
171171

172172
- name: "Generate compliance report"

.github/workflows/static-analysis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,4 @@ jobs:
4747
uses: "github/codeql-action/upload-sarif@v3"
4848
with:
4949
sarif_file: psalm.sarif
50+
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.ref || github.ref }}

0 commit comments

Comments
 (0)