diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ab2166e..d4f08d5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,6 +8,11 @@ on: jobs: publish: runs-on: ubuntu-latest + # PyPI's trusted publisher for this project names this environment, and the + # claim GitHub sends has to match it. It is also the gate: publishing can be + # restricted here, to people who should release, rather than being available to + # anyone who can push a tag. + environment: pypi permissions: id-token: write # required for trusted publishing