Skip to content

Commit 209f872

Browse files
author
Lukas Pühringer
authored
Merge pull request #2371 from jku/trusted-publisher
release: Use PyPI Trusted Publishing
2 parents 9415647 + 53c2806 commit 209f872

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

.github/workflows/cd.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ jobs:
9292
environment: release
9393
permissions:
9494
contents: write # to modify GitHub releases
95+
id-token: write # to authenticate as Trusted Publisher to pypi.org
9596
steps:
9697
- name: Fetch build artifacts
9798
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
@@ -103,9 +104,6 @@ jobs:
103104
# Only attempt pypi upload in upstream repository
104105
if: github.repository == 'theupdateframework/python-tuf'
105106
uses: pypa/gh-action-pypi-publish@0bf742be3ebe032c25dd15117957dc15d0cfc38d
106-
with:
107-
user: __token__
108-
password: ${{ secrets.PYPI_API_TOKEN }}
109107

110108
- name: Finalize GitHub release
111109
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410

0 commit comments

Comments
 (0)