Skip to content

Commit b4f7fa9

Browse files
committed
Add write permission for pypi publishing
1 parent 57c1c24 commit b4f7fa9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727

2828
test-pypi:
2929
runs-on: ubuntu-latest
30+
permissions:
31+
id-token: write
3032
needs: build
3133
if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, '-') # Only for pre-releases
3234

@@ -47,6 +49,8 @@ jobs:
4749

4850
pypi:
4951
runs-on: ubuntu-latest
52+
permissions:
53+
id-token: write
5054
needs: build
5155
if: startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, '-') # Only for stable releases
5256

0 commit comments

Comments
 (0)