https://blog.pypi.org/posts/2023-04-20-introducing-trusted-publishers/
We already do releases from GitHub CD workflow but this new PyPI feature allows us to remove the long lived secret from GitHub environment secrets: instead the GH action uses a short lived secret it receives from pypi.org using the OIDC identity of our workflow and release environment.
TODO:
https://blog.pypi.org/posts/2023-04-20-introducing-trusted-publishers/
We already do releases from GitHub CD workflow but this new PyPI feature allows us to remove the long lived secret from GitHub environment secrets: instead the GH action uses a short lived secret it receives from pypi.org using the OIDC identity of our workflow and release environment.
TODO:
id-token: writepermission to the publish task in the workflow (release: Use PyPI Trusted Publishing #2371)