Skip to content

Commit

Permalink
Add permissions for OIDC authentication in PyPI Publish workflow
Browse files Browse the repository at this point in the history
This commit adds the necessary `id-token` permissions with a value of
`write` to the PyPI Publish workflow. This permission is required
for OpenID Connect (OIDC) authentication when publishing packages to
PyPI. The absence of this permission was causing the workflow to fail.
  • Loading branch information
mdbecker committed Jun 26, 2023
1 parent 70955fc commit 7c8f16d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
needs: run-test
runs-on: ubuntu-latest
environment: release # Make sure this matches the environment name you set on PyPI

permissions:
id-token: write

steps:
- name: Check out repository
Expand Down

0 comments on commit 7c8f16d

Please sign in to comment.