ci: move the AI-disclosure check off the deprecated Node 20 runtime - #227
Merged
Conversation
actions/github-script@v7 runs on Node 20, which GitHub has deprecated: every run of this job now prints the deprecation notice, and the runtime will stop being available on a date GitHub chooses rather than one this repository picks. v8 is the same action on Node 24. No behaviour change — the script body is untouched, and `context.payload` and `core.setFailed` are unchanged across the major. actions/checkout@v4 is on Node 20 for the same reason and is NOT touched here: checkout@v5 changes more than the runtime, so it deserves its own review rather than riding along with a one-line bump. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EhMynpFbWTNFcyUnobBGZE
There was a problem hiding this comment.
Pull request overview
Updates the PR workflow to avoid the deprecated Node 20 runtime warning by moving the AI-disclosure check step to the Node 24-based major of actions/github-script, without changing the script logic.
Changes:
- Bump
actions/github-scriptfrom@v7to@v8in theai-disclosurejob. - Keep the disclosure-check script body unchanged to preserve behavior.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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.
Summary
Every PR run currently prints:
It comes from
actions/github-script@v7, which is a Node 20 action.v8is the same action onNode 24.
No behaviour change. The script body is untouched;
context.payload.pull_requestandcore.setFailedare unchanged across the major.Not in this PR, on purpose
actions/checkout@v4is a Node 20 action for the same reason and is left alone.checkout@v5changes more than the runtime, so it deserves a review of its own rather than riding along with a
one-line bump.
Verification
The change is one line in
.github/workflows/pr.yml. Theai-disclosurejob on this PR is the test:if it runs and evaluates this PR's body, the action works on the new major.
AI-Enhanced Development
Tell what models helped shape this PR:
Cache Impact
Does this PR affect anything cached — system prompts, tool definitions, skills, or other context?
🤖 Generated with Claude Code
https://claude.ai/code/session_01EhMynpFbWTNFcyUnobBGZE