Skip to content

Commit f346e35

Browse files
committed
ci: configure OIDC permissions for PyPI publishing and remove password-based authentication
1 parent fa773c4 commit f346e35

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎.github/workflows/publish.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
jobs:
1313
build-and-publish:
1414
runs-on: ubuntu-latest
15+
permissions:
16+
id-token: write
17+
contents: read
1518
steps:
1619
- uses: actions/checkout@v4
1720

@@ -30,5 +33,3 @@ jobs:
3033

3134
- name: Publish to PyPI
3235
uses: pypa/gh-action-pypi-publish@release/v1
33-
with:
34-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)