@@ -30,11 +30,16 @@ jobs:
3030 - " 8.5"
3131
3232 steps :
33+ - name : Harden the runner (Audit all outbound calls)
34+ uses : step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
35+ with :
36+ egress-policy : audit
37+
3338 - name : " Checkout"
34- uses : actions/checkout@v5
39+ uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
3540
3641 - name : " Install PHP"
37- uses : " shivammathur/setup-php@v2 "
42+ uses : " shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 " # v2
3843 with :
3944 coverage : " none"
4045 php-version : " ${{ matrix.php-version }}"
@@ -56,18 +61,23 @@ jobs:
5661 runs-on : " ubuntu-latest"
5762
5863 steps :
64+ - name : Harden the runner (Audit all outbound calls)
65+ uses : step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
66+ with :
67+ egress-policy : audit
68+
5969 - name : " Checkout"
60- uses : actions/checkout@v5
70+ uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
6171
6272 - name : " Checkout build-cs"
63- uses : actions/checkout@v5
73+ uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
6474 with :
6575 repository : " phpstan/build-cs"
6676 path : " build-cs"
6777 ref : " 2.x"
6878
6979 - name : " Install PHP"
70- uses : " shivammathur/setup-php@v2 "
80+ uses : " shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 " # v2
7181 with :
7282 coverage : " none"
7383 php-version : " 8.2"
@@ -124,11 +134,16 @@ jobs:
124134 composer require --dev doctrine/orm:^3.0 doctrine/dbal:^4.0 carbonphp/carbon-doctrine-types:^3 gedmo/doctrine-extensions:^3 -W
125135
126136 steps :
137+ - name : Harden the runner (Audit all outbound calls)
138+ uses : step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
139+ with :
140+ egress-policy : audit
141+
127142 - name : " Checkout"
128- uses : actions/checkout@v5
143+ uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
129144
130145 - name : " Install PHP"
131- uses : " shivammathur/setup-php@v2 "
146+ uses : " shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 " # v2
132147 with :
133148 coverage : " none"
134149 php-version : " ${{ matrix.php-version }}"
@@ -163,11 +178,16 @@ jobs:
163178 - " 8.4"
164179
165180 steps :
181+ - name : Harden the runner (Audit all outbound calls)
182+ uses : step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
183+ with :
184+ egress-policy : audit
185+
166186 - name : " Checkout"
167- uses : actions/checkout@v5
187+ uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
168188
169189 - name : " Checkout build-infection"
170- uses : actions/checkout@v5
190+ uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
171191 with :
172192 repository : " phpstan/build-infection"
173193 path : " build-infection"
@@ -192,7 +212,7 @@ jobs:
192212 cat infection.json5 | jq
193213
194214 - name : " Cache Result cache"
195- uses : actions/cache@v4
215+ uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
196216 with :
197217 path : ./tmp
198218 key : " result-cache-v1-${{ matrix.php-version }}-${{ github.run_id }}"
@@ -234,11 +254,16 @@ jobs:
234254 update-packages : " composer require --dev doctrine/orm:^3.0 doctrine/dbal:^4.0 carbonphp/carbon-doctrine-types:^3 gedmo/doctrine-extensions:^3 -W"
235255
236256 steps :
257+ - name : Harden the runner (Audit all outbound calls)
258+ uses : step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
259+ with :
260+ egress-policy : audit
261+
237262 - name : " Checkout"
238- uses : actions/checkout@v5
263+ uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
239264
240265 - name : " Install PHP"
241- uses : " shivammathur/setup-php@v2 "
266+ uses : " shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 " # v2
242267 with :
243268 coverage : " none"
244269 php-version : " ${{ matrix.php-version }}"
0 commit comments