File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ jobs:
166
166
- name : " Generate SARIF report from code scanning alerts"
167
167
uses : mongodb-labs/drivers-github-tools/code-scanning-export@v2
168
168
with :
169
- ref : ${{ inputs.version }}
169
+ ref : refs/tags/ ${{ inputs.version }}
170
170
output-file : ${{ env.S3_ASSETS }}/code-scanning-alerts.json
171
171
172
172
- name : " Generate compliance report"
Original file line number Diff line number Diff line change 34
34
with :
35
35
ref : ${{ github.event_name == 'workflow_dispatch' && inputs.ref || github.ref }}
36
36
37
+ - name : " Get SHA hash of checked out ref"
38
+ if : ${{ github.event_name == 'workflow_dispatch' }}
39
+ run : |
40
+ echo CHECKED_OUT_SHA=$(git rev-parse HEAD) >> $GITHUB_ENV
41
+
37
42
- name : " Setup"
38
43
uses : " ./.github/actions/setup"
39
44
with :
44
49
run : " vendor/bin/psalm --show-info=false --stats --output-format=github --threads=$(nproc) --report=psalm.sarif"
45
50
46
51
- name : " Upload SARIF report"
52
+ if : ${{ github.event_name != 'workflow_dispatch' }}
53
+ uses : " github/codeql-action/upload-sarif@v3"
54
+ with :
55
+ sarif_file : psalm.sarif
56
+
57
+ - name : " Upload SARIF report"
58
+ if : ${{ github.event_name == 'workflow_dispatch' }}
47
59
uses : " github/codeql-action/upload-sarif@v3"
48
60
with :
49
61
sarif_file : psalm.sarif
62
+ ref : ${{ inputs.ref }}
63
+ sha : ${{ env.CHECKED_OUT_SHA }}
You can’t perform that action at this time.
0 commit comments