Skip to content

Pin GitHub Actions to commit SHAs - #83

Merged
jclusso merged 1 commit into
masterfrom
pin-github-actions-to-shas
Aug 5, 2026
Merged

Pin GitHub Actions to commit SHAs#83
jclusso merged 1 commit into
masterfrom
pin-github-actions-to-shas

Conversation

@n-older

@n-older n-older commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Supersedes #82.

Dependabot proposed pinning pnpm/action-setup to v6.0.9 in #82, which left the workflow inconsistent: one action on an exact version, the other two on floating major tags. Copilot flagged that on the PR. This aligns all of them on the stricter strategy instead — full commit SHAs with a trailing version comment.

Action SHA Tag Was
actions/checkout 3d3c42e v7.0.1 @v7
pnpm/action-setup 0977fd9 v6.0.10 @v6
actions/setup-node 8207627 v7.0.0 @v7

No behavior change. Each SHA is the commit its tag resolves to today, so CI runs the same action code it already does. Note this pins pnpm/action-setup at v6.0.10, not the v6.0.9 from #82 — the v6 tag has since been moved forward past v6.0.9, so merging #82 would have frozen CI one release behind.

Dependabot updates SHA pins (rewriting both the SHA and the version comment), so this doesn't cost us update coverage.

Pins actions/checkout, pnpm/action-setup, and actions/setup-node to full
commit SHAs with version comments instead of floating major tags, for
reproducible builds and supply-chain safety. Each SHA is the commit the
corresponding release tag currently points at, so CI runs the same code
as before.
Copilot AI balanced review requested due to automatic review settings August 5, 2026 13:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Ready to approve

All pinned SHAs resolve to the documented versions, and GitHub Actions Dependabot updates are configured.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Pull request overview

Pins CI actions to verified immutable SHAs while retaining version comments for Dependabot updates.

Changes:

  • Pins checkout, pnpm setup, and Node setup actions.
  • Applies pins consistently across test and lint jobs.
File summaries
File Description
.github/workflows/ci.yml Replaces floating action tags with matching commit SHAs.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Balanced

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

@jclusso
jclusso merged commit eee6c93 into master Aug 5, 2026
7 checks passed
@jclusso
jclusso deleted the pin-github-actions-to-shas branch August 5, 2026 14:01
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.

3 participants