Skip to content

chore: pin third-party GitHub Actions to commit SHAs#7

Open
Dong Ma (larainema) wants to merge 1 commit into
vexxhost:mainfrom
larainema:chore/pin-github-actions-to-sha
Open

chore: pin third-party GitHub Actions to commit SHAs#7
Dong Ma (larainema) wants to merge 1 commit into
vexxhost:mainfrom
larainema:chore/pin-github-actions-to-sha

Conversation

@larainema
Copy link
Copy Markdown
Member

Summary

Pin all third-party GitHub Actions to full commit SHAs instead of mutable version tags.

This prevents supply chain attacks where a compromised tag could silently inject malicious code into CI/CD pipelines (similar to the tj-actions/changed-files incident).

Changes

  • Replace tag-based references (e.g., @v4) with full 40-character commit SHA pins
  • Add version comments (e.g., # v4) for human readability

Why

  • Immutability: Git tags can be force-pushed, but commit SHAs cannot be changed
  • Supply chain security: Prevents tag hijacking attacks
  • Auditability: Each pinned version is traceable to an exact commit

Pin all third-party GitHub Actions to full commit SHAs to prevent
supply chain attacks via tag hijacking. Version comments are added
for human readability.

Signed-off-by: Dong Ma <dong.ma@vexxhost.com>
@larainema Dong Ma (larainema) force-pushed the chore/pin-github-actions-to-sha branch from 7b81040 to b52d088 Compare March 11, 2026 16:41
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.

1 participant