From e411a1536ae1efdaf549ff00dc7c7c4b19a474c0 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Tue, 16 Nov 2021 16:08:03 +0000 Subject: [PATCH] Build/Test Tools: Update all 3rd party GitHub actions to the latest versions. See #53363. git-svn-id: https://develop.svn.wordpress.org/trunk@52183 602fd350-edb4-49c9-b593-d223f7449a82 --- .github/workflows/coding-standards.yml | 12 ++++++------ .github/workflows/end-to-end-tests.yml | 4 ++-- .github/workflows/javascript-tests.yml | 4 ++-- .github/workflows/php-compatibility.yml | 8 ++++---- .github/workflows/phpunit-tests.yml | 8 ++++---- .github/workflows/slack-notifications.yml | 8 ++++---- .github/workflows/test-coverage.yml | 10 +++++----- .github/workflows/test-npm.yml | 8 ++++---- .github/workflows/test-old-branches.yml | 4 ++-- 9 files changed, 33 insertions(+), 33 deletions(-) diff --git a/.github/workflows/coding-standards.yml b/.github/workflows/coding-standards.yml index a5b1e53f21..dda379333f 100644 --- a/.github/workflows/coding-standards.yml +++ b/.github/workflows/coding-standards.yml @@ -62,10 +62,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 + uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0 - name: Set up PHP - uses: shivammathur/setup-php@afefcaf556d98dc7896cca380e181decb609ca44 # v2.10.0 + uses: shivammathur/setup-php@ac7d3d7f84d81a029c20ab72d60264bdb7535831 # v2.15.0 with: php-version: '7.4' coverage: none @@ -83,13 +83,13 @@ jobs: run: echo "::set-output name=date::$(/bin/date -u --date='last Mon' "+%F")" - name: Cache PHPCS scan cache - uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4 + uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 # v2.1.6 with: path: .cache/phpcs.json key: ${{ runner.os }}-date-${{ steps.get-date.outputs.date }}-phpcs-cache-${{ hashFiles('**/composer.json') }} - name: Install Composer dependencies - uses: ramsey/composer-install@92a7904348d4ad30236f3611e33b7f0c6f9edd70 # v1.1.0 + uses: ramsey/composer-install@a7320a0581dcd0432930c48a0e7ced67e6ec17e8 # v1.3.0 with: composer-options: "--no-progress --no-ansi --no-interaction" @@ -129,7 +129,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 + uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0 - name: Log debug information run: | @@ -139,7 +139,7 @@ jobs: svn --version - name: Install NodeJS - uses: actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f # v2.2.2 + uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c # v2.4.1 with: node-version: 14 cache: npm diff --git a/.github/workflows/end-to-end-tests.yml b/.github/workflows/end-to-end-tests.yml index 4b2f9f1c44..6b6a9abe71 100644 --- a/.github/workflows/end-to-end-tests.yml +++ b/.github/workflows/end-to-end-tests.yml @@ -56,7 +56,7 @@ jobs: echo "PHP_FPM_GID=$(id -g)" >> $GITHUB_ENV - name: Checkout repository - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 + uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0 - name: Log debug information run: | @@ -70,7 +70,7 @@ jobs: locale -a - name: Install NodeJS - uses: actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f # v2.2.2 + uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c # v2.4.1 with: node-version: 14 cache: npm diff --git a/.github/workflows/javascript-tests.yml b/.github/workflows/javascript-tests.yml index 451eee86cb..081bb239a9 100644 --- a/.github/workflows/javascript-tests.yml +++ b/.github/workflows/javascript-tests.yml @@ -55,7 +55,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 + uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0 - name: Log debug information run: | @@ -65,7 +65,7 @@ jobs: svn --version - name: Install NodeJS - uses: actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f # v2.2.2 + uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c # v2.4.1 with: node-version: 14 cache: npm diff --git a/.github/workflows/php-compatibility.yml b/.github/workflows/php-compatibility.yml index 6848465b50..4cb77f7369 100644 --- a/.github/workflows/php-compatibility.yml +++ b/.github/workflows/php-compatibility.yml @@ -56,10 +56,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 + uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0 - name: Set up PHP - uses: shivammathur/setup-php@afefcaf556d98dc7896cca380e181decb609ca44 # v2.10.0 + uses: shivammathur/setup-php@ac7d3d7f84d81a029c20ab72d60264bdb7535831 # v2.15.0 with: php-version: '7.4' coverage: none @@ -77,13 +77,13 @@ jobs: run: echo "::set-output name=date::$(/bin/date -u --date='last Mon' "+%F")" - name: Cache PHP compatibility scan cache - uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4 + uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 # v2.1.6 with: path: .cache/phpcompat.json key: ${{ runner.os }}-date-${{ steps.get-date.outputs.date }}-phpcompat-cache-${{ hashFiles('**/composer.json') }} - name: Install Composer dependencies - uses: ramsey/composer-install@92a7904348d4ad30236f3611e33b7f0c6f9edd70 # v1.1.0 + uses: ramsey/composer-install@a7320a0581dcd0432930c48a0e7ced67e6ec17e8 # v1.3.0 with: composer-options: "--no-progress --no-ansi --no-interaction" diff --git a/.github/workflows/phpunit-tests.yml b/.github/workflows/phpunit-tests.yml index aa5037f10c..01eeb69712 100644 --- a/.github/workflows/phpunit-tests.yml +++ b/.github/workflows/phpunit-tests.yml @@ -109,10 +109,10 @@ jobs: echo "PHP_FPM_GID=$(id -g)" >> $GITHUB_ENV - name: Checkout repository - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 + uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0 - name: Install NodeJS - uses: actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f # v2.2.2 + uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c # v2.4.1 with: node-version: 14 cache: npm @@ -131,7 +131,7 @@ jobs: run: echo "::set-output name=dir::$(composer config cache-files-dir)" - name: Cache Composer dependencies - uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4 + uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 # v2.1.6 env: cache-name: cache-composer-dependencies with: @@ -230,7 +230,7 @@ jobs: - name: Checkout the WordPress Test Reporter if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/trunk' && matrix.report }} - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 + uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0 with: repository: 'WordPress/phpunit-test-runner' path: 'test-runner' diff --git a/.github/workflows/slack-notifications.yml b/.github/workflows/slack-notifications.yml index ceb06c5fd4..356624b04a 100644 --- a/.github/workflows/slack-notifications.yml +++ b/.github/workflows/slack-notifications.yml @@ -134,7 +134,7 @@ jobs: steps: - name: Post failure notifications to Slack - uses: slackapi/slack-github-action@d5d276d7ae0f38f29322b80da9baf985cc80f8b1 # v1.15.0 + uses: slackapi/slack-github-action@410ae57cff5c6b682b106440be0e6c7eb8c98c9d # v1.16.0 with: payload: ${{ needs.prepare.outputs.payload }} env: @@ -149,7 +149,7 @@ jobs: steps: - name: Post failure notifications to Slack - uses: slackapi/slack-github-action@d5d276d7ae0f38f29322b80da9baf985cc80f8b1 # v1.15.0 + uses: slackapi/slack-github-action@410ae57cff5c6b682b106440be0e6c7eb8c98c9d # v1.16.0 with: payload: ${{ needs.prepare.outputs.payload }} env: @@ -164,7 +164,7 @@ jobs: steps: - name: Post success notifications to Slack - uses: slackapi/slack-github-action@d5d276d7ae0f38f29322b80da9baf985cc80f8b1 # v1.15.0 + uses: slackapi/slack-github-action@410ae57cff5c6b682b106440be0e6c7eb8c98c9d # v1.16.0 with: payload: ${{ needs.prepare.outputs.payload }} env: @@ -179,7 +179,7 @@ jobs: steps: - name: Post cancelled notifications to Slack - uses: slackapi/slack-github-action@d5d276d7ae0f38f29322b80da9baf985cc80f8b1 # v1.15.0 + uses: slackapi/slack-github-action@410ae57cff5c6b682b106440be0e6c7eb8c98c9d # v1.16.0 with: payload: ${{ needs.prepare.outputs.payload }} env: diff --git a/.github/workflows/test-coverage.yml b/.github/workflows/test-coverage.yml index afd042bfd1..cd827004b6 100644 --- a/.github/workflows/test-coverage.yml +++ b/.github/workflows/test-coverage.yml @@ -60,7 +60,7 @@ jobs: echo "PHP_FPM_GID=$(id -g)" >> $GITHUB_ENV - name: Checkout repository - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 + uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0 - name: Log debug information run: | @@ -76,7 +76,7 @@ jobs: locale -a - name: Install NodeJS - uses: actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f # v2.2.2 + uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c # v2.4.1 with: node-version: 14 cache: npm @@ -95,7 +95,7 @@ jobs: run: echo "::set-output name=dir::$(composer config cache-files-dir)" - name: Cache Composer dependencies - uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4 + uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 # v2.1.6 env: cache-name: cache-composer-dependencies with: @@ -149,7 +149,7 @@ jobs: - name: Upload single site report to Codecov if: ${{ ! matrix.multisite }} - uses: codecov/codecov-action@e156083f13aff6830c92fc5faa23505779fbf649 # v1.2.1 + uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0 with: file: wp-code-coverage-single-clover-${{ github.sha }}.xml flags: single,php @@ -163,7 +163,7 @@ jobs: - name: Upload multisite report to Codecov if: ${{ matrix.multisite }} - uses: codecov/codecov-action@e156083f13aff6830c92fc5faa23505779fbf649 # v1.2.1 + uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0 with: file: wp-code-coverage-multisite-clover-${{ github.sha }}.xml flags: multisite,php diff --git a/.github/workflows/test-npm.yml b/.github/workflows/test-npm.yml index 3073f56809..505657d3f4 100644 --- a/.github/workflows/test-npm.yml +++ b/.github/workflows/test-npm.yml @@ -58,7 +58,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 + uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0 - name: Log debug information run: | @@ -69,7 +69,7 @@ jobs: svn --version - name: Install NodeJS - uses: actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f # v2.2.2 + uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c # v2.4.1 with: node-version: 14 cache: npm @@ -116,7 +116,7 @@ jobs: if: ${{ github.repository == 'WordPress/wordpress-develop' }} steps: - name: Checkout repository - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 + uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0 - name: Log debug information run: | @@ -127,7 +127,7 @@ jobs: svn --version - name: Install NodeJS - uses: actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f # v2.2.2 + uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c # v2.4.1 with: node-version: 14 cache: npm diff --git a/.github/workflows/test-old-branches.yml b/.github/workflows/test-old-branches.yml index f1fa017f84..743a09e976 100644 --- a/.github/workflows/test-old-branches.yml +++ b/.github/workflows/test-old-branches.yml @@ -57,12 +57,12 @@ jobs: # Run all branches monthly, but only the currently supported one twice per month. steps: - name: Dispatch workflow run - uses: actions/github-script@47f7cf65b5ced0830a325f705cad64f2f58dddf7 # v3.1.0 + uses: actions/github-script@441359b1a30438de65712c2fbca0abe4816fa667 # v5.0.0 if: ${{ github.event_name == 'push' || github.event.schedule == '0 0 15 * *' || matrix.branch == '5.7' }} with: github-token: ${{ secrets.GHA_OLD_BRANCH_DISPATCH }} script: | - github.actions.createWorkflowDispatch({ + github.rest.actions.createWorkflowDispatch({ owner: context.repo.owner, repo: context.repo.repo, workflow_id: '${{ matrix.workflow }}',