secure-python-release-pipeline
Build, verify, and publish a Python package from GitHub Actions securely. Splits sdist and wheel builds so a broken sdist is caught (wheels build FROM the sdist), publishes to PyPI via a Trusted Publisher (OIDC, no API token) in a separate download-and-upload job, uses cibuildwheel for C/C++/Rust/platlib wheels, and hardens the pipeline (minimal permissions, SHA-pinned actions, Dependabot with cooldown + CodeQL grouping, no cache on release, zizmor audit, attestations). Use when asked to set up or review CI/CD, release to PyPI, or add wheels/trusted publishing.
Pinned to revision 0c51c24122b3, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/secure-python-release-pipeline/SKILL.md
- skills/secure-python-release-pipeline/AGENTS.md
- skills/secure-python-release-pipeline/README.md
- skills/secure-python-release-pipeline/reference/hardening.md
- skills/secure-python-release-pipeline/reference/templates.md
Every link opens the file at its source, pinned to the revision this page describes.