From 42078057c0a334b69cf0333cebb8e6c9e54d4f8f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 1 Nov 2026 01:59:41 +0000 Subject: [PATCH 1/2] Update dependency node to v26 --- .github/workflows/validate-release-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validate-release-pr.yml b/.github/workflows/validate-release-pr.yml index 770c5a3..ee7c7a8 100644 --- a/.github/workflows/validate-release-pr.yml +++ b/.github/workflows/validate-release-pr.yml @@ -38,7 +38,7 @@ jobs: if: ${{ startsWith(github.head_ref, 'release/code-scan-action-v') }} uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 with: - node-version: '24' + node-version: '26' - name: Validate generated release payload if: ${{ startsWith(github.head_ref, 'release/code-scan-action-v') }} From 9eda4f25896d4802e4b5f62fbf74aa0dbe8a8faf Mon Sep 17 00:00:00 2001 From: Michael D'Angelo Date: Mon, 16 Nov 2026 00:09:56 -0800 Subject: [PATCH 2/2] =?UTF-8?q?ci:=20rebuild=20release=20mirrors=20with=20?= =?UTF-8?q?the=20source=20commit=E2=80=99s=20Node=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/validate-release-pr.yml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/validate-release-pr.yml b/.github/workflows/validate-release-pr.yml index ee7c7a8..a51b70b 100644 --- a/.github/workflows/validate-release-pr.yml +++ b/.github/workflows/validate-release-pr.yml @@ -32,15 +32,7 @@ jobs: echo "Branch ${{ github.head_ref }} is not a generated release branch; artifact mirror files are unchanged." - # setup-node gives `npm install -g` a writable global prefix and pins the - # rebuild toolchain to match promptfoo's release job (.nvmrc -> Node 24). - - name: Set up Node.js - if: ${{ startsWith(github.head_ref, 'release/code-scan-action-v') }} - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 - with: - node-version: '26' - - - name: Validate generated release payload + - name: Verify release source if: ${{ startsWith(github.head_ref, 'release/code-scan-action-v') }} env: HEAD_REF: ${{ github.head_ref }} @@ -98,12 +90,25 @@ jobs: exit 1 fi + - name: Set up Node.js + if: ${{ startsWith(github.head_ref, 'release/code-scan-action-v') }} + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7 + with: + node-version-file: ${{ runner.temp }}/promptfoo-source/.nvmrc + + - name: Rebuild and compare release payload + if: ${{ startsWith(github.head_ref, 'release/code-scan-action-v') }} + working-directory: ${{ runner.temp }}/promptfoo-source + run: | + set -euo pipefail + source_sha="$(git rev-parse HEAD)" npm install -g npm@11.11.0 npm ci npm ci --prefix code-scan-action npm run tsc --prefix code-scan-action npm run build --prefix code-scan-action + expected_dir="$RUNNER_TEMP/code-scan-action-expected" mkdir -p "$expected_dir" cp code-scan-action/action.yml "$expected_dir/action.yml" cp code-scan-action/README.md "$expected_dir/README.md"