mirror of https://github.com/ansible/ansible.git
🔏📦 Sign distribution packages on release
This patch integrates an invocation of the `pypi-attestations` tool[[1]] into the release automation before calling Twine. When used locally and not within a known Trusted Publishing setup, it will invoke an OAuth flow, opening a browser window, prompting the caller to authenticate via GitHub. Once authorized and browser window closed, it will proceed to signing the distribution packages[[2]] locally using Sigstore. The resulting signatures are produced in the format outlined in PEP 740 [[3]]. Twine is then called with `--attestations` which is what will actually attach the digital signatures to the release on PyPI. [1]: https://docs.pypi.org/attestations/producing-attestations/#using-pypi-attestations [2]: https://packaging.python.org/en/latest/glossary/#term-Distribution-Package [3]: https://peps.python.org/pep-0740/pull/84350/head
parent
95e3af3e0f
commit
87662b82de
Loading…
Reference in New Issue