Skip to content

fix(security): pin third-party GitHub Actions to immutable SHA#7

Merged
mathieudi merged 3 commits into
mainfrom
feat/sha-pin-third-party-actions
Apr 24, 2026
Merged

fix(security): pin third-party GitHub Actions to immutable SHA#7
mathieudi merged 3 commits into
mainfrom
feat/sha-pin-third-party-actions

Conversation

@mathieudi
Copy link
Copy Markdown

Summary

Pin every third-party GitHub Action to an immutable commit SHA (with a version comment so Renovate can still manage updates).

Per GitHub's security guidance, pinning to a full-length commit SHA is currently the only way to use an action as an immutable release. The trailing # vX.Y.Z comment is what Renovate reads to bump both the SHA and the version together on new releases.

Changes

  • Workflows (2 files): every third-party uses: rewritten to owner/repo@<sha> # vX.Y.Z.
  • renovate.json: added a packageRules entry enforcing pinDigests: true for third-party actions (matchPackageNames: ["!/^reside-eng\\//"]).

Pinned SHA table

Action Before After
actions/checkout v4 34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
actions/setup-node v4 49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
cycjimmy/semantic-release-action v2 5982a02995853159735cb838992248c4f0f16166 # v2.7.0
technote-space/workflow-conclusion-action v3.0.3 45ce8e0eb155657ab8ccf346ade734257fd196a5 # v3.0.3

Test plan

  • Verify workflow passes on this PR
  • Release workflow runs cleanly after merge

🤖 Generated with Claude Code

mathieudi and others added 3 commits April 21, 2026 17:07
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…itial pass

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This rule will move to shared default.json as a follow-up (PR C) so
every repo extending the shared preset inherits it without per-repo
duplication. Existing third-party actions in this repo are already
SHA-pinned via this PR series — removing this rule only affects future
unpinned additions during the short window before the shared rule
ships.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mathieudi mathieudi merged commit 204cab6 into main Apr 24, 2026
1 check passed
@mathieudi mathieudi deleted the feat/sha-pin-third-party-actions branch April 24, 2026 09:31
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 1.1.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant