Skip to content

Fix badge job: force Node.js 24 for deprecated node20 action#1365

Draft
betolink with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-failing-github-actions-job-badge
Draft

Fix badge job: force Node.js 24 for deprecated node20 action#1365
betolink with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-failing-github-actions-job-badge

Conversation

Copilot AI commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Description

The badge CI job was failing with HttpError: Requires authentication (HTTP 401) from within manics/action-binderbadge@v3.0.0. The action bundles @actions/github@6.0.0@octokit/request@9, which uses Node.js native fetch (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: true to the badge job env in binder-badge.yml — the explicit GitHub-recommended migration path for node20 actions ahead of the forced June 16, 2026 cutover.

jobs:
  badge:
    env:
      FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true

No upstream fix is available (manics/action-binderbadge has no node24 release); this env var resolves the issue without forking the action.


"Ready for review" checklist

  • Place this Pull Request (PR) in draft until it is ready for review (see below)
  • Please review our Pull Request Guide
  • Mark "ready for review" after following instructions in the guide

Merge checklist

  • PR title is descriptive
  • PR body contains links to related and resolved issues (e.g. closes #1)
  • If needed, CHANGELOG.md updated
  • If needed, docs and/or README.md updated
  • If needed, unit tests added (unsure how? see below!)
  • All checks passing (tip: comment pre-commit.ci autofix if pre-commit is failing)
  • At least one approval

Need help? We welcome contributions at every experience level. You don't have to
write tests alone — open your PR and ask for help. It's also fine to let GitHub run tests
for you, via Continuous Integration (CI),
instead of running them locally. If anything fails and you're not sure why, just
mention @earthaccess-dev/maintainers in a comment and we'll work with you!

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
Copilot AI requested a review from betolink June 12, 2026 04:13
@github-actions

Copy link
Copy Markdown

Binder 👈 Launch a binder notebook on this branch for commit ecd63bf

I will automatically update this comment whenever this PR is modified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants