Skip to content

Commit bf636c6

Browse files
Update publish.yml
Add id-token: write permission for OIDC token retrieval
1 parent e829455 commit bf636c6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
jobs:
66
deploy:
77
runs-on: ubuntu-latest
8+
permissions:
9+
id-token: write
10+
contents: read
811
steps:
912
- uses: actions/checkout@v4
1013

@@ -25,3 +28,5 @@ jobs:
2528
uses: pypa/gh-action-pypi-publish@release/v1
2629
with:
2730
attestations: true
31+
# Remove or comment out the password line if it exists
32+
# password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)