Skip to content

Update GitHub Actions and harden workflow permissions - #413

Merged
johnnagro merged 1 commit into
masterfrom
update-github-actions
Nov 14, 2026
Merged

johnnagro merged 1 commit into
masterfrom
update-github-actions

Conversation

@johnnagro

Copy link
Copy Markdown
Collaborator

Summary

  • Bump actions/checkout v4 → v7 (Node 24 runtime) and github/codeql-action v3 → v4 ahead of v3's deprecation.
  • Add top-level permissions: contents: read to ci.yml so the GITHUB_TOKEN is read-only instead of inheriting the repo default.
  • Set persist-credentials: false on every checkout; no workflow pushes, so the token shouldn't be left in the runner's git config for later steps (bundle install, specs, etc.).
  • Run the RuboCop lint job on Ruby 4.0 (current stable) instead of 3.4.

Test plan

  • CI matrix passes
  • Lint job passes on Ruby 4.0
  • CodeQL analysis completes with v4

- Bump actions/checkout v4 -> v7 and github/codeql-action v3 -> v4
- Restrict CI GITHUB_TOKEN to contents: read
- Don't persist checkout credentials (no workflow pushes)
- Run RuboCop lint job on Ruby 4.0
@johnnagro
johnnagro merged commit 1957f61 into master Nov 14, 2026
93 of 94 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