Draft
Fix badge job: force Node.js 24 for deprecated node20 action#1365
Conversation
Copilot
AI
changed the title
[WIP] Fix the failing GitHub Actions job badge
Fix badge job: force Node.js 24 for deprecated node20 action
Jun 12, 2026
|
I will automatically update this comment whenever this PR is modified |
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.
Description
The
badgeCI job was failing withHttpError: Requires authentication(HTTP 401) from withinmanics/action-binderbadge@v3.0.0. The action bundles@actions/github@6.0.0→@octokit/request@9, which uses Node.js nativefetch(unstable in Node.js 20). Newer GitHub-hosted runner images expose this instability, causing auth headers to be silently dropped.Fix
Added
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: trueto thebadgejob env inbinder-badge.yml— the explicit GitHub-recommended migration path fornode20actions ahead of the forced June 16, 2026 cutover.No upstream fix is available (
manics/action-binderbadgehas nonode24release); this env var resolves the issue without forking the action."Ready for review" checklist
Merge checklist
closes #1)CHANGELOG.mdupdatedREADME.mdupdatedpre-commit.ci autofixif pre-commit is failing)