Skip to content

Commit 7274c91

Browse files
authored
Merge pull request #951 from WordPress/feature/ghactions-pin-action-runners
2 parents 360c05b + 54bded6 commit 7274c91

File tree

7 files changed

+41
-29
lines changed

7 files changed

+41
-29
lines changed

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ updates:
1616
prefix: "GH Actions:"
1717
labels:
1818
- "Type: testing/chores/QA"
19+
groups:
20+
action-runners:
21+
applies-to: version-updates
22+
update-types:
23+
- "minor"
24+
- "patch"
1925

2026
# Handle updates for the orphan gh-pages branch.
2127
- package-ecosystem: "github-actions"
@@ -28,3 +34,9 @@ updates:
2834
prefix: "GH Pages/Actions:"
2935
labels:
3036
- "Type: testing/chores/QA"
37+
groups:
38+
action-runners:
39+
applies-to: version-updates
40+
update-types:
41+
- "minor"
42+
- "patch"

.github/workflows/cs.yml

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

2121
steps:
2222
- name: Checkout code
23-
uses: actions/checkout@v5
23+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
2424

2525
- name: Add problem matcher
2626
if: ${{ github.event_name == 'pull_request' }}
@@ -42,10 +42,10 @@ jobs:
4242

4343
steps:
4444
- name: Checkout code
45-
uses: actions/checkout@v5
45+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
4646

4747
- name: Install PHP
48-
uses: shivammathur/setup-php@v2
48+
uses: shivammathur/setup-php@bf6b4fbd49ca58e4608c9c89fba0b8d90bd2a39f # 2.35.5
4949
with:
5050
php-version: 'latest'
5151
coverage: none
@@ -54,7 +54,7 @@ jobs:
5454
# Install dependencies and handle caching in one go.
5555
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
5656
- name: Install Composer dependencies
57-
uses: "ramsey/composer-install@v3"
57+
uses: "ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520" # 3.1.1
5858
with:
5959
# Bust the cache at least once a month - output format: YYYY-MM.
6060
custom-cache-suffix: $(date -u "+%Y-%m")

.github/workflows/lint.yml

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

2828
steps:
2929
- name: Checkout code
30-
uses: actions/checkout@v5
30+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
3131

3232
- name: Install PHP
33-
uses: shivammathur/setup-php@v2
33+
uses: shivammathur/setup-php@bf6b4fbd49ca58e4608c9c89fba0b8d90bd2a39f # 2.35.5
3434
with:
3535
php-version: ${{ matrix.php }}
3636
ini-values: error_reporting=-1, display_errors=On, display_startup_errors=On, log_errors_max_len=0
@@ -41,15 +41,15 @@ jobs:
4141
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
4242
- name: Install Composer dependencies - normal
4343
if: ${{ matrix.php != '8.5' }}
44-
uses: "ramsey/composer-install@v3"
44+
uses: "ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520" # 3.1.1
4545
with:
4646
# Bust the cache at least once a month - output format: YYYY-MM.
4747
custom-cache-suffix: $(date -u "+%Y-%m")
4848

4949
# For PHP "nightly", we need to install with ignore platform reqs.
5050
- name: Install Composer dependencies - with ignore platform
5151
if: ${{ matrix.php == '8.5' }}
52-
uses: "ramsey/composer-install@v3"
52+
uses: "ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520" # 3.1.1
5353
with:
5454
composer-options: "--ignore-platform-req=php+"
5555
custom-cache-suffix: $(date -u "+%Y-%m")

.github/workflows/quicktest.yml

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

2828
steps:
2929
- name: Checkout code
30-
uses: actions/checkout@v5
30+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
3131

3232
- name: Install PHP
33-
uses: shivammathur/setup-php@v2
33+
uses: shivammathur/setup-php@bf6b4fbd49ca58e4608c9c89fba0b8d90bd2a39f # 2.35.5
3434
with:
3535
php-version: ${{ matrix.php }}
3636
ini-values: zend.assertions=1, error_reporting=-1, display_errors=On, display_startup_errors=On, log_errors_max_len=0
@@ -48,13 +48,13 @@ 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 - normal
51-
uses: "ramsey/composer-install@v3"
51+
uses: "ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520" # 3.1.1
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
- name: Setup Python
57-
uses: actions/setup-python@v6
57+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
5858
with:
5959
python-version: '3.14'
6060

.github/workflows/reusable-update-cacert.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ jobs:
3131
fi
3232
3333
- name: Checkout code
34-
uses: actions/checkout@v5
34+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
3535

3636
- name: Restore etags cache for certificate files
37-
uses: actions/cache@v4
37+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
3838
with:
3939
path: certificates/etag-*.txt
4040
key: curl-etag-${{ hashFiles('certificates/cacert.pem') }}-${{ hashFiles('certificates/cacert.pem.sha256') }}
@@ -62,7 +62,7 @@ jobs:
6262
run: echo "DATE=$(/bin/date -u "+%F")" >> "$GITHUB_OUTPUT"
6363

6464
- name: Create pull request
65-
uses: peter-evans/create-pull-request@v7
65+
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
6666
with:
6767
base: ${{ steps.branches.outputs.BASE }}
6868
branch: ${{ steps.branches.outputs.PR_BRANCH }}

.github/workflows/test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ jobs:
3838

3939
steps:
4040
- name: Checkout code
41-
uses: actions/checkout@v5
41+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
4242

4343
- name: Install PHP
44-
uses: shivammathur/setup-php@v2
44+
uses: shivammathur/setup-php@bf6b4fbd49ca58e4608c9c89fba0b8d90bd2a39f # 2.35.5
4545
with:
4646
php-version: ${{ matrix.php }}
4747
ini-values: zend.assertions=1, error_reporting=-1, display_errors=On, display_startup_errors=On, log_errors_max_len=0
@@ -61,15 +61,15 @@ jobs:
6161
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
6262
- name: Install Composer dependencies - normal
6363
if: ${{ matrix.php != '8.5' }}
64-
uses: "ramsey/composer-install@v3"
64+
uses: "ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520" # 3.1.1
6565
with:
6666
# Bust the cache at least once a month - output format: YYYY-MM.
6767
custom-cache-suffix: $(date -u "+%Y-%m")
6868

6969
# For PHP "nightly", we need to install with ignore platform reqs.
7070
- name: Install Composer dependencies - with ignore platform
7171
if: ${{ matrix.php == '8.5' }}
72-
uses: "ramsey/composer-install@v3"
72+
uses: "ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520" # 3.1.1
7373
with:
7474
composer-options: "--ignore-platform-req=php+"
7575
custom-cache-suffix: $(date -u "+%Y-%m")
@@ -78,7 +78,7 @@ jobs:
7878
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
7979

8080
- name: Setup Python
81-
uses: actions/setup-python@v6
81+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
8282
with:
8383
python-version: '3.14'
8484

@@ -146,7 +146,7 @@ jobs:
146146

147147
- name: Send coverage report to Codecov
148148
if: ${{ success() && matrix.coverage == true && github.event.repository.fork == false }}
149-
uses: codecov/codecov-action@v5
149+
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
150150
with:
151151
token: "${{ secrets.CODECOV_TOKEN }}"
152152
files: ./clover.xml

.github/workflows/update-website.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ jobs:
4949
fi
5050
5151
- name: Checkout code
52-
uses: actions/checkout@v5
52+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
5353
with:
5454
ref: ${{ steps.base_branch.outputs.BRANCH }}
5555

5656
- name: Install PHP
57-
uses: shivammathur/setup-php@v2
57+
uses: shivammathur/setup-php@bf6b4fbd49ca58e4608c9c89fba0b8d90bd2a39f # 2.35.5
5858
with:
5959
php-version: '8.1'
6060
ini-values: display_errors=On, display_startup_errors=On
@@ -75,7 +75,7 @@ jobs:
7575
# Retention is normally 90 days, but this artifact is only for review
7676
# and use in the next step, so no need to keep it for more than a day.
7777
- name: Upload the artifacts folder
78-
uses: actions/upload-artifact@v4
78+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
7979
if: ${{ success() }}
8080
with:
8181
name: website-updates
@@ -113,12 +113,12 @@ jobs:
113113
fi
114114
115115
- name: Checkout code
116-
uses: actions/checkout@v5
116+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
117117
with:
118118
ref: gh-pages
119119

120120
- name: Download the prepared artifacts
121-
uses: actions/download-artifact@v5
121+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
122122
with:
123123
name: website-updates
124124
path: artifacts
@@ -165,7 +165,7 @@ jobs:
165165
run: git status -vv --untracked=all
166166

167167
- name: Create pull request
168-
uses: peter-evans/create-pull-request@v7
168+
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
169169
with:
170170
base: gh-pages
171171
branch: feature/auto-ghpages-update-${{ steps.get_pr_info.outputs.REF }}
@@ -186,12 +186,12 @@ jobs:
186186

187187
# Test that the site builds correctly.
188188
- name: Checkout the newly created branch
189-
uses: actions/checkout@v5
189+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
190190
with:
191191
ref: feature/auto-ghpages-update-${{ steps.get_pr_info.outputs.REF }}
192192

193193
- name: Set up Ruby
194-
uses: ruby/setup-ruby@v1
194+
uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
195195
with:
196196
# Use the version as per https://pages.github.com/versions/.
197197
ruby-version: 3.3.4

0 commit comments

Comments
 (0)