File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed 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 :
48
53
with :
49
54
sarif_file : psalm.sarif
50
55
ref : ${{ github.event_name == 'workflow_dispatch' && inputs.ref || github.ref }}
56
+ sha : ${{ github.event_name == 'workflow_dispatch' && env.CHECKED_OUT_SHA || github.sha }}
57
+
58
+ - name : " Upload SARIF report"
59
+ if : ${{ github.event_name != 'workflow_dispatch' }}
60
+ uses : " github/codeql-action/upload-sarif@v3"
61
+ with :
62
+ sarif_file : psalm.sarif
63
+
64
+ - name : " Upload SARIF report"
65
+ if : ${{ github.event_name == 'workflow_dispatch' }}
66
+ uses : " github/codeql-action/upload-sarif@v3"
67
+ with :
68
+ sarif_file : psalm.sarif
69
+ ref : ${{ inputs.ref }}
70
+ sha : ${{ env.CHECKED_OUT_SHA }}
You can’t perform that action at this time.
0 commit comments