Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 1.06 KB

README.md

File metadata and controls

36 lines (23 loc) · 1.06 KB

pypi-provenance-auth

This tool follows a similar train of thought as auth-tarball-from-git and backseat-signed, it uses pypi sigstore attestations as a replacement for signed git tags.

⚠️ Missing features ⚠️

This is highly experimental proof-of-concept code:

  • The attestation is not cryptographically verified
  • There is no check the envelope and certificate actually belong to the same attestation

If you're good with sigstore and Rust you're very welcome to contribute!

Usage

./pypi-provenance-auth --commit "$(git rev-parse HEAD)" \
    --subject "cryptography-${pkgver}.tar.gz" \
    --attestation-file "./test_data/cryptography-${pkgver}.provenance"

Trivia

This project was started in Stockholm during Hackjunta 2024#2 organized by ln5, after a Debian developer (pabs) requested my take on PEP-740.

License

GPL-3.0-or-later