Skip to content

Commit 4d83d04

Browse files
authored
Migrate from PyPI tokens to Trusted Publishers (#304)
1 parent 2fccba0 commit 4d83d04

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ name: Publish
1010

1111
jobs:
1212
publish:
13+
environment: pypi
14+
permissions:
15+
contents: read
16+
id-token: write
1317
runs-on: ubuntu-latest
1418

1519
steps:
@@ -30,5 +34,3 @@ jobs:
3034
- name: Publish
3135
if: startsWith(github.ref, 'refs/tags')
3236
uses: pypa/gh-action-pypi-publish@release/v1
33-
with:
34-
password: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)