Skip to content

Commit 3950f81

Browse files
committed
chore: pin third-party GitHub Actions to commit SHAs
Tracking: DEVPROD-1072
1 parent 3513402 commit 3950f81

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

.github/workflows/basics.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
uses: actions/checkout@v6
3131

3232
- name: Install PHP
33-
uses: shivammathur/setup-php@v2
33+
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
3434
with:
3535
php-version: 'latest'
3636
coverage: none
@@ -48,14 +48,14 @@ jobs:
4848
# Install dependencies and handle caching in one go.
4949
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
5050
- name: Install Composer dependencies
51-
uses: "ramsey/composer-install@v4"
51+
uses: "ramsey/composer-install@5c2bcf28d7b060ef3c601d7b476d5430a7b46c27" # v4
5252
with:
5353
# Bust the cache at least once a month - output format: YYYY-MM.
5454
custom-cache-suffix: $(date -u "+%Y-%m")
5555

5656
# Validate the XML file.
5757
- name: Validate rulesets against schema
58-
uses: phpcsstandards/xmllint-validate@v1
58+
uses: phpcsstandards/xmllint-validate@0fd9c4a9046055f621fca4bbdccb8eab1fd59fdc # v1.0.1
5959
with:
6060
pattern: "./*/ruleset.xml"
6161
xsd-file: "vendor/squizlabs/php_codesniffer/phpcs.xsd"
@@ -69,15 +69,15 @@ jobs:
6969
7070
# Validate dev tool related XML files.
7171
- name: Validate Project PHPCS ruleset against schema
72-
uses: phpcsstandards/xmllint-validate@v1
72+
uses: phpcsstandards/xmllint-validate@0fd9c4a9046055f621fca4bbdccb8eab1fd59fdc # v1.0.1
7373
with:
7474
pattern: ".phpcs.xml.dist"
7575
xsd-file: "vendor/squizlabs/php_codesniffer/phpcs.xsd"
7676

7777
# Note: PHPUnit 9.3 introduced some new configuration options and deprecated the old versions of those.
7878
# For cross-version compatibility, the validation is done against the PHPUnit 9.2 schema.
7979
- name: "Validate PHPUnit config for use with PHPUnit 9"
80-
uses: phpcsstandards/xmllint-validate@v1
80+
uses: phpcsstandards/xmllint-validate@0fd9c4a9046055f621fca4bbdccb8eab1fd59fdc # v1.0.1
8181
with:
8282
pattern: "phpunit.xml.dist"
8383
xsd-file: "vendor/phpunit/phpunit/schema/9.2.xsd"
@@ -107,7 +107,7 @@ jobs:
107107
uses: actions/checkout@v6
108108

109109
- name: Install PHP
110-
uses: shivammathur/setup-php@v2
110+
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
111111
with:
112112
php-version: 'latest'
113113
coverage: none
@@ -117,7 +117,7 @@ jobs:
117117
# Dependencies need to be installed to make sure the PHPCS and PHPUnit classes are recognized.
118118
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
119119
- name: Install Composer dependencies
120-
uses: "ramsey/composer-install@v4"
120+
uses: "ramsey/composer-install@5c2bcf28d7b060ef3c601d7b476d5430a7b46c27" # v4
121121
with:
122122
# Bust the cache at least once a month - output format: YYYY-MM.
123123
custom-cache-suffix: $(date -u "+%Y-%m")

.github/workflows/quicktest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
uses: actions/checkout@v6
4444

4545
- name: Set up PHP
46-
uses: shivammathur/setup-php@v2
46+
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
4747
with:
4848
php-version: ${{ matrix.php }}
4949
# With stable PHPCS dependencies, allow for PHP deprecation notices.
@@ -58,7 +58,7 @@ jobs:
5858
# Install dependencies and handle caching in one go.
5959
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
6060
- name: Install Composer dependencies
61-
uses: "ramsey/composer-install@v4"
61+
uses: "ramsey/composer-install@5c2bcf28d7b060ef3c601d7b476d5430a7b46c27" # v4
6262
with:
6363
# Bust the cache at least once a month - output format: YYYY-MM.
6464
custom-cache-suffix: $(date -u "+%Y-%m")

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ jobs:
3838
uses: actions/checkout@v6
3939

4040
- name: Install PHP
41-
uses: shivammathur/setup-php@v2
41+
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
4242
with:
4343
php-version: ${{ matrix.php }}
4444
coverage: none
4545
tools: cs2pr
4646

4747
- name: Install Composer dependencies
48-
uses: "ramsey/composer-install@v4"
48+
uses: "ramsey/composer-install@5c2bcf28d7b060ef3c601d7b476d5430a7b46c27" # v4
4949
with:
5050
# Bust the cache at least once a month - output format: YYYY-MM.
5151
custom-cache-suffix: $(date -u "+%Y-%m")
@@ -100,7 +100,7 @@ jobs:
100100
fi
101101
102102
- name: Install PHP
103-
uses: shivammathur/setup-php@v2
103+
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
104104
with:
105105
php-version: ${{ matrix.php }}
106106
ini-values: ${{ steps.set_ini.outputs.PHP_INI }}
@@ -123,7 +123,7 @@ jobs:
123123
# Install dependencies and handle caching in one go.
124124
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
125125
- name: Install Composer dependencies
126-
uses: "ramsey/composer-install@v4"
126+
uses: "ramsey/composer-install@5c2bcf28d7b060ef3c601d7b476d5430a7b46c27" # v4
127127
with:
128128
# Bust the cache at least once a month - output format: YYYY-MM.
129129
custom-cache-suffix: $(date -u "+%Y-%m")

0 commit comments

Comments
 (0)