Skip to content

Commit 48e1954

Browse files
cursoragentartyom.zemlyak
andcommitted
Add permissions and use OIDC for PyPI publishing
Co-authored-by: artyom.zemlyak <artyom.zemlyak@gmail.com>
1 parent 2733d86 commit 48e1954

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)