Securing Python projects from supply-chain attacks
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
Astral, the maker of uv, published a hardening checklist for Python projects on GitHub against compromised maintainer accounts or hijacked hosting. It recommends hash-pinning dependencies, GitHub Actions (by Git SHA) and downloaded binaries, using PyPI Trusted Publishing, requiring approval for release workflows, running the zizmor linter, setting dependency cooldowns, locking CI tools and scripts, and disabling source builds. Some claims, such as the 14-day window for adding files to PyPI releases and protection against the eMudhra CA compromise, could not be verified.