From 1e2c3b863f036526ac482bbc31a371064c77cd87 Mon Sep 17 00:00:00 2001 From: S2D2 Date: Mon, 26 Oct 2026 17:42:40 +0000 Subject: [PATCH 1/2] ci(SEC-104): pin Node 24.22.1 exactly in devEngines and workflows Refs SEC-104. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yaml | 4 +-- .github/workflows/release.yaml | 4 +-- examples/package.json | 2 +- package.json | 2 +- pnpm-lock.yaml | 58 +++++++++++++++++----------------- 5 files changed, 35 insertions(+), 35 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 693474cb..7539f55c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -191,11 +191,11 @@ jobs: version: 10.26.0 package_json_file: sdk-conformance/package.json - # 24, not 22: the SDK's devEngines pins Node ^24.11.0, and the suite runs on it too. + # The SDK's devEngines pins the exact Node version, and the suite runs on it too. - name: Setup Node uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: - node-version: 24 + node-version-file: sdk/package.json - name: Install SDK dependencies working-directory: sdk diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e3904344..13f0c342 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -36,10 +36,10 @@ jobs: uses: ./.github/actions/setup-nix - name: Setup Node.js for npm - uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0 + uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: registry-url: 'https://registry.npmjs.org' - node-version: lts/* + node-version-file: package.json - name: 📦 Pack package run: nix develop --command pnpm pack diff --git a/examples/package.json b/examples/package.json index b0b8dfe6..cf432272 100644 --- a/examples/package.json +++ b/examples/package.json @@ -23,7 +23,7 @@ "runtime": [ { "name": "node", - "version": "^24.11.0", + "version": "24.22.1", "onFail": "download" } ] diff --git a/package.json b/package.json index 337668cc..5bda9263 100644 --- a/package.json +++ b/package.json @@ -105,7 +105,7 @@ "runtime": [ { "name": "node", - "version": "^24.11.0", + "version": "24.22.1", "onFail": "download" } ] diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e14e9a72..e5586fa3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -121,8 +121,8 @@ importers: specifier: catalog:dev version: 2.12.3(@types/node@22.19.1)(typescript@5.9.3) node: - specifier: runtime:^24.11.0 - version: runtime:24.21.0 + specifier: runtime:24.22.1 + version: runtime:24.22.1 openai: specifier: catalog:peer version: 6.9.1(zod@4.3.5) @@ -185,8 +185,8 @@ importers: specifier: catalog:dev version: 2.12.3(@types/node@22.19.1)(typescript@5.9.3) node: - specifier: runtime:^24.11.0 - version: runtime:24.21.0 + specifier: runtime:24.22.1 + version: runtime:24.22.1 packages: @@ -1738,103 +1738,103 @@ packages: resolution: {integrity: sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==} engines: {node: '>= 0.6'} - node@runtime:24.21.0: + node@runtime:24.22.1: resolution: type: variations variants: - resolution: archive: tarball bin: bin/node - integrity: sha256-rseyRkr7mfB4wZywbSAdVDvTsxHLoHEoK84bF8l+WLs= + integrity: sha256-9ie20HmCnmSKS4AP+oidN9viORNQcDADDbhaqGFZGiY= type: binary - url: https://nodejs.org/download/release/v24.21.0/node-v24.21.0-aix-ppc64.tar.gz + url: https://nodejs.org/download/release/v24.22.1/node-v24.22.1-aix-ppc64.tar.gz targets: - cpu: ppc64 os: aix - resolution: archive: tarball bin: bin/node - integrity: sha256-vtfupTJeEQjzLOUijd1qXw8IpJnuQqp0Qq6lg3AvYFc= + integrity: sha256-icaCWT12zUQjP6U7FWMmTn3py7GJytFpE1xbT637wKc= type: binary - url: https://nodejs.org/download/release/v24.21.0/node-v24.21.0-darwin-arm64.tar.gz + url: https://nodejs.org/download/release/v24.22.1/node-v24.22.1-darwin-arm64.tar.gz targets: - cpu: arm64 os: darwin - resolution: archive: tarball bin: bin/node - integrity: sha256-FGLLOzBGuBXPjqQ209pFDsGp8R2sflpGsK2lMF1+gJc= + integrity: sha256-0TJVfn7iuFrwiwyMNDOOZcZDDyI40B9ydyjvQtyDsDU= type: binary - url: https://nodejs.org/download/release/v24.21.0/node-v24.21.0-darwin-x64.tar.gz + url: https://nodejs.org/download/release/v24.22.1/node-v24.22.1-darwin-x64.tar.gz targets: - cpu: x64 os: darwin - resolution: archive: tarball bin: bin/node - integrity: sha256-ckKCw7Q67JmKqVJzgEZbRdIp4CG1gDX19PYwleq/5dU= + integrity: sha256-M8N74jS6i+4EGWEEexkWD019DxZOjiRveL3RD+/xSLM= type: binary - url: https://nodejs.org/download/release/v24.21.0/node-v24.21.0-linux-arm64.tar.gz + url: https://nodejs.org/download/release/v24.22.1/node-v24.22.1-linux-arm64.tar.gz targets: - cpu: arm64 os: linux - resolution: archive: tarball bin: bin/node - integrity: sha256-UcXVMGbukpILYXg7A7Buy5nzZhFg97Fcp36EdBFaZ7w= + integrity: sha256-nOVyhEUBaynkmtCY96M2Bhql93DRd9knJ4vCb9Ym5kM= type: binary - url: https://nodejs.org/download/release/v24.21.0/node-v24.21.0-linux-ppc64le.tar.gz + url: https://nodejs.org/download/release/v24.22.1/node-v24.22.1-linux-ppc64le.tar.gz targets: - cpu: ppc64le os: linux - resolution: archive: tarball bin: bin/node - integrity: sha256-Xy+jdCLgx13jXBaG/lHXgyTywqj+LMI5pB2cAAop2Tg= + integrity: sha256-cZea6xw4W8jugxANODo7HsClIC4D35+ZanBAMwnK/7U= type: binary - url: https://nodejs.org/download/release/v24.21.0/node-v24.21.0-linux-s390x.tar.gz + url: https://nodejs.org/download/release/v24.22.1/node-v24.22.1-linux-s390x.tar.gz targets: - cpu: s390x os: linux - resolution: archive: tarball bin: bin/node - integrity: sha256-PWNAX8ZaDS0pdsHwvC/Se7C9ByEkaecFqsPwOuWrTJw= + integrity: sha256-myUNKdariuON0jAZ4sBKbWspFqsdrXIcX24dorKQHGo= type: binary - url: https://nodejs.org/download/release/v24.21.0/node-v24.21.0-linux-x64-musl.tar.gz + url: https://nodejs.org/download/release/v24.22.1/node-v24.22.1-linux-x64-musl.tar.gz targets: - cpu: x64-musl os: linux - resolution: archive: tarball bin: bin/node - integrity: sha256-bh24fvWLiBnl1UAu/xU2SRsY7djre+5e94l4duiNxf8= + integrity: sha256-62co53xXajUWLBIsRcyt8iTYn/AKvI2uRswol8YALXw= type: binary - url: https://nodejs.org/download/release/v24.21.0/node-v24.21.0-linux-x64.tar.gz + url: https://nodejs.org/download/release/v24.22.1/node-v24.22.1-linux-x64.tar.gz targets: - cpu: x64 os: linux - resolution: archive: zip bin: node.exe - integrity: sha256-h3mxveHTn41CDjtXqmV7OYka9DTT3kSpGQRM7AZ4WSE= - prefix: node-v24.21.0-win-arm64 + integrity: sha256-oMgHMZ/t4kxKDY+EVkyCphm9MTsWsQwAfDg8JgnpkXE= + prefix: node-v24.22.1-win-arm64 type: binary - url: https://nodejs.org/download/release/v24.21.0/node-v24.21.0-win-arm64.zip + url: https://nodejs.org/download/release/v24.22.1/node-v24.22.1-win-arm64.zip targets: - cpu: arm64 os: win32 - resolution: archive: zip bin: node.exe - integrity: sha256-FY92hbRN5R9sDfHRU1JsvNPhvHOajfxgdyHO913p5UE= - prefix: node-v24.21.0-win-x64 + integrity: sha256-0gRtKMLD3NIRrFFFwL8w4gR++d+zBmk8jG4uzNi5X6U= + prefix: node-v24.22.1-win-x64 type: binary - url: https://nodejs.org/download/release/v24.21.0/node-v24.21.0-win-x64.zip + url: https://nodejs.org/download/release/v24.22.1/node-v24.22.1-win-x64.zip targets: - cpu: x64 os: win32 - version: 24.21.0 + version: 24.22.1 hasBin: true object-assign@4.1.1: @@ -3640,7 +3640,7 @@ snapshots: negotiator@1.0.0: {} - node@runtime:24.21.0: {} + node@runtime:24.22.1: {} object-assign@4.1.1: {} From 51d6304e5a23082cf73919c72e1750613be7b825 Mon Sep 17 00:00:00 2001 From: Will Leeney Date: Wed, 28 Oct 2026 14:32:11 +0000 Subject: [PATCH 2/2] ci(SEC-104): pack and publish on the pinned Node, outside the nix shell devEngines now pins Node 24.22.1 exactly, and nixpkgs (master included) still ships nodejs_24 24.21.0. Inside `nix develop` the shell's Node wins over setup-node's, so npm refused to pack (EBADDEVENGINES) in dry-publish, and would have in the release job too. Both now set up pnpm and Node from package.json, install, and run pnpm directly. --- .github/workflows/dry-publish.yaml | 16 +++++++++++++--- .github/workflows/release.yaml | 11 ++++++++--- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/.github/workflows/dry-publish.yaml b/.github/workflows/dry-publish.yaml index fe6316d6..d9696d5f 100644 --- a/.github/workflows/dry-publish.yaml +++ b/.github/workflows/dry-publish.yaml @@ -10,8 +10,18 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - name: Setup Nix - uses: ./.github/actions/setup-nix + # Outside the nix shell: devEngines pins the exact Node version, and nixpkgs does not ship + # it yet, so `nix develop` would pack on an older Node that npm refuses (EBADDEVENGINES). + - name: Setup pnpm + uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0 + + - name: Setup Node + uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 + with: + node-version-file: package.json + + - name: Install dependencies + run: pnpm install --frozen-lockfile - name: 🚀 Dry Run Publish Package - run: nix develop --command pnpm dlx pkg-pr-new publish --pnpm + run: pnpm dlx pkg-pr-new publish --pnpm diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 13f0c342..d6570c12 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -32,8 +32,10 @@ jobs: with: fetch-depth: 0 - - name: Setup Nix - uses: ./.github/actions/setup-nix + # Outside the nix shell: devEngines pins the exact Node version, and nixpkgs does not ship + # it yet, so `nix develop` would pack on an older Node that npm refuses (EBADDEVENGINES). + - name: Setup pnpm + uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0 - name: Setup Node.js for npm uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 @@ -41,8 +43,11 @@ jobs: registry-url: 'https://registry.npmjs.org' node-version-file: package.json + - name: Install dependencies + run: pnpm install --frozen-lockfile + - name: 📦 Pack package - run: nix develop --command pnpm pack + run: pnpm pack - name: 🚀 Publish package shell: bash