From d111da5236249ccb891b1ca022ab5c96e2a89721 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Fri, 8 Nov 2024 15:26:24 +0100 Subject: [PATCH] Update CI/CD workflow to interface with PyPI as Trusted Publisher --- .github/workflows/ci_cd.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index c640ce3..1f7cf65 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -165,6 +165,8 @@ jobs: name: Publish to PyPI needs: test runs-on: ubuntu-latest + permissions: + id-token: write steps: @@ -184,6 +186,4 @@ jobs: (github.event_name == 'release' && github.event.action == 'published')) uses: pypa/gh-action-pypi-publish@release/v1 with: - user: __token__ - password: ${{ secrets.PYPI_TOKEN }} skip_existing: true