From bdfe930b6cde540ccf7b464d31df1d8b618c78fa Mon Sep 17 00:00:00 2001 From: Thomas Vincent Date: Thu, 19 Nov 2026 18:51:02 -0800 Subject: [PATCH] ci(actions): correct pinned action version comments (#8832) Several workflows pin actions by commit but label them with an older major version, such as '# v4' on checkout 3d3c42e5 (v7.0.1) and CodeQL 33d7b85d (v4.39.3). Update the comments to the tags those commits resolve to. The pinned commits do not change. Signed-off-by: Thomas Vincent --- .github/actions/setup-plugin-dependencies/action.yml | 2 +- .github/workflows/codeql.yml | 8 ++++---- .github/workflows/cookie-coverage.yml | 2 +- .github/workflows/csrf-action-coverage.yml | 2 +- .github/workflows/release-artifact.yml | 2 +- .github/workflows/released-dependency-audit.yml | 2 +- .github/workflows/security-baseline-refresh.yml | 2 +- .github/workflows/security.yml | 4 ++-- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/actions/setup-plugin-dependencies/action.yml b/.github/actions/setup-plugin-dependencies/action.yml index ce28f44eb5..8906c214e4 100644 --- a/.github/actions/setup-plugin-dependencies/action.yml +++ b/.github/actions/setup-plugin-dependencies/action.yml @@ -43,7 +43,7 @@ runs: run: echo "directory=$(composer config --global cache-files-dir)" >> "$GITHUB_OUTPUT" - name: Cache downloaded Composer archives - uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.0.0 + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ${{ steps.cache.outputs.directory }} key: ${{ runner.os }}-plugin-composer-${{ hashFiles(format('{0}/composer.lock', inputs.cacti-directory)) }}-${{ steps.paths.outputs.harness-lock }} diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 08419ca715..e530a61628 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -35,12 +35,12 @@ jobs: language: ["javascript-typescript", "python"] steps: - name: Checkout repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Setup Node for managed JavaScript if: matrix.language == 'javascript-typescript' - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v4 + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version-file: .nvmrc cache: npm @@ -52,10 +52,10 @@ jobs: npm ci --ignore-scripts npm run postinstall --ignore-scripts - name: Initialize CodeQL - uses: github/codeql-action/init@33d7b85da1a04171e211befe2c739303b9a4c066 # v3 + uses: github/codeql-action/init@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3 with: languages: ${{ matrix.language }} - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@33d7b85da1a04171e211befe2c739303b9a4c066 # v3 + uses: github/codeql-action/analyze@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3 with: category: "/language:${{ matrix.language }}" diff --git a/.github/workflows/cookie-coverage.yml b/.github/workflows/cookie-coverage.yml index c558cb0cf9..c79de3e7a9 100644 --- a/.github/workflows/cookie-coverage.yml +++ b/.github/workflows/cookie-coverage.yml @@ -87,7 +87,7 @@ jobs: install-args: --prefer-dist --no-progress --no-interaction - name: Setup Node 22 - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # 4.4.0 + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version: '22' cache: npm diff --git a/.github/workflows/csrf-action-coverage.yml b/.github/workflows/csrf-action-coverage.yml index b2261a19a5..c2cb1726ba 100644 --- a/.github/workflows/csrf-action-coverage.yml +++ b/.github/workflows/csrf-action-coverage.yml @@ -56,7 +56,7 @@ jobs: install-args: --prefer-dist --no-progress --no-interaction - name: Setup Node 22 - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # 4.4.0 + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version: '22' diff --git a/.github/workflows/release-artifact.yml b/.github/workflows/release-artifact.yml index 3bff113d49..8e627af5e2 100644 --- a/.github/workflows/release-artifact.yml +++ b/.github/workflows/release-artifact.yml @@ -39,7 +39,7 @@ jobs: # no dist shasums, so a cached Composer zip could not be verified before # it lands in an attested tarball. Download everything fresh instead. - name: Setup Node.js release toolchain - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v4.4.0 + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version: '22' package-manager-cache: false diff --git a/.github/workflows/released-dependency-audit.yml b/.github/workflows/released-dependency-audit.yml index 72e4058522..7f731aa04d 100644 --- a/.github/workflows/released-dependency-audit.yml +++ b/.github/workflows/released-dependency-audit.yml @@ -104,7 +104,7 @@ jobs: - name: Set up Node if: matrix.ecosystem == 'npm' - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v4.4.0 + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version: '22' diff --git a/.github/workflows/security-baseline-refresh.yml b/.github/workflows/security-baseline-refresh.yml index 414933170c..512172466a 100644 --- a/.github/workflows/security-baseline-refresh.yml +++ b/.github/workflows/security-baseline-refresh.yml @@ -44,7 +44,7 @@ jobs: timeout-minutes: 20 steps: - name: Checkout develop - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: ref: develop # Required only for pushing the dedicated automation branch below. diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml index e98cf27ec4..6c0c53fcc7 100644 --- a/.github/workflows/security.yml +++ b/.github/workflows/security.yml @@ -33,7 +33,7 @@ jobs: timeout-minutes: 20 steps: - name: Checkout - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 persist-credentials: false @@ -95,7 +95,7 @@ jobs: PSALM_PHAR_SHA256: '7ace71e4f698466e7e16810679a1895ea623060579aff46fcf9fd0f1c09abe00' steps: - name: Checkout - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false