Skip to content

Commit

Permalink
add permissions to pypi and test-pypi runners (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
RHammond2 authored Sep 13, 2024
1 parent ea9fcd6 commit ad240bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
# Upload to PyPI on every published release
if: github.event.action == 'published'
runs-on: ubuntu-latest
permissions:
id-token: write

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
environment: release
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
permissions:
id-token: write

steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit ad240bd

Please sign in to comment.