We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42f5a49 commit 6f89939Copy full SHA for 6f89939
.github/workflows/static-analysis.yml
@@ -29,6 +29,11 @@ jobs:
29
with:
30
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.ref || github.ref }}
31
32
+ - name: "Get SHA hash of checked out ref"
33
+ if: ${{ github.event_name == 'workflow_dispatch' }}
34
+ run: |
35
+ echo CHECKED_OUT_SHA=$(git rev-parse HEAD) >> $GITHUB_ENV
36
+
37
- name: Setup PHP
38
uses: shivammathur/setup-php@v2
39
@@ -64,6 +69,8 @@ jobs:
64
69
uses: "github/codeql-action/upload-sarif@v3"
65
70
66
71
sarif_file: phpstan.sarif
72
+ ref: ${{ github.event_name == 'workflow_dispatch' && inputs.ref || github.ref }}
73
+ sha: ${{ github.event_name == 'workflow_dispatch' && env.CHECKED_OUT_SHA || github.sha }}
67
74
68
75
- name: Save cache PHPStan results
76
id: phpstan-cache-save
0 commit comments