Skip to content

Commit 9d8cd22

Browse files
committed
fix: add environment 'pypi' to Publish_Package job for trusted publishing
PyPI trusted publisher OIDC token exchange failed because the workflow job did not declare a GitHub environment. PyPI's trusted publisher config requires environment claim to match. Added environment: pypi to the Publish_Package job in Release.yml.
1 parent 5957ef0 commit 9d8cd22

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/Release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ jobs:
173173
Publish_Package:
174174
needs: [Build_Python_Wheels]
175175
runs-on: ubuntu-latest
176+
environment: pypi
176177
timeout-minutes: 15
177178
permissions:
178179
contents: write

0 commit comments

Comments
 (0)