diff --git a/.github/workflows/coding-standards.yml b/.github/workflows/coding-standards.yml index 6de20675c0..7f8d3f0c49 100644 --- a/.github/workflows/coding-standards.yml +++ b/.github/workflows/coding-standards.yml @@ -63,10 +63,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0 + uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 - name: Set up PHP - uses: shivammathur/setup-php@d37cc3048580de06099c81ded417530716a0d7ab # v2.18.0 + uses: shivammathur/setup-php@3eda58347216592f618bb1dff277810b6698e4ca # v2.19.1 with: php-version: '7.4' coverage: none @@ -84,7 +84,7 @@ jobs: run: echo "::set-output name=date::$(/bin/date -u --date='last Mon' "+%F")" - name: Cache PHPCS scan cache - uses: actions/cache@136d96b4aee02b1f0de3ba493b1d47135042d9c0 # v3.0.1 + uses: actions/cache@136d96b4aee02b1f0de3ba493b1d47135042d9c0 # v3.0.4 with: path: .cache/phpcs.json key: ${{ runner.os }}-date-${{ steps.get-date.outputs.date }}-phpcs-cache-${{ hashFiles('**/composer.json', 'phpcs.xml.dist') }} @@ -131,7 +131,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0 + uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 - name: Log debug information run: | @@ -141,7 +141,7 @@ jobs: svn --version - name: Install NodeJS - uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0 + uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0 with: node-version-file: '.nvmrc' cache: npm diff --git a/.github/workflows/end-to-end-tests.yml b/.github/workflows/end-to-end-tests.yml index 21a4777a3f..e8db3a2e12 100644 --- a/.github/workflows/end-to-end-tests.yml +++ b/.github/workflows/end-to-end-tests.yml @@ -57,7 +57,7 @@ jobs: echo "PHP_FPM_GID=$(id -g)" >> $GITHUB_ENV - name: Checkout repository - uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0 + uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 - name: Log debug information run: | @@ -71,7 +71,7 @@ jobs: locale -a - name: Install NodeJS - uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0 + uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0 with: node-version-file: '.nvmrc' cache: npm diff --git a/.github/workflows/javascript-tests.yml b/.github/workflows/javascript-tests.yml index e281ccb67c..4cf2c7ba0b 100644 --- a/.github/workflows/javascript-tests.yml +++ b/.github/workflows/javascript-tests.yml @@ -56,7 +56,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0 + uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 - name: Log debug information run: | @@ -66,7 +66,7 @@ jobs: svn --version - name: Install NodeJS - uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0 + uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0 with: node-version-file: '.nvmrc' cache: npm diff --git a/.github/workflows/php-compatibility.yml b/.github/workflows/php-compatibility.yml index 79f5d97de5..342dda00ce 100644 --- a/.github/workflows/php-compatibility.yml +++ b/.github/workflows/php-compatibility.yml @@ -57,10 +57,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0 + uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 - name: Set up PHP - uses: shivammathur/setup-php@d37cc3048580de06099c81ded417530716a0d7ab # v2.18.0 + uses: shivammathur/setup-php@3eda58347216592f618bb1dff277810b6698e4ca # v2.19.1 with: php-version: '7.4' coverage: none @@ -78,7 +78,7 @@ jobs: run: echo "::set-output name=date::$(/bin/date -u --date='last Mon' "+%F")" - name: Cache PHP compatibility scan cache - uses: actions/cache@136d96b4aee02b1f0de3ba493b1d47135042d9c0 # v3.0.1 + uses: actions/cache@136d96b4aee02b1f0de3ba493b1d47135042d9c0 # v3.0.4 with: path: .cache/phpcompat.json key: ${{ runner.os }}-date-${{ steps.get-date.outputs.date }}-phpcompat-cache-${{ hashFiles('**/composer.json', 'phpcompat.xml.dist') }} diff --git a/.github/workflows/phpunit-tests.yml b/.github/workflows/phpunit-tests.yml index 578ebc6adf..3e523768b6 100644 --- a/.github/workflows/phpunit-tests.yml +++ b/.github/workflows/phpunit-tests.yml @@ -110,10 +110,10 @@ jobs: echo "PHP_FPM_GID=$(id -g)" >> $GITHUB_ENV - name: Checkout repository - uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0 + uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 - name: Install NodeJS - uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0 + uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0 with: node-version-file: '.nvmrc' cache: npm @@ -132,7 +132,7 @@ jobs: run: echo "::set-output name=dir::$(composer config cache-files-dir)" - name: Cache Composer dependencies - uses: actions/cache@136d96b4aee02b1f0de3ba493b1d47135042d9c0 # v3.0.1 + uses: actions/cache@136d96b4aee02b1f0de3ba493b1d47135042d9c0 # v3.0.4 env: cache-name: cache-composer-dependencies with: @@ -231,7 +231,7 @@ jobs: - name: Checkout the WordPress Test Reporter if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/trunk' && matrix.report }} - uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0 + uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 with: repository: 'WordPress/phpunit-test-runner' path: 'test-runner' diff --git a/.github/workflows/slack-notifications.yml b/.github/workflows/slack-notifications.yml index 383d846683..8a1e838e57 100644 --- a/.github/workflows/slack-notifications.yml +++ b/.github/workflows/slack-notifications.yml @@ -70,7 +70,7 @@ jobs: - name: Determine the status of the previous attempt id: previous-attempt-result if: ${{ github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }} - uses: actions/github-script@9ac08808f993958e9de277fe43a64532a609130e # v6.0.0 + uses: actions/github-script@7a5c598405937d486b0331594b5da2b14db670da # v6.1.0 with: script: | const workflow_run = await github.rest.actions.getWorkflowRun({ @@ -140,7 +140,7 @@ jobs: - name: Get the commit message id: current-commit-message - uses: actions/github-script@9ac08808f993958e9de277fe43a64532a609130e # v6.0.0 + uses: actions/github-script@7a5c598405937d486b0331594b5da2b14db670da # v6.1.0 if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' }} with: script: | @@ -174,7 +174,7 @@ jobs: steps: - name: Post failure notifications to Slack - uses: slackapi/slack-github-action@16b6c78ee73689a627b65332b34e5d409c7299da # v1.18.0 + uses: slackapi/slack-github-action@34c3fd73326693ef04728f8611669d918a2d781d # v1.19.0 with: payload: ${{ needs.prepare.outputs.payload }} env: @@ -190,7 +190,7 @@ jobs: steps: - name: Post failure notifications to Slack - uses: slackapi/slack-github-action@16b6c78ee73689a627b65332b34e5d409c7299da # v1.18.0 + uses: slackapi/slack-github-action@34c3fd73326693ef04728f8611669d918a2d781d # v1.19.0 with: payload: ${{ needs.prepare.outputs.payload }} env: @@ -206,7 +206,7 @@ jobs: steps: - name: Post success notifications to Slack - uses: slackapi/slack-github-action@16b6c78ee73689a627b65332b34e5d409c7299da # v1.18.0 + uses: slackapi/slack-github-action@34c3fd73326693ef04728f8611669d918a2d781d # v1.19.0 with: payload: ${{ needs.prepare.outputs.payload }} env: @@ -222,7 +222,7 @@ jobs: steps: - name: Post cancelled notifications to Slack - uses: slackapi/slack-github-action@16b6c78ee73689a627b65332b34e5d409c7299da # v1.18.0 + uses: slackapi/slack-github-action@34c3fd73326693ef04728f8611669d918a2d781d # v1.19.0 with: payload: ${{ needs.prepare.outputs.payload }} env: diff --git a/.github/workflows/test-coverage.yml b/.github/workflows/test-coverage.yml index 29479e460d..921d79e381 100644 --- a/.github/workflows/test-coverage.yml +++ b/.github/workflows/test-coverage.yml @@ -71,7 +71,7 @@ jobs: echo "PHP_FPM_GID=$(id -g)" >> $GITHUB_ENV - name: Checkout repository - uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0 + uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 - name: Log debug information run: | @@ -87,7 +87,7 @@ jobs: locale -a - name: Install NodeJS - uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0 + uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0 with: node-version-file: '.nvmrc' cache: npm @@ -106,7 +106,7 @@ jobs: run: echo "::set-output name=dir::$(composer config cache-files-dir)" - name: Cache Composer dependencies - uses: actions/cache@136d96b4aee02b1f0de3ba493b1d47135042d9c0 # v3.0.1 + uses: actions/cache@136d96b4aee02b1f0de3ba493b1d47135042d9c0 # v3.0.4 env: cache-name: cache-composer-dependencies with: @@ -160,7 +160,7 @@ jobs: - name: Upload single site report to Codecov if: ${{ ! matrix.multisite && github.event_name != 'pull_request' }} - uses: codecov/codecov-action@e3c560433a6cc60aec8812599b7844a7b4fa0d71 # v3.0.0 + uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # v3.1.0 with: file: wp-code-coverage-single-clover-${{ github.sha }}.xml flags: single,php @@ -175,7 +175,7 @@ jobs: - name: Upload multisite report to Codecov if: ${{ matrix.multisite && github.event_name != 'pull_request' }} - uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0 + uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # v3.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 f628253715..bebfa27af1 100644 --- a/.github/workflows/test-npm.yml +++ b/.github/workflows/test-npm.yml @@ -59,7 +59,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0 + uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 - name: Log debug information run: | @@ -70,7 +70,7 @@ jobs: svn --version - name: Install NodeJS - uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0 + uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0 with: node-version-file: '.nvmrc' cache: npm @@ -118,7 +118,7 @@ jobs: if: ${{ github.repository == 'WordPress/wordpress-develop' }} steps: - name: Checkout repository - uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0 + uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 - name: Log debug information run: | @@ -129,7 +129,7 @@ jobs: svn --version - name: Install NodeJS - uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0 + uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0 with: node-version-file: '.nvmrc' cache: npm diff --git a/.github/workflows/test-old-branches.yml b/.github/workflows/test-old-branches.yml index f0be35a208..1e84cd38d5 100644 --- a/.github/workflows/test-old-branches.yml +++ b/.github/workflows/test-old-branches.yml @@ -67,7 +67,7 @@ jobs: # Run all branches monthly, but only the currently supported one twice per month. steps: - name: Dispatch workflow run - uses: actions/github-script@9ac08808f993958e9de277fe43a64532a609130e # v6.0.0 + uses: actions/github-script@7a5c598405937d486b0331594b5da2b14db670da # v6.1.0 if: ${{ github.event_name == 'push' || github.event.schedule == '0 0 15 * *' || matrix.branch == '6.0' }} with: github-token: ${{ secrets.GHA_OLD_BRANCH_DISPATCH }}