Skip to content
This repository was archived by the owner on May 20, 2026. It is now read-only.

Pin GitHub Actions to specific commit SHAs#2

Closed
dev-platform-overlook[bot] wants to merge 1 commit into
mainfrom
devp/pin-action-shas
Closed

Pin GitHub Actions to specific commit SHAs#2
dev-platform-overlook[bot] wants to merge 1 commit into
mainfrom
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

@DuncSmith DuncSmith closed this May 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant