Skip to content

Pin GitHub Actions to specific commit SHAs#108

Merged
NikolasPilavakis merged 1 commit into
masterfrom
devp/pin-action-shas
Jun 5, 2026
Merged

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

Conversation

@dev-platform-overlook
Copy link
Copy Markdown
Contributor

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.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 27, 2026

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

@DuncSmith DuncSmith marked this pull request as ready for review May 27, 2026 16:15
@DuncSmith DuncSmith requested a review from a team as a code owner May 27, 2026 16:15
@NikolasPilavakis NikolasPilavakis merged commit b738ce7 into master Jun 5, 2026
4 checks passed
@NikolasPilavakis NikolasPilavakis deleted the devp/pin-action-shas branch June 5, 2026 14:56
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.

2 participants