Skip to content

Commit ad240bd

Browse files
authored
add permissions to pypi and test-pypi runners (#181)
1 parent ea9fcd6 commit ad240bd

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/publish-to-pypi.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
# Upload to PyPI on every published release
1414
if: github.event.action == 'published'
1515
runs-on: ubuntu-latest
16+
permissions:
17+
id-token: write
1618

1719
steps:
1820
- uses: actions/checkout@v4

.github/workflows/publish-to-test-pypi.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
environment: release
1515
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
1616
runs-on: ubuntu-latest
17+
permissions:
18+
id-token: write
1719

1820
steps:
1921
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)