Skip to content
This repository was archived by the owner on Feb 13, 2026. It is now read-only.

Commit f62cfcc

Browse files
authored
Merge pull request #108 from 10up/update/pin-workflow-actions
Update all actions we use in our workflows to pull from specific pinned commits
2 parents 7c9d43a + afa7750 commit f62cfcc

4 files changed

Lines changed: 16 additions & 12 deletions

File tree

.github/workflows/build-release-zip.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
steps:
1313

1414
- name: Checkout code
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1616

1717
- name: Build
1818
run: |
@@ -22,15 +22,15 @@ jobs:
2222
2323
- name: Upload the ZIP file as an artifact
2424
if: ${{ github.event_name == 'workflow_dispatch' }}
25-
uses: actions/upload-artifact@v4
25+
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
2626
with:
2727
name: ${{ github.event.repository.name }}
2828
path: release
2929
retention-days: 5
3030

3131
- name: Upload release asset
3232
if: ${{ github.event_name == 'release' }}
33-
uses: actions/upload-release-asset@v1
33+
uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2
3434
env:
3535
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3636
with:

.github/workflows/phpcs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515

1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v2
18+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1919

2020
- name: Set PHP version
21-
uses: shivammathur/setup-php@v2
21+
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0
2222
with:
2323
php-version: '7.4'
2424
tools: composer:v2

.github/workflows/stable.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Build Stable branch
2+
23
on:
34
push:
45
branches:
@@ -8,16 +9,19 @@ jobs:
89
release:
910
name: Push (merge) to trunk
1011
runs-on: ubuntu-latest
12+
1113
steps:
1214
- name: Checkout
13-
uses: actions/checkout@v3
15+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
16+
1417
- name: Build
1518
run: |
1619
composer install --no-dev
1720
composer build-zip
1821
rm -rf ./release && unzip ${{ github.event.repository.name }}.zip -d ./release
22+
1923
- name: Release to Stable
20-
uses: s0/git-publish-subdir-action@develop
24+
uses: s0/git-publish-subdir-action@ac113f6bfe8896e85a373534242c949a7ea74c98 # develop
2125
env:
2226
REPO: self
2327
BRANCH: stable

.github/workflows/testing.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ jobs:
3030

3131
steps:
3232
- name: Check out source code
33-
uses: actions/checkout@v3
33+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3434

3535
- name: Set up PHP environment
36-
uses: shivammathur/setup-php@v2
36+
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0
3737
with:
3838
php-version: '${{ matrix.php }}'
3939
extensions: gd, imagick, mysql, zip
@@ -43,10 +43,10 @@ jobs:
4343
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4444

4545
- name: Install Composer dependencies & cache dependencies
46-
uses: "ramsey/composer-install@v2"
46+
uses: ramsey/composer-install@a2636af0004d1c0499ffca16ac0b4cc94df70565 # v3.1.0
4747
env:
4848
COMPOSER_ROOT_VERSION: dev-${{ github.event.repository.default_branch }}
49-
49+
5050
- name: Configure DB environment
5151
run: |
5252
echo "MYSQL_HOST=127.0.0.1" >> $GITHUB_ENV
@@ -55,7 +55,7 @@ jobs:
5555
echo "WP_CLI_TEST_DBROOTPASS=root" >> $GITHUB_ENV
5656
echo "WP_CLI_TEST_DBNAME=wp_cli_test" >> $GITHUB_ENV
5757
echo "WP_CLI_TEST_DBUSER=wp_cli_test" >> $GITHUB_ENV
58-
echo "WP_CLI_TEST_DBPASS=password1" >> $GITHUB_ENV
58+
echo "WP_CLI_TEST_DBPASS=password1" >> $GITHUB_ENV
5959
echo "WP_CLI_TEST_DBHOST=127.0.0.1:${{ job.services.mysql.ports['3306'] }}" >> $GITHUB_ENV
6060
6161
- name: Prepare test database

0 commit comments

Comments
 (0)