Skip to content

ci: pin GitHub Actions to full commit SHAs to prevent supply-chain attacks#464

Open
XananasX7 wants to merge 1 commit into
replicate:mainfrom
XananasX7:ci/pin-actions-to-full-commit-sha
Open

ci: pin GitHub Actions to full commit SHAs to prevent supply-chain attacks#464
XananasX7 wants to merge 1 commit into
replicate:mainfrom
XananasX7:ci/pin-actions-to-full-commit-sha

Conversation

@XananasX7

Copy link
Copy Markdown

Summary

Pins all GitHub Actions in ci.yaml and release.yaml to full immutable commit SHAs instead of mutable version tags.

Vulnerability

Using mutable tags (@v3, @v4, @v5) means the action code can change at any time — a compromised action repository could silently deliver malicious code in CI. The release.yaml workflow is especially sensitive as it publishes to PyPI using secrets.PYPI_API_TOKEN.

Changes

Workflow Action Before After
ci.yaml actions/checkout @v4 @34e1148
ci.yaml astral-sh/setup-uv @v5 @d4b2f3b
release.yaml actions/checkout @v3 @f43a0e5
release.yaml actions/setup-python @v3 @3542bca

All pins point to the exact same version as the current tags — no behaviour change.

References

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