Skip to content

Commit b3c1f8b

Browse files
committed
ci: pin composer-install to 4.0.0 and checkout to 6.0.3
Pin ramsey/composer-install to the 4.0.0 release SHA rather than the floating v4 branch tip. The previous pin tracked the v4 branch, so the version comment could only ever read "# v4" and a SHA bump carried no visible meaning in a diff. Pinning to the 4.0.0 tag gives an honest SHA-to-version mapping and lets Dependabot follow releases, matching the style already used for setup-php and xmllint-validate. Also pin actions/checkout to the 6.0.3 release SHA. It was previously left on the floating @v6 major tag; pinning it brings the first-party action in line with the SHA-and-version convention and makes future Dependabot bumps self-explanatory.
1 parent 1204a42 commit b3c1f8b

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/basics.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
steps:
2929
- name: Checkout code
30-
uses: actions/checkout@v6
30+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # 6.0.3
3131

3232
- name: Install PHP
3333
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
@@ -48,7 +48,7 @@ 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@5c2bcf28d7b060ef3c601d7b476d5430a7b46c27" # v4
51+
uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # 4.0.0
5252
with:
5353
# Bust the cache at least once a month - output format: YYYY-MM.
5454
custom-cache-suffix: $(date -u "+%Y-%m")
@@ -104,7 +104,7 @@ jobs:
104104

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

109109
- name: Install PHP
110110
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
@@ -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@5c2bcf28d7b060ef3c601d7b476d5430a7b46c27" # v4
120+
uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # 4.0.0
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
@@ -40,7 +40,7 @@ jobs:
4040

4141
steps:
4242
- name: Checkout code
43-
uses: actions/checkout@v6
43+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # 6.0.3
4444

4545
- name: Set up PHP
4646
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
@@ -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@5c2bcf28d7b060ef3c601d7b476d5430a7b46c27" # v4
61+
uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # 4.0.0
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
@@ -35,7 +35,7 @@ jobs:
3535

3636
steps:
3737
- name: Checkout code
38-
uses: actions/checkout@v6
38+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # 6.0.3
3939

4040
- name: Install PHP
4141
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
@@ -45,7 +45,7 @@ jobs:
4545
tools: cs2pr
4646

4747
- name: Install Composer dependencies
48-
uses: "ramsey/composer-install@5c2bcf28d7b060ef3c601d7b476d5430a7b46c27" # v4
48+
uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # 4.0.0
4949
with:
5050
# Bust the cache at least once a month - output format: YYYY-MM.
5151
custom-cache-suffix: $(date -u "+%Y-%m")
@@ -86,7 +86,7 @@ jobs:
8686

8787
steps:
8888
- name: Checkout code
89-
uses: actions/checkout@v6
89+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # 6.0.3
9090

9191
# With stable PHPCS dependencies, allow for PHP deprecation notices.
9292
# Unit tests don't need to fail on those for stable releases where those issues won't get fixed anymore.
@@ -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@5c2bcf28d7b060ef3c601d7b476d5430a7b46c27" # v4
126+
uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # 4.0.0
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)