From ba95661f96ca7797dab6888f4d7d1e32b9b2439e Mon Sep 17 00:00:00 2001 From: Dominic Kempf Date: Fri, 8 Mar 2024 16:52:24 +0100 Subject: [PATCH] Allow PyPI trusted publishing --- .github/workflows/pypi.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 46a1b57..b3ee553 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -10,6 +10,8 @@ jobs: pypi-deploy: name: Deploying Python Package runs-on: ubuntu-latest + permissions: + id-token: write steps: - uses: actions/checkout@v4 @@ -24,6 +26,3 @@ jobs: run: pipx run build --sdist - uses: pypa/gh-action-pypi-publish@v1.8.14 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }}