Skip to content

Commit cb4c554

Browse files
authored
fix: use patched Node runtimes for certificate security (#98)
Pin standalone builds to Node 26.12.1, managed connectors to 24.22.1, and CI to supported security-patched Node lines.
1 parent 27c148b commit cb4c554

7 files changed

Lines changed: 23 additions & 23 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ jobs:
2323
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
2424
strategy:
2525
matrix:
26-
node-version: [20, 22]
26+
node-version: [22.23.4, 24.22.1, 26.12.1]
2727
steps:
2828
- uses: actions/checkout@v5
2929
- uses: pnpm/action-setup@v4
3030
- uses: actions/setup-node@v6
3131
with:
32-
node-version: 24
32+
node-version: 24.22.1
3333
- run: echo "VANA_PDPP_NODE=$(command -v node)" >> "$GITHUB_ENV"
3434
- uses: actions/setup-node@v6
3535
with:
@@ -50,7 +50,7 @@ jobs:
5050
- uses: pnpm/action-setup@v4
5151
- uses: actions/setup-node@v6
5252
with:
53-
node-version: 25
53+
node-version: 26.12.1
5454
cache: pnpm
5555
- run: pnpm install --frozen-lockfile
5656
- run: pnpm clean
@@ -69,7 +69,7 @@ jobs:
6969
- uses: pnpm/action-setup@v4
7070
- uses: actions/setup-node@v6
7171
with:
72-
node-version: 25
72+
node-version: 26.12.1
7373
cache: pnpm
7474
- run: pnpm install --frozen-lockfile
7575
- run: pnpm clean
@@ -88,7 +88,7 @@ jobs:
8888
- uses: pnpm/action-setup@v4
8989
- uses: actions/setup-node@v6
9090
with:
91-
node-version: 25
91+
node-version: 26.12.1
9292
cache: pnpm
9393
- run: pnpm install --frozen-lockfile
9494
- run: pnpm clean

‎.github/workflows/deploy-worker.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions/checkout@v5
1818
- uses: actions/setup-node@v6
1919
with:
20-
node-version: 22
20+
node-version: 22.23.4
2121
- run: npm ci
2222
working-directory: worker
2323
- run: npx wrangler deploy

‎.github/workflows/nextjs-starter.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
- uses: pnpm/action-setup@v4
4747
- uses: actions/setup-node@v6
4848
with:
49-
node-version: 22
49+
node-version: 22.23.4
5050
cache: pnpm
5151
- run: pnpm install --frozen-lockfile
5252
- run: pnpm test test/examples/nextjs-starter.test.ts

‎.github/workflows/prerelease.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- uses: pnpm/action-setup@v4
5151
- uses: actions/setup-node@v6
5252
with:
53-
node-version: 25
53+
node-version: 26.12.1
5454
cache: pnpm
5555
registry-url: https://registry.npmjs.org
5656
- run: pnpm install --frozen-lockfile
@@ -75,7 +75,7 @@ jobs:
7575
- uses: pnpm/action-setup@v4
7676
- uses: actions/setup-node@v6
7777
with:
78-
node-version: 25
78+
node-version: 26.12.1
7979
cache: pnpm
8080
registry-url: https://registry.npmjs.org
8181
- run: pnpm install --frozen-lockfile
@@ -100,7 +100,7 @@ jobs:
100100
- uses: pnpm/action-setup@v4
101101
- uses: actions/setup-node@v6
102102
with:
103-
node-version: 25
103+
node-version: 26.12.1
104104
cache: pnpm
105105
registry-url: https://registry.npmjs.org
106106
- run: pnpm install --frozen-lockfile

‎.github/workflows/release.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- uses: pnpm/action-setup@v4
4141
- uses: actions/setup-node@v6
4242
with:
43-
node-version: 25
43+
node-version: 26.12.1
4444
cache: pnpm
4545
registry-url: https://registry.npmjs.org
4646
- run: pnpm install --frozen-lockfile
@@ -112,7 +112,7 @@ jobs:
112112
- uses: pnpm/action-setup@v4
113113
- uses: actions/setup-node@v6
114114
with:
115-
node-version: 25
115+
node-version: 26.12.1
116116
cache: pnpm
117117
registry-url: https://registry.npmjs.org
118118
- run: pnpm install --frozen-lockfile
@@ -183,7 +183,7 @@ jobs:
183183
- uses: pnpm/action-setup@v4
184184
- uses: actions/setup-node@v6
185185
with:
186-
node-version: 25
186+
node-version: 26.12.1
187187
cache: pnpm
188188
registry-url: https://registry.npmjs.org
189189
- run: pnpm install --frozen-lockfile
@@ -222,7 +222,7 @@ jobs:
222222
- uses: pnpm/action-setup@v4
223223
- uses: actions/setup-node@v6
224224
with:
225-
node-version: 25
225+
node-version: 26.12.1
226226
cache: pnpm
227227
registry-url: https://registry.npmjs.org
228228
- run: pnpm install --frozen-lockfile
@@ -289,7 +289,7 @@ jobs:
289289
- uses: pnpm/action-setup@v4
290290
- uses: actions/setup-node@v6
291291
with:
292-
node-version: 25
292+
node-version: 26.12.1
293293
cache: pnpm
294294
registry-url: https://registry.npmjs.org
295295
- run: pnpm install --frozen-lockfile

‎package.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@
6464
},
6565
"scripts": {
6666
"build": "tsc --build && node ./scripts/copy-vendor.mjs",
67-
"build:sea": "npx -y node@25 ./scripts/build-sea.mjs",
68-
"build:sea:smoke": "npx -y node@25 ./scripts/build-sea.mjs --smoke",
67+
"build:sea": "npx -y node@26.12.1 ./scripts/build-sea.mjs",
68+
"build:sea:smoke": "npx -y node@26.12.1 ./scripts/build-sea.mjs --smoke",
6969
"clean": "node ./scripts/clean-build.mjs",
7070
"cli": "node dist/cli/bin.js",
7171
"demo:vhs": "pnpm build && node ./scripts/render-vhs.mjs",
@@ -106,7 +106,7 @@
106106
]
107107
},
108108
"engines": {
109-
"node": ">=20.0.0"
109+
"node": "^22.23.4 || ^24.22.1 || >=26.12.1"
110110
},
111111
"dependencies": {
112112
"@inquirer/prompts": "8.3.0",

‎src/pdpp/host.ts‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ export function getPdppHome(): string {
2626
* SHASUMS256.txt values, so a download is checked against a hash that
2727
* shipped with the CLI rather than one fetched next to the tarball.
2828
*/
29-
export const PDPP_NODE_VERSION = "24.21.0";
29+
export const PDPP_NODE_VERSION = "24.22.1";
3030
const PDPP_NODE_SHA256: Record<string, string> = {
3131
"darwin-arm64":
32-
"bed7eea5325e1108f32ce5228ddd6a5f0f08a499ee42aa7442aea583702f6057",
32+
"89c682593d76cd44233fa53b1563264e7de9cbb189cad169135c5b4fadfbc0a7",
3333
"darwin-x64":
34-
"1462cb3b3046b815cf8ea436d3da450ec1a9f11dac7e5a46b0ada5305d7e8097",
34+
"d132557e7ee2b85af08b0c8c34338e65c6430f2238d01f727728ef42dc83b035",
3535
"linux-arm64":
36-
"724282c3b43aec998aa9527380465b45d229e021b58035f5f4f63095eabfe5d5",
36+
"33c37be234ba8bee041961047b19160f4d7d0f164e8e246f78bdd10feff148b3",
3737
"linux-x64":
38-
"6e1db87ef58b8819e5d5402eff1536491b18edd8eb7bee5ef7897876e88dc5ff",
38+
"eb6728e77c576a35162c122c45ccadf224d89ff00abc8dae46cc2897c6002d7c",
3939
};
4040

4141
/** What a signed artifact's provenance asks of the machine running it. */

0 commit comments

Comments
 (0)