Skip to content

Commit

Permalink
Add id-token permission to pypi CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
johnveitch committed Jul 23, 2024
1 parent 7e40182 commit 78166df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ jobs:
# upload to PyPI on every tag starting with 'v'
# if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
# alternatively, to publish when a GitHub Release is created, use the following rule:
permissions:
id-token: write
contents: read
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- name: Download artifacts
Expand Down

0 comments on commit 78166df

Please sign in to comment.