Repository navigation
ci: use patched Node 22 for builds - #1245
Merged
Merged
Conversation
duffel-palms
force-pushed
the
danpalmer/tsp-2372-node-security
branch
from
November 17, 2026 11:12
92f3e7f to
9464fa7
Compare
andrejak
approved these changes
Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves development, CI and release builds from Node 20.19.4 to Node 22.23.5, which includes the 11 November security fixes. All five workflow jobs and asdf read
.tool-versions. The stale Node 18.nvmrcselector is removed.The release fixes HTTPS memory disclosure, HTTP/2 memory corruption and crashes, TLS authentication/session handling, proxy credential logging and bundled dependency issues. The SDK makes outbound requests through
node-fetch; it doesn't start an HTTPS or HTTP/2 server. These server flaws don't establish SDK exploitability, and this review hasn't shown the affected outbound TLS policy-sharing conditions here. See the Node advisory.This is a build-tool migration from Node 20 to 22. Existing Babel and npm release-plugin versions already require Node 22.18+ and 22.14+ respectively. Consumer
engines: >=20, the package version and dependencies stay as they are. Yarn remains 4.12.0 with immutable installs. The main-only release workflow keeps its npm 11 range and OIDC setup. Consumers must update their own Node runtime; this doesn't update separate npm dependencies such asnode-fetch.Local development and CI now share
.tool-versions(nodejs 22.23.5). The node-build definition is available, and.nvmrcis removed.Version selection checks on 17 November: a fresh isolated asdf install succeeded on macOS arm64, and
asdf exec node --versionselectsv22.23.5in this repository. The setup-node parsers at the action revisions used by these PRs resolve the same version. Workflow YAML and all Node selectors were checked. The patch merges cleanly with current main.Validation:
yarn buildran on checksum-verified Node 20.19.4 and 22.23.5. All 174 output files are byte-identical. Rollup uses TypeScript's ES6 target; Babel'snode: "current"setting belongs to Jest, not the shipping build.skipLibChecksetting. Two separate baseline issues reproduce on main's identical declarations:DuffelAPIClientnamesthreeDSecureSessionswhileDuffelexposesthree_d_secure_sessions; old@types/nodeBuffer declarations fail full checking with TypeScript 5.9.3.These checks validate the package and consumers, not npm/OIDC publication or live API integrations. No publishing command was run. The Actions-lockfile migration in #1244 remains independent.
Refs TSP-2372