Skip to content

Commit d58c96b

Browse files
Merge pull request #65 from ArtyomZemlyak/cursor/fix-oidc-token-permissions-for-publishing-2f85
Fix OIDC token permissions for publishing
2 parents 2733d86 + 48e1954 commit d58c96b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
name: Build and publish package to PyPI
1414
runs-on: ubuntu-latest
1515

16+
permissions:
17+
id-token: write
18+
1619
steps:
1720
- name: Checkout repository
1821
uses: actions/checkout@v4
@@ -48,5 +51,4 @@ jobs:
4851
- name: Publish package to PyPI
4952
uses: pypa/gh-action-pypi-publish@release/v1
5053
with:
51-
password: ${{ secrets.PYPI_API_TOKEN }}
5254
verbose: true

0 commit comments

Comments
 (0)