@@ -29,11 +29,16 @@ jobs:
2929 - " 8.5"
3030
3131 steps :
32+ - name : Harden the runner (Audit all outbound calls)
33+ uses : step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
34+ with :
35+ egress-policy : audit
36+
3237 - name : " Checkout"
33- uses : actions/checkout@v5
38+ uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
3439
3540 - name : " Install PHP"
36- uses : " shivammathur/setup-php@v2 "
41+ uses : " shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 " # v2
3742 with :
3843 coverage : " none"
3944 php-version : " ${{ matrix.php-version }}"
@@ -53,18 +58,23 @@ jobs:
5358 runs-on : " ubuntu-latest"
5459
5560 steps :
61+ - name : Harden the runner (Audit all outbound calls)
62+ uses : step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
63+ with :
64+ egress-policy : audit
65+
5666 - name : " Checkout"
57- uses : actions/checkout@v5
67+ uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
5868
5969 - name : " Checkout build-cs"
60- uses : actions/checkout@v5
70+ uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
6171 with :
6272 repository : " phpstan/build-cs"
6373 path : " build-cs"
6474 ref : " 2.x"
6575
6676 - name : " Install PHP"
67- uses : " shivammathur/setup-php@v2 "
77+ uses : " shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 " # v2
6878 with :
6979 coverage : " none"
7080 php-version : " 8.2"
@@ -105,11 +115,16 @@ jobs:
105115 - " highest"
106116
107117 steps :
118+ - name : Harden the runner (Audit all outbound calls)
119+ uses : step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
120+ with :
121+ egress-policy : audit
122+
108123 - name : " Checkout"
109- uses : actions/checkout@v5
124+ uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
110125
111126 - name : " Install PHP"
112- uses : " shivammathur/setup-php@v2 "
127+ uses : " shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 " # v2
113128 with :
114129 coverage : " none"
115130 php-version : " ${{ matrix.php-version }}"
@@ -145,11 +160,16 @@ jobs:
145160 - " highest"
146161
147162 steps :
163+ - name : Harden the runner (Audit all outbound calls)
164+ uses : step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
165+ with :
166+ egress-policy : audit
167+
148168 - name : " Checkout"
149- uses : actions/checkout@v5
169+ uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
150170
151171 - name : " Install PHP"
152- uses : " shivammathur/setup-php@v2 "
172+ uses : " shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 " # v2
153173 with :
154174 coverage : " none"
155175 php-version : " ${{ matrix.php-version }}"
@@ -182,11 +202,16 @@ jobs:
182202 operating-system : [ubuntu-latest]
183203
184204 steps :
205+ - name : Harden the runner (Audit all outbound calls)
206+ uses : step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
207+ with :
208+ egress-policy : audit
209+
185210 - name : " Checkout"
186- uses : actions/checkout@v5
211+ uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
187212
188213 - name : " Checkout build-infection"
189- uses : actions/checkout@v5
214+ uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
190215 with :
191216 repository : " phpstan/build-infection"
192217 path : " build-infection"
@@ -216,7 +241,7 @@ jobs:
216241 echo "name=$(git remote show origin | sed -n '/HEAD branch/s/.*: //p')" >> $GITHUB_OUTPUT
217242
218243 - name : " Restore result cache"
219- uses : actions/cache/restore@v4
244+ uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
220245 with :
221246 path : ./tmp
222247 key : " result-cache-v1-${{ matrix.php-version }}-${{ github.run_id }}"
@@ -237,7 +262,7 @@ jobs:
237262 --logger-text=php://stdout
238263
239264 - name : " Save result cache"
240- uses : actions/cache/save@v4
265+ uses : actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
241266 if : ${{ !cancelled() }}
242267 with :
243268 path : ./tmp
0 commit comments