File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
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 :
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' }}
47
53
uses : " github/codeql-action/upload-sarif@v3"
48
54
with :
49
55
sarif_file : psalm.sarif
50
- ref : ${{ github.event_name == 'workflow_dispatch' && inputs.ref || github.ref }}
56
+
57
+ - name : " Upload SARIF report"
58
+ if : ${{ github.event_name == 'workflow_dispatch' }}
59
+ uses : " github/codeql-action/upload-sarif@v3"
60
+ with :
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