Skip to content

Update CI actions and test on current Node LTS versions - #989

Merged
cjbarth merged 1 commit into
node-saml:masterfrom
cjbarth:ci-updates
Sep 25, 2026
Merged

cjbarth merged 1 commit into
node-saml:masterfrom
cjbarth:ci-updates

Conversation

@cjbarth

@cjbarth cjbarth commented Sep 25, 2026 •

Copy link
Copy Markdown
Collaborator

This follows #987, which updated the npm dependencies but not the workflows.

Changes

  • Actions:
    • actions/checkout v4 → v7
    • actions/setup-node v3 → v7
    • codecov/codecov-action v3.1.4 → v7
    • github/codeql-action v3 → v4 (v3 is deprecated in December 2026)
    • actions/stale v5 → v11
  • Codecov: now passes CODECOV_TOKEN, which Codecov v4 and later require. PRs from forks still upload without a token.
  • Node versions: test and lint on Node 18, 20, 22, 24 and 26, instead of 18, 20 and latest.
    • fail-fast: false reports every version that fails, not just the first.
    • The latest entry is dropped because 26 is the current release. Its experimental flag was never wired to continue-on-error, so it didn't allow failures anyway.
  • Permissions: workflow.yml now declares permissions: contents: read.

This matches node-saml's workflow, and xml-crypto's for the Codecov token and permissions.

None of the breaking changes in these majors apply here:

  • The new versions run on the Node 24 runtime, which GitHub-hosted runners support.
  • setup-node's automatic caching only applies when package.json has a packageManager field, and this one doesn't.
  • checkout v7's new restriction only affects pull_request_target and workflow_run, which these workflows don't use.
  • The stale inputs are unchanged.

Verification

actionlint and Prettier pass. The CI run on this PR uses the new actions and the full Node matrix.

Dependabot

Supersedes #972, #973, #974, #975 and #976.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated the automated code scanning and stale-issue workflows.
    • Automated tests and lint checks now run on Node.js 18, 20, 22, 24, and 26, with failures evaluated independently across versions.
    • Workflow permissions are limited to read-only access to repository contents. Coverage reporting and workflow actions have also been updated.

Bump actions/checkout to v7, actions/setup-node to v7,
codecov/codecov-action to v7, github/codeql-action to v4 and
actions/stale to v11. Codecov v4 and later need an upload token, so pass
CODECOV_TOKEN.

Test and lint on Node 18, 20, 22, 24 and 26 without failing fast, as
node-saml does, and give the build workflow read-only contents access.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cjbarth cjbarth added this to the 5.1.1 milestone Sep 25, 2026
@cjbarth cjbarth added dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code labels Sep 25, 2026
@coderabbitai

coderabbitai Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: d800c283-e7a9-465f-90b4-5ca4d81a6f95

📥 Commits

Reviewing files that changed from the base of the PR and between bd2ff59 and 9478d85.

📒 Files selected for processing (3)
  • .github/workflows/codeql-analysis.yml
  • .github/workflows/stale-bot.yml
  • .github/workflows/workflow.yml

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 1 remain after this review.


📝 Walkthrough

Walkthrough

The GitHub workflows update action versions and test and lint configuration. The test and lint matrices cover Node.js 18, 20, 22, 24, and 26. The test workflow adds read-only contents permissions and passes CODECOV_TOKEN to Codecov.

Changes

GitHub Actions workflow updates

Layer / File(s) Summary
CodeQL action upgrades
.github/workflows/codeql-analysis.yml
The workflow upgrades checkout to v7 and the CodeQL init, autobuild, and analyze actions to v4.
Stale workflow action upgrade
.github/workflows/stale-bot.yml
The stale-issue workflow upgrades actions/stale from v5 to v11.
Test and lint workflow configuration
.github/workflows/workflow.yml
The workflow grants read-only contents permissions, updates both Node.js matrices to versions 18, 20, 22, 24, and 26, and disables fail-fast. It upgrades checkout and setup-node to v7 and Codecov to v7, and supplies CODECOV_TOKEN to Codecov.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Merge Risk: ⚪ Minimal · up to 9478d

The supplied evidence identifies no merge-blocking workflow regression, including for fork coverage uploads. The PR is ready for normal CI validation.

Architecture Summary

Architecture risk: 🔵 Low · up to 9478d

The changed surface does not map to a changed system, dependency edge, entrypoint, or external dependency.

Changed systems: None identified.

Architecture concerns
No architecture-level concerns identified.

Review details

Before / after behavior

  • observed — Modified behavior in .github/workflows/codeql-analysis.yml: The checkout action was upgraded from v4 to v7, and CodeQL initialization from v3 to v4.
  • observed — Modified behavior in .github/workflows/codeql-analysis.yml: The CodeQL autobuild action was upgraded from v3 to v4.
  • observed — Modified behavior in .github/workflows/codeql-analysis.yml: The CodeQL analysis action was upgraded from v3 to v4.
  • observed — Modified behavior in .github/workflows/stale-bot.yml: The workflow action reference changes from actions/stale@v5 to actions/stale@v11.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main changes: CI action upgrades and testing across current Node.js versions.
Description check ✅ Passed The description provides a detailed change summary, references the related issue, explains the CI use case, lists verification steps, and identifies the affected workflows. It does not include the rep…
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
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 a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@codecov

codecov Bot commented Sep 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 65.77%. Comparing base (bd2ff59) to head (9478d85).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #989   +/-   ##
=======================================
  Coverage   65.77%   65.77%           
=======================================
  Files           4        4           
  Lines         149      149           
  Branches       37       37           
=======================================
  Hits           98       98           
  Misses         41       41           
  Partials       10       10           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cjbarth
cjbarth merged commit c614392 into node-saml:master Sep 25, 2026
16 checks passed
@cjbarth
cjbarth deleted the ci-updates branch September 25, 2026 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant