-
Notifications
You must be signed in to change notification settings - Fork 887
Open
Description
Trusted publishing (with attestations means I have high confidence that what I download from PyPI is the same artefact which was generated in GitHub CI, meaning that what I see in GitHub is the same as what is installed - handy for auditing.
See the Python packaging documentation, the PyPI documentation, and the official pypi-publish GitHub action documentation on trusted publishing.
Implementation (click to expand)
- Configure (or use an existing) GitHub environment and add to PyPI
- Remove
userandpasswordarguments in the "Publish to PyPI" step of thepypijob of the deploy CI workflow - Add the environment definition to the same
pypijob - Add
id-token: writeandcontents: readpermissions to the samepypijob - Optionally remove the
PYPI_PASSWORDproject secret
Metadata
Metadata
Assignees
Labels
No labels