fix(ci): pin Node 22.22.3 in Kanar workflow to avoid ERR_STREAM_PREMATURE_CLOSE #PLTM-1403#21
Merged
Merged
Conversation
|
papaslon
approved these changes
Jun 25, 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.
Motivation
Kanar (Danger-based CI) fails intermittently on PRs with
ERR_STREAM_PREMATURE_CLOSE/ "Failed to fetch GitHub pull request files / commits" before the dangerfile runs. GitHub Actions runner images were updated around 23 June 2026, bumping the default Node onubuntu-latestfrom 22.22.3 to 22.23.0. Node 22.23.0+ and 24.17.0+ regressedhttp.Agentkeep-alive behavior (nodejs/node#63989, CVE-2026-48931), which breaksnode-fetch@2used by Danger 13.x (danger/danger-js#1515).Intended outcome
Kanar should reliably fetch PR metadata from GitHub instead of failing with premature stream close errors caused by the broken Node keep-alive behavior on runner default Node versions.
Overview of changes
actions/setup-node@v4before theRampNetwork/kanarstep in.github/workflows/kanar.yml.node-versionto"22.22.3"(last known good version on theubuntu-latestdefault Node 22 line).Quality assurance