From 45db3433161297748e619b1cb603d9eb9c18235d Mon Sep 17 00:00:00 2001 From: LamGC Date: Thu, 15 Oct 2026 09:13:41 +0800 Subject: [PATCH] ci: pin native Node 24 action runtimes --- .github/workflows/ci.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e68c5a2..3a140dc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ jobs: matrix: php: ['7.4', '8.3'] steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0 - name: Check syntax and execute PHP regression tests run: | docker run --rm -v "$PWD:/app" -w /app "php:${{ matrix.php }}-cli" sh -ec ' @@ -40,8 +40,8 @@ jobs: outputs: package-artifact-id: ${{ steps.package.outputs.artifact-id }} steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 + - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0 + - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 with: node-version: '24.18.0' cache: npm @@ -53,7 +53,7 @@ jobs: - run: npm run package - name: Upload pristine installable ZIP id: package - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 with: name: wp-asciiplayer-package-${{ github.run_id }}-${{ github.run_attempt }} path: dist/wp-asciiplayer.zip @@ -74,8 +74,8 @@ jobs: - wordpress: '6.3' php: '7.4' steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 + - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0 + - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 with: node-version: '24.18.0' cache: npm @@ -83,7 +83,7 @@ jobs: run: npm install --global npm@11.19.0 - run: npm ci - name: Download the pristine package from this run - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 + uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0 with: artifact-ids: ${{ needs.build.outputs.package-artifact-id }} path: dist @@ -128,7 +128,7 @@ jobs: npx --no-install wp-env run cli sh -c 'test ! -f wp-content/debug.log || cat wp-content/debug.log' > wordpress-debug.txt 2>&1 || true - name: Upload integration evidence if: always() - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 with: name: wordpress-${{ matrix.wordpress }}-php-${{ matrix.php }} if-no-files-found: warn @@ -151,8 +151,8 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 20 steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 + - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0 + - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 with: node-version: '24.18.0' cache: npm @@ -160,7 +160,7 @@ jobs: run: npm install --global npm@11.19.0 - run: npm ci - name: Download the pristine package from this run - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 + uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0 with: artifact-ids: ${{ needs.build.outputs.package-artifact-id }} path: dist @@ -178,7 +178,7 @@ jobs: npx --no-install wp-env run cli wp plugin check wp-asciiplayer --require=/var/www/html/wp-content/plugins/plugin-check/cli.php --format=json | tee plugin-check-report.txt - name: Upload Plugin Check evidence only if: always() - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 with: name: plugin-check-${{ github.run_id }}-${{ github.run_attempt }} if-no-files-found: warn