@@ -23,25 +23,25 @@ jobs:
23
23
experimental : true
24
24
steps :
25
25
- name : Checkout
26
- uses : actions/checkout@v4
26
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
27
27
28
28
- name : Setup cache environment
29
29
id : extcache
30
- uses : shivammathur/cache-extensions@v1
30
+ uses : shivammathur/cache-extensions@270463ea3e30925f5661b16e508feab532dbf309 # 1.12.0
31
31
with :
32
32
php-version : ${{ matrix.php-versions }}
33
33
extensions : ${{ env.extensions }}
34
34
key : ${{ env.key }}
35
35
36
36
- name : Cache extensions
37
- uses : actions/cache@v4
37
+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
38
38
with :
39
39
path : ${{ steps.extcache.outputs.dir }}
40
40
key : ${{ steps.extcache.outputs.key }}
41
41
restore-keys : ${{ steps.extcache.outputs.key }}
42
42
43
43
- name : Setup PHP
44
- uses : shivammathur/setup-php@v2
44
+ uses : shivammathur/setup-php@0f7f1d08e3e32076e51cae65eb0b0c871405b16e # 2.34.1
45
45
env :
46
46
COMPOSER_TOKEN : ${{ secrets.GITHUB_TOKEN }}
47
47
with :
55
55
run : echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"
56
56
57
57
- name : Cache dependencies
58
- uses : actions/cache@v4
58
+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
59
59
with :
60
60
path : ${{ steps.composer-cache.outputs.dir }}
61
61
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
80
80
run : phpcs --standard=tests/phpcs.xml --ignore=\*Minifier.php src/ | cs2pr
81
81
82
82
- name : Upload coverage result
83
- uses : actions/upload-artifact@v4
83
+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
84
84
with :
85
85
name : coverage-${{ matrix.php-versions }}
86
86
path : coverage.xml
@@ -98,27 +98,27 @@ jobs:
98
98
php-versions : [ '8.3' ]
99
99
steps :
100
100
- name : Checkout
101
- uses : actions/checkout@v4
101
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
102
102
with :
103
103
fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
104
104
105
105
- name : Setup cache environment
106
106
id : extcache
107
- uses : shivammathur/cache-extensions@v1
107
+ uses : shivammathur/cache-extensions@270463ea3e30925f5661b16e508feab532dbf309 # 1.12.0
108
108
with :
109
109
php-version : ${{ matrix.php-versions }}
110
110
extensions : ${{ env.extensions }}
111
111
key : ${{ env.key }}
112
112
113
113
- name : Cache extensions
114
- uses : actions/cache@v4
114
+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
115
115
with :
116
116
path : ${{ steps.extcache.outputs.dir }}
117
117
key : ${{ steps.extcache.outputs.key }}
118
118
restore-keys : ${{ steps.extcache.outputs.key }}
119
119
120
120
- name : Setup PHP
121
- uses : shivammathur/setup-php@v2
121
+ uses : shivammathur/setup-php@0f7f1d08e3e32076e51cae65eb0b0c871405b16e # 2.34.1
122
122
with :
123
123
php-version : ${{ matrix.php-versions }}
124
124
extensions : ${{ env.extensions }}
@@ -130,7 +130,7 @@ jobs:
130
130
run : echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"
131
131
132
132
- name : Cache dependencies
133
- uses : actions/cache@v4
133
+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
134
134
with :
135
135
path : ${{ steps.composer-cache.outputs.dir }}
136
136
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
@@ -181,27 +181,27 @@ jobs:
181
181
php-versions : ['8.3']
182
182
steps :
183
183
- name : Checkout
184
- uses : actions/checkout@v4
184
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
185
185
with :
186
186
fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
187
187
188
188
- name : Setup cache environment
189
189
id : extcache
190
- uses : shivammathur/cache-extensions@v1
190
+ uses : shivammathur/cache-extensions@270463ea3e30925f5661b16e508feab532dbf309 # 1.12.0
191
191
with :
192
192
php-version : ${{ matrix.php-versions }}
193
193
extensions : ${{ env.extensions }}
194
194
key : ${{ env.key }}
195
195
196
196
- name : Cache extensions
197
- uses : actions/cache@v4
197
+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
198
198
with :
199
199
path : ${{ steps.extcache.outputs.dir }}
200
200
key : ${{ steps.extcache.outputs.key }}
201
201
restore-keys : ${{ steps.extcache.outputs.key }}
202
202
203
203
- name : Setup PHP
204
- uses : shivammathur/setup-php@v2
204
+ uses : shivammathur/setup-php@0f7f1d08e3e32076e51cae65eb0b0c871405b16e # 2.34.1
205
205
with :
206
206
php-version : ${{ matrix.php-versions }}
207
207
extensions : ${{ env.extensions }}
@@ -213,7 +213,7 @@ jobs:
213
213
run : echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"
214
214
215
215
- name : Cache dependencies
216
- uses : actions/cache@v4
216
+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
217
217
with :
218
218
path : ${{ steps.composer-cache.outputs.dir }}
219
219
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
@@ -229,7 +229,7 @@ jobs:
229
229
run : ./vendor/phpunit/phpunit/phpunit --configuration tests/phpunit.xml --exclude-group twig --coverage-clover=./var/coverage/clover.xml
230
230
231
231
- name : Code coverage Scan
232
- uses : codecov/codecov-action@v5
232
+ uses : codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
233
233
with :
234
234
token : ${{ secrets.CODECOV_TOKEN }}
235
235
@@ -239,7 +239,7 @@ jobs:
239
239
mv ./var/coverage/clover.xml coverage.xml
240
240
241
241
- name : SonarCloud Scan
242
- uses : sonarsource/sonarcloud-github -action@v5 .0
242
+ uses : sonarsource/sonarqube-scan -action@2500896589ef8f7247069a56136f8dc177c27ccf # v5.2 .0
243
243
env :
244
244
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
245
245
SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
0 commit comments