-
Notifications
You must be signed in to change notification settings - Fork 309
Open
Labels
SDKIssue pertains to the SDK itself and not specific to any serviceIssue pertains to the SDK itself and not specific to any service
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.
This is instead of manually uploading via a local invocation of twine.
See the Python packaging documentation, the PyPI documentation, and the official pypi-publish GitHub action documentation on trusted publishing.
Implementation (using GitHub actions) (click to expand)
- Configure a GitHub CI workflow for publishing the package to PyPI, with package build and publish jobs
- Configure (or use an existing) GitHub environment, and register with PyPI
- Add the environment definition to the publish job
- Add
id-token: writeandcontents: readpermissions to the same publish job
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
SDKIssue pertains to the SDK itself and not specific to any serviceIssue pertains to the SDK itself and not specific to any service