Skip to content

chore(ci): bump actions/checkout to v5 for the Node 24 runtime (closes #19) - #25

Closed
dchaudhari7177 wants to merge 1 commit into
Glory42:masterfrom
dchaudhari7177:chore/ci-checkout-node24
Closed

chore(ci): bump actions/checkout to v5 for the Node 24 runtime (closes #19)#25
dchaudhari7177 wants to merge 1 commit into
Glory42:masterfrom
dchaudhari7177:chore/ci-checkout-node24

Conversation

@dchaudhari7177

Copy link
Copy Markdown

Closes #19.

Which version actually drops Node 20

Rather than going by the changelog, I read action.yml at each tag:

v5.0.0:   using: node24
v4.3.0:   using: node20

v5.0.0 is the release that switched (actions/checkout#2226). So @v5 is the fix.

checkout is the only offender

I also checked the other action in the workflow:

oven-sh/setup-bun@v2:  using: "node24"

It's already on Node 24 — which matches the annotation naming only actions/checkout@v4. So this one line clears the warning entirely; there's no second bump waiting behind it.

Why v5 and not v7

v7.0.1 is the current release, and I deliberately didn't go there:

Neither is needed to fix a Node 20 deprecation, and both are behaviour changes this issue didn't ask for. For what it's worth, v7's fork-PR restriction wouldn't bite here — this workflow triggers on pull_request, not pull_request_target — so if you'd rather track the latest major, say the word and I'll change it to @v7. I went minimal because that's what the issue scoped.

v5 requires runner v2.327.1 or newer; ubuntu-latest is well past that.

Verification

Nothing here is locally runnable, as the issue notes — the real check is the next CI run. What I could confirm:

  • the workflow still parses, with the expected triggers and steps:
    triggers: ['push', 'pull_request']
      uses: actions/checkout@v5
      uses: oven-sh/setup-bun@v2
    
  • v5 exists as a moving major tag on actions/checkout, and its action.yml declares node24

The annotation should be gone from the CI run on this PR.

🤖 Generated with Claude Code

Every CI run was annotated with "Node.js 20 is deprecated ...
actions/checkout@v4". v5.0.0 is the release that switched the action to
node24 (actions/checkout#2226); v4.x still declares `using: node20`. I
checked both action.yml files rather than going by the changelog alone.

actions/checkout is the only offender here. oven-sh/setup-bun@v2 already
declares `using: "node24"`, which matches the annotation naming
checkout alone, so this one line clears it.

Stopped at v5 rather than the current v7 deliberately: v5 is exactly the
version that drops Node 20, while v6 changes how credentials are
persisted and v7 moves to ESM and blocks fork-PR checkouts for
pull_request_target / workflow_run. None of that is needed to fix this,
and this workflow triggers on pull_request rather than
pull_request_target so it would be a no-op risk. Happy to go to v7
instead if you would rather track the latest major.

v5 requires runner v2.327.1 or newer, which ubuntu-latest is well past.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@Glory42 Glory42 closed this Aug 17, 2026
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.

chore(ci): actions/checkout@v4 is being forced onto a deprecated Node 20 runtime

2 participants