Skip to content

Commit 9de453b

Browse files
committed
Replace all external github action runner tags with hashes
1 parent f544ef8 commit 9de453b

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

.github/workflows/csqa.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626

2727
steps:
2828
- name: Checkout code
29-
uses: actions/checkout@v6
29+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
3030

3131
- name: Install PHP
32-
uses: shivammathur/setup-php@v2
32+
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2
3333
with:
3434
php-version: "latest"
3535
coverage: none
@@ -42,14 +42,14 @@ jobs:
4242
# Install dependencies and handle caching in one go.
4343
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
4444
- name: Install Composer dependencies
45-
uses: "ramsey/composer-install@v3"
45+
uses: "ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520" # v3
4646
with:
4747
# Bust the cache at least once a month - output format: YYYY-MM.
4848
custom-cache-suffix: $(date -u "+%Y-%m")
4949

5050
# Validate the XML file.
5151
- name: Validate ruleset against schema
52-
uses: phpcsstandards/xmllint-validate@v1
52+
uses: phpcsstandards/xmllint-validate@0fd9c4a9046055f621fca4bbdccb8eab1fd59fdc # v1
5353
with:
5454
pattern: "VariableAnalysis/ruleset.xml"
5555
xsd-file: "vendor/squizlabs/php_codesniffer/phpcs.xsd"
@@ -74,10 +74,10 @@ jobs:
7474

7575
steps:
7676
- name: Checkout code
77-
uses: actions/checkout@v6
77+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
7878

7979
- name: Install PHP
80-
uses: shivammathur/setup-php@v2
80+
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2
8181
with:
8282
php-version: "8.1"
8383
coverage: none
@@ -86,7 +86,7 @@ jobs:
8686
# Dependencies need to be installed to make sure the PHPUnit classes are recognized.
8787
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
8888
- name: Install Composer dependencies
89-
uses: "ramsey/composer-install@v3"
89+
uses: "ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520" # v3
9090
with:
9191
# Bust the cache at least once a month - output format: YYYY-MM.
9292
custom-cache-suffix: $(date -u "+%Y-%m")
@@ -104,10 +104,10 @@ jobs:
104104

105105
steps:
106106
- name: Checkout code
107-
uses: actions/checkout@v6
107+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
108108

109109
- name: Install PHP
110-
uses: shivammathur/setup-php@v2
110+
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2
111111
with:
112112
php-version: "8.1"
113113
coverage: none
@@ -116,7 +116,7 @@ jobs:
116116
# Dependencies need to be installed to make sure the PHPUnit classes are recognized.
117117
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
118118
- name: Install Composer dependencies
119-
uses: "ramsey/composer-install@v3"
119+
uses: "ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520" # v3
120120
with:
121121
# Bust the cache at least once a month - output format: YYYY-MM.
122122
custom-cache-suffix: $(date -u "+%Y-%m")

.github/workflows/test.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101

102102
steps:
103103
- name: Checkout code
104-
uses: actions/checkout@v6
104+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
105105

106106
- name: Setup ini config
107107
id: set_ini
@@ -115,7 +115,7 @@ jobs:
115115
fi
116116
117117
- name: Install PHP
118-
uses: shivammathur/setup-php@v2
118+
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2
119119
with:
120120
php-version: ${{ matrix.php }}
121121
ini-values: ${{ steps.set_ini.outputs.PHP_INI }}
@@ -131,7 +131,7 @@ jobs:
131131
# Install dependencies and handle caching in one go.
132132
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
133133
- name: Install Composer dependencies
134-
uses: "ramsey/composer-install@v3"
134+
uses: "ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520" # v3
135135
with:
136136
# For the PHP "nightly", we need to install with ignore platform reqs as not all dependencies may allow it yet.
137137
composer-options: ${{ matrix.php == '8.6' && '--ignore-platform-req=php+' || '' }}
@@ -179,7 +179,7 @@ jobs:
179179

180180
steps:
181181
- name: Checkout code
182-
uses: actions/checkout@v6
182+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
183183

184184
- name: Setup ini config
185185
id: set_ini
@@ -193,7 +193,7 @@ jobs:
193193
fi
194194
195195
- name: Install PHP
196-
uses: shivammathur/setup-php@v2
196+
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2
197197
with:
198198
php-version: ${{ matrix.php }}
199199
ini-values: ${{ steps.set_ini.outputs.PHP_INI }}
@@ -206,7 +206,7 @@ jobs:
206206
composer require --no-update squizlabs/php_codesniffer:"${{ matrix.phpcs_version }}"
207207
208208
- name: Install Composer dependencies
209-
uses: "ramsey/composer-install@v3"
209+
uses: "ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520" # v3
210210
with:
211211
# Bust the cache at least once a month - output format: YYYY-MM.
212212
custom-cache-suffix: $(date -u "+%Y-%m")
@@ -245,7 +245,7 @@ jobs:
245245

246246
- name: Upload coverage results to Coveralls
247247
if: ${{ success() }}
248-
uses: coverallsapp/github-action@v2
248+
uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2
249249
with:
250250
format: clover
251251
file: build/logs/clover.xml
@@ -258,6 +258,6 @@ jobs:
258258

259259
steps:
260260
- name: Coveralls Finished
261-
uses: coverallsapp/github-action@v2
261+
uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2
262262
with:
263263
parallel-finished: true

0 commit comments

Comments
 (0)