Upgrade GitHub Actions to Node.js 24 compatibility#25
Conversation
- Bump actions/checkout v4 → v6 across all 6 workflow files - Bump actions/setup-node v4 → v6 in run_tests.yml and check_auth.yml - Upgrade tj-actions/changed-files v41 → v46 in run_tests.yml - Replace deprecated `ref: "main"` with `base_sha: 'main'` in run_tests.yml (ref input removed in v43+) - Bump node-version 20 → 22 in run_tests.yml Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
WalkthroughSix GitHub Actions workflows are updated to use newer action versions. The ChangesGitHub Actions Version Upgrades
🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 6
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/check_auth.yml:
- Line 20: Replace the tag-pinned actions in the workflow so they use immutable
commit SHAs: locate the `uses: actions/checkout@v6` and `uses:
actions/setup-node@v6` entries in the `.github/workflows/check_auth.yml` file
and replace `@v6` with the corresponding full commit SHAs for each action (use
the official actions repos to copy the current recommended commit SHA for
actions/checkout and actions/setup-node), ensuring the workflow references the
exact commit rather than a moving tag.
In @.github/workflows/check_dependencies.yml:
- Line 59: The workflow step currently uses the mutable tag "uses:
actions/checkout@v6"; replace that reference with the corresponding immutable
40-character commit SHA for the actions/checkout repository (i.e., "uses:
actions/checkout@<full-40-char-SHA>") so the workflow is pinned to a specific
commit; locate the "uses: actions/checkout@v6" entry in the workflow and update
it to the full commit SHA from the actions/checkout GitHub repo for the v6
release.
In @.github/workflows/check_tests.yml:
- Line 15: Replace the mutable tag usage of actions/checkout@v6 with an
immutable full commit SHA: locate the uses: actions/checkout entry currently set
to actions/checkout@v6 and change it to actions/checkout@<full-commit-sha> (use
the official actions/checkout repository commit SHA you intend to pin); commit
the updated workflow and verify the workflow runs to ensure the pinned SHA is
valid.
In @.github/workflows/run_tests.yml:
- Line 24: Replace mutable action tags with immutable commit SHAs: update the
workflow entries referencing actions/checkout@v6, tj-actions/changed-files@v46,
and actions/setup-node@v6 to use their respective commit SHAs (e.g.,
actions/checkout@<sha>, tj-actions/changed-files@<sha>,
actions/setup-node@<sha>). Locate the three `uses:` lines that reference those
exact module strings and pin each to the latest verified commit SHA from the
action's repository, then commit the updated workflow.
In @.github/workflows/slack_changelog.yml:
- Line 16: Replace the moving tag reference to actions/checkout@v6 with a pinned
commit SHA: locate the workflow step that uses the actions/checkout action (the
line with "uses: actions/checkout@v6") and update it to the specific full commit
SHA for the actions/checkout repository (e.g.,
actions/checkout@<full-commit-sha>) so the workflow uses an immutable reference
and mitigates supply-chain risk.
In @.github/workflows/update_templates_production.yml:
- Line 17: Replace the mutable uses: actions/checkout@v6 occurrences with the
corresponding immutable commit SHAs (i.e., uses:
actions/checkout@<full-commit-sha>) so the workflow is pinned; update both
instances of "uses: actions/checkout@v6" in this file and search other
.github/workflows/* for the same pattern and pin them as well, ensuring the
chosen commit SHAs match the v6 release you intend to track.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: e262bc21-633b-466c-ae2d-5c482abe4f1d
📒 Files selected for processing (6)
.github/workflows/check_auth.yml.github/workflows/check_dependencies.yml.github/workflows/check_tests.yml.github/workflows/run_tests.yml.github/workflows/slack_changelog.yml.github/workflows/update_templates_production.yml
Summary
uses: silverfin/bso_github_actions/.github/workflows/...actions/checkoutv4 → v6 across all 6 workflow filesactions/setup-nodev4 → v6 inrun_tests.ymlandcheck_auth.ymltj-actions/changed-filesv41 → v46 inrun_tests.ymlref: "main"withbase_sha: 'main'inrun_tests.yml(therefinput was removed in v43+;check_tests.ymlalready used v46 withbase_sha: 'main'as the correct pattern)node-version: 20→node-version: 22inrun_tests.ymlFiles changed
.github/workflows/run_tests.ymlref→base_sha, setup-node v6, node 20 → 22.github/workflows/check_auth.yml.github/workflows/check_tests.yml.github/workflows/check_dependencies.yml.github/workflows/slack_changelog.yml.github/workflows/update_templates_production.ymlTest plan
run_tests.ymland the changed-files step resolves correctly withbase_sha: 'main'check_auth.ymlruns Node 22 without errorscheck_tests.yml,check_dependencies.yml,slack_changelog.yml, andupdate_templates_production.ymlstill pass after the checkout bump🤖 Generated with Claude Code