Skip to content

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

Open
Dong Ma (larainema) wants to merge 6 commits into
mainfrom
chore/pin-github-actions-to-sha
Open

chore: pin third-party GitHub Actions to commit SHAs#3742
Dong Ma (larainema) wants to merge 6 commits into
mainfrom
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

Signed-off-by: Dong Ma <dong.ma@vexxhost.com>
Signed-off-by: Dong Ma <dong.ma@vexxhost.com>
Signed-off-by: Dong Ma <dong.ma@vexxhost.com>
Signed-off-by: Dong Ma <dong.ma@vexxhost.com>
Signed-off-by: Dong Ma <dong.ma@vexxhost.com>
Signed-off-by: Dong Ma <dong.ma@vexxhost.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant