Skip to content

Pin GitHub Actions to specific commit SHAs#3

Merged
cornet merged 1 commit into
masterfrom
devp/pin-action-shas
May 21, 2026
Merged

Pin GitHub Actions to specific commit SHAs#3
cornet merged 1 commit into
masterfrom
devp/pin-action-shas

Conversation

@dev-platform-overlook
Copy link
Copy Markdown

This PR pins all GitHub Actions to specific commit SHAs for improved security and stability.

Why pin Actions to SHAs?

Using commit SHAs instead of tags or branch names provides several security and stability benefits:

  • Security: Prevents potential supply-chain attacks where an action's tag could be moved to malicious code
  • Immutability: Ensures the exact same code runs every time, even if tags are moved or deleted
  • Auditability: Makes it clear exactly which version of each action is being used
  • Stability: Prevents unexpected breaking changes from tag updates

Implementation

  • This change uses pinact to automatically pin actions while maintaining human-readable comments showing the original tag reference.
  • If required, a Dependabot configuration has also been added/updated to keep the pinned actions up to date.
  • If required, a GitHub Actions workflow has been added to check that all actions are pinned in future changes.
  • Shared workflows from fac/[ops-]shared-workflows on the main branch are intentionally excluded from pinning.

Part of https://github.com/fac/dev-platform/issues/2605

@scottclk scottclk self-assigned this May 21, 2026
@scottclk scottclk marked this pull request as ready for review May 21, 2026 09:13
@cornet cornet merged commit fb5afde into master May 21, 2026
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