Set up release workflow with PyPI Trusted Publishers #2150
Labels
infrastructure
For issues related to building, packaging, and continuous integration.
priority/high
Needs to be fixed ASAP & no later than the next milestone.
Milestone
Background
In April 2023 PyPI released a new publishing method using the OpenID Connect standard [GitHub docs]. This standard is described as
More details can be found in the PyPI docs here, but because we set and store long-term passwords for use in our github actions, this is a welcome addition.
Fix
The changes required are laid out in the PyPI docs. One of the suggested changes (for increased security) is to create an environment in which the release originates. This allows for further restrictions and rules to be applied as to when the release happens. GitHub docs here.
We will also need to change code in two places to use the
pypa/gh-action-pypi-publish
action:.github/workflows/publish-pypi.yml
.github/workflows/publish-testpypi.yml
This may potentially alter our release docs as well. If so, they should be updated accordingly.
The text was updated successfully, but these errors were encountered: