chore: Update GitHub Actions workflows to use trusted publishers and latest action versions#265
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. Comment |
Co-authored-by: kentcdodds <[email protected]>
|
@copilot, Update |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #265 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 4 4
Lines 155 155
Branches 52 52
=========================================
Hits 155 155 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Co-authored-by: kentcdodds <[email protected]>
Updated! Changes made in commit 2c212ca:
The workflows will now automatically use the appropriate Node.js versions without manual updates. |
Overview
This PR modernizes the repository's GitHub Actions workflows to comply with the 2025 npm authentication and token management changes. These updates ensure secure npm publishing using GitHub's OIDC authentication instead of legacy token-based authentication.
Changes
validate.yml
actions/checkoutfrom v4 to v5 (3 instances across build, e2e, and release jobs)actions/setup-nodefrom v4 to v6 (2 instances in build and e2e jobs)node-versionto use LTS aliases for future-proofing:[lts/-1, lts/*, latest](previously[22, 24]and[24])build-lts/*-${{ github.sha }}(previouslybuild-24-${{ github.sha }})cycjimmy/semantic-release-actionfrom v4 to v5.0.2semantic_versioninput from 24 to 25 to match the latest semantic-release major versionNPM_TOKENreference from the release job's environment variablesauto-format.yml
actions/checkoutfrom v4 to v5actions/setup-nodefrom v4 to v6node-versionfrom24tolts/*for automatic LTS trackingSecurity
✅ All changes pass CodeQL security analysis with 0 alerts
The new OIDC-based authentication approach provides enhanced security by:
Testing
Notes
The workflows now use Node.js LTS version aliases (
lts/-1,lts/*,latest) instead of hardcoded version numbers, making them future-proof and eliminating the need for manual updates when Node.js LTS versions change.No changes were made to job logic, environment blocks, or other unrelated configurations as per the requirement to make minimal, focused updates for security and release modernization.
Fixes #264
Original prompt
Fixes #264
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
Note
Modernizes CI workflows: upgrade actions, switch Node versions to LTS aliases, and enable OIDC-based releases with updated semantic-release.
validate.yml:actions/checkouttov5andactions/setup-nodetov6.[lts/-1, lts/*, latest]; E2Enode-versiontolts/*.auto-format.yml:actions/checkouttov5andactions/setup-nodetov6.node-versiontolts/*.build-lts/*-${{ github.sha }}.cycjimmy/semantic-release-actiontov5.0.2andsemantic_versionto25.NPM_TOKENfrom environment.Written by Cursor Bugbot for commit d1aba08. This will update automatically on new commits. Configure here.