We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df92ca1 commit 849fe0eCopy full SHA for 849fe0e
.github/workflows/static-analysis.yml
@@ -34,6 +34,11 @@ jobs:
34
with:
35
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.ref || github.ref }}
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
+
42
- name: "Setup"
43
uses: "./.github/actions/setup"
44
@@ -48,3 +53,4 @@ jobs:
48
53
49
54
sarif_file: psalm.sarif
50
55
56
+ sha: ${{ github.event_name == 'workflow_dispatch' && env.CHECKED_OUT_SHA || github.sha }}
0 commit comments