Skip to content

Harden CI: SHA-pin actions, add persist-credentials: false#44

Merged
jpr5 merged 1 commit into
masterfrom
fix/ci-hardening
May 15, 2026
Merged

Harden CI: SHA-pin actions, add persist-credentials: false#44
jpr5 merged 1 commit into
masterfrom
fix/ci-hardening

Conversation

@jpr5
Copy link
Copy Markdown
Owner

@jpr5 jpr5 commented May 15, 2026

Summary

  • SHA-pin actions/checkout, ruby/setup-ruby, and actions/upload-artifact to their current commit SHAs to prevent supply-chain attacks via tag mutation
  • Add persist-credentials: false to the checkout step so the GITHUB_TOKEN is not persisted in the local git config
  • Add top-level permissions: contents: read to enforce least-privilege on the workflow's GITHUB_TOKEN

Test plan

  • Verify CI passes on this PR (all three pinned actions resolve correctly)
  • Confirm bundle exec rspec still runs and coverage artifact uploads

…sions

SHA-pin all three GitHub Actions (checkout, setup-ruby, upload-artifact)
to their current commit SHAs to prevent supply-chain attacks via tag
mutation. Add persist-credentials: false to the checkout step so the
GITHUB_TOKEN is not persisted in the git config. Add top-level
permissions: contents: read to enforce least-privilege.
@jpr5 jpr5 merged commit 4a7a2eb into master May 15, 2026
2 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