Skip to content

ci: update GitHub Actions for Node 24 - #184

Merged
jaruesink merged 2 commits into
mainfrom
chore/update-actions-for-node24
Jul 28, 2026
Merged

ci: update GitHub Actions for Node 24#184
jaruesink merged 2 commits into
mainfrom
chore/update-actions-for-node24

Conversation

@jaruesink

@jaruesink jaruesink commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Update GitHub-maintained actions to Node 24-compatible major versions.
  • Grant issues: write for preview comments on trusted same-repository PRs.
  • Skip the preview comment step for fork PRs, where GitHub downgrades GITHUB_TOKEN permissions to read-only.

Why

The failing preview run is not caused by the project Node version. The build succeeds, then actions/github-script@v6 receives a 403 when trying to create a comment on fork PR #183. The Node 20 messages are action-runtime deprecation warnings.

Validation

Summary by CodeRabbit

  • Chores
    • Updated automated build, test, release, deployment, and preview workflows to use newer setup and caching actions.
    • Improved pull request preview comment update permissions.
    • Preserved existing runtime versions, commands, triggers, and deployment behavior.

@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@coderabbitai

coderabbitai Bot commented Jul 28, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 56 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 7c25827b-f8b4-4ac6-8050-ce2b00b47915

📥 Commits

Reviewing files that changed from the base of the PR and between cf468e7 and 2c5ab2b.

📒 Files selected for processing (1)
  • packages/components/src/ui/checkbox-field.tsx

Walkthrough

GitHub Actions workflows now use newer major versions of checkout, Node setup, GitHub Script, and cache actions. The PR preview workflow also adds issue write permission while retaining its existing cleanup behavior.

Changes

Workflow modernization

Layer / File(s) Summary
PR preview permissions and actions
.github/workflows/pr-preview.yml
Adds issues: write permission and upgrades checkout, Node setup, GitHub Script, and cleanup action references.
Shared workflow action upgrades
.github/workflows/github-pages.yml, .github/workflows/pr-quality-checks.yml, .github/workflows/release.yml, .github/workflows/test.yml
Updates workflow setup actions to newer major versions and upgrades the Turbo cache action in quality checks.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Poem

A rabbit hops through Actions bright,
With checkout wings and Node in flight.
Cache paws softly, scripts gleam,
Preview comments join the stream—
Fresh workflows sprint through the night!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the workflow updates to Node 24-compatible GitHub Actions versions.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/update-actions-for-node24

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown
Contributor

📝 Storybook Preview: View Storybook

This preview will be updated automatically when you push new changes to this PR.

Note: The preview will be available after the workflow completes and the PR is approved for deployment.

@jaruesink
jaruesink marked this pull request as ready for review July 28, 2026 15:55

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 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/pr-preview.yml:
- Line 14: Move the comment logic in the workflow into a dedicated
same-repository comment job and relocate the issues: write permission from
workflow scope to that job’s permissions. Keep build and cleanup jobs limited to
their existing permissions, and preserve the fork guard around the comment API
call.

In @.github/workflows/release.yml:
- Around line 20-23: Update the stale setup-node reference in the release
workflow comment to say actions/setup-node@v5, matching the version used by the
Setup Node.js step.
🪄 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: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: bcca33e3-1d06-4c59-be10-3dd6c4a4fdd7

📥 Commits

Reviewing files that changed from the base of the PR and between 907bd92 and cf468e7.

📒 Files selected for processing (5)
  • .github/workflows/github-pages.yml
  • .github/workflows/pr-preview.yml
  • .github/workflows/pr-quality-checks.yml
  • .github/workflows/release.yml
  • .github/workflows/test.yml

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
issues: write

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

Scope issues: write to the comment job.

issues: write is workflow-wide here, so the build and cleanup jobs also inherit issue-write access even though the fork guard only skips the API call in the comment step. Move the comment logic into a dedicated same-repo job with job-level issues: write.

🧰 Tools
🪛 zizmor (1.26.1)

[error] 14-14: overly broad permissions (excessive-permissions): issues: write is overly broad at the workflow level

(excessive-permissions)

🤖 Prompt for 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.

In @.github/workflows/pr-preview.yml at line 14, Move the comment logic in the
workflow into a dedicated same-repository comment job and relocate the issues:
write permission from workflow scope to that job’s permissions. Keep build and
cleanup jobs limited to their existing permissions, and preserve the fork guard
around the comment API call.

Comment on lines +20 to +23
uses: actions/checkout@v5

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v5

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Show the relevant workflow region with line numbers.
file=".github/workflows/release.yml"
wc -l "$file"
sed -n '1,80p' "$file" | cat -n

Repository: lambda-curry/forms

Length of output: 3150


Update the stale setup-node reference. The comment at the release step still says setup-node@v4, but this workflow now uses actions/setup-node@v5.

🤖 Prompt for 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.

In @.github/workflows/release.yml around lines 20 - 23, Update the stale
setup-node reference in the release workflow comment to say
actions/setup-node@v5, matching the version used by the Setup Node.js step.

@jaruesink
jaruesink merged commit f95b592 into main Jul 28, 2026
6 checks passed
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.

1 participant