Skip to content

Commit

Permalink
Specify OIDC permissions and GitHub environment. (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
kklein authored Jul 8, 2024
1 parent d750226 commit f8c0db7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ jobs:
name: Upload to PyPI
needs: [build]
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
environment: pypi
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v4
Expand Down

0 comments on commit f8c0db7

Please sign in to comment.