Skip to content

Commit 8d02663

Browse files
authored
security(release): vendor Node 22.23.4 in standalone bundles (CVE-2026-111497 Brotli RCE et al.) and enforce a Node security floor (#2368)
* security(release): enforce Node runtime floor Vendor Node 22.23.4 in standalone bundles, verify official download checksums, and reject vulnerable Node versions in release and CI paths. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 995eea17-c356-4912-90ea-5e5b144e7ba9 * fix(ci): keep release policy dependency-free Parse the standalone workflow with built-in string handling so Policy Gates can run before npm ci. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 995eea17-c356-4912-90ea-5e5b144e7ba9 * test(release): execute native standalone security smokes Authenticate Node checksum manifests with pinned release keys, run every bundle on a matching hosted runner, and record runtime, CLI, lifecycle, teardown, root-guard, and archive-hash evidence. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 995eea17-c356-4912-90ea-5e5b144e7ba9 * fix(release): normalize signed checksum line endings Accept CRLF/LF canonicalization differences between the published manifest and gpgv clear-signed output while retaining detached-signature verification of the exact file. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 995eea17-c356-4912-90ea-5e5b144e7ba9 * fix(release): compare authenticated checksum entries Compare the signed manifest's checksum records rather than raw clear-signed output bytes, while the detached signature continues to authenticate the exact published SHASUMS256.txt. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 995eea17-c356-4912-90ea-5e5b144e7ba9 * fix(release): make native verification portable Use gpgv's detached signature to bind the exact checksum file, verify the armored signature independently, and use native Windows archive commands for extraction and packaging. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 995eea17-c356-4912-90ea-5e5b144e7ba9 * fix(release): bind standalone artifacts to source SHA Pin every standalone checkout and cross-job artifact to source_sha, revalidate checkout identity before use, and stamp execution evidence from the verified HEAD. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 995eea17-c356-4912-90ea-5e5b144e7ba9 --------- Co-authored-by: B'Elanna (Squad) <tamirdresher@users.noreply.github.com> Copilot-Session: 995eea17-c356-4912-90ea-5e5b144e7ba9
1 parent d7a4bd3 commit 8d02663

12 files changed

Lines changed: 969 additions & 101 deletions

‎.github/workflows/squad-ci.yml‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7
6767
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 #v6
6868
with:
69-
node-version: 22
69+
node-version: '22.23.4'
7070
cache: 'npm'
7171
- name: Install docs tools
7272
run: |
@@ -97,7 +97,7 @@ jobs:
9797
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7
9898
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 #v6
9999
with:
100-
node-version: 22
100+
node-version: '22.23.4'
101101
cache: 'npm'
102102
- name: Fix stale lockfile entries
103103
run: node scripts/release/workspace-lockfile.mjs fix
@@ -208,7 +208,7 @@ jobs:
208208
fetch-depth: 0
209209
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 #v6
210210
with:
211-
node-version: 22
211+
node-version: '22.23.4'
212212
- name: Check changeset drift
213213
run: node scripts/check-changeset-drift.mjs --mode=${{ github.event_name == 'push' && 'fail' || 'warn' }}
214214

@@ -225,7 +225,7 @@ jobs:
225225
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7
226226
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 #v6
227227
with:
228-
node-version: 22
228+
node-version: '22.23.4'
229229
- name: Check shebang line endings
230230
run: node scripts/check-shebang-eol.mjs
231231

@@ -253,7 +253,7 @@ jobs:
253253
fetch-depth: 0
254254
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 #v6
255255
with:
256-
node-version: 22
256+
node-version: '22.23.4'
257257
- name: Fetch PR labels
258258
id: labels
259259
if: github.event_name == 'pull_request'
@@ -431,7 +431,7 @@ jobs:
431431
fetch-depth: 0
432432
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 #v6
433433
with:
434-
node-version: 22
434+
node-version: '22.23.4'
435435
- name: Check skip conditions
436436
id: gate
437437
run: |
@@ -521,7 +521,7 @@ jobs:
521521
fetch-depth: 0
522522
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 #v6
523523
with:
524-
node-version: 22
524+
node-version: '22.23.4'
525525
cache: 'npm'
526526
cache-dependency-path: |
527527
package-lock.json
@@ -652,7 +652,7 @@ jobs:
652652

653653
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 #v6
654654
with:
655-
node-version: 22
655+
node-version: '22.23.4'
656656
cache: npm
657657

658658
- name: Install verifier dependencies

‎.github/workflows/squad-release-verify.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ on:
5454
- '.github/workflows/squad-release*.yml'
5555
- '.github/workflows/squad-npm-publish.yml'
5656
- 'scripts/release/**'
57+
- 'scripts/build-standalone.mjs'
5758
- 'package.json'
5859
- 'package-lock.json'
5960
- 'packages/*/package.json'
@@ -99,7 +100,7 @@ jobs:
99100
100101
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 #v6
101102
with:
102-
node-version: 22
103+
node-version: '22.23.4'
103104

104105
- name: Install dependencies
105106
run: npm ci
@@ -160,7 +161,7 @@ jobs:
160161
161162
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 #v6
162163
with:
163-
node-version: 22
164+
node-version: '22.23.4'
164165

165166
- name: Resolve version
166167
id: version

0 commit comments

Comments
 (0)