From 69d39c8774409b3c5ab58cb96d95abbb7d9dd1b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ricks?= Date: Thu, 25 Jan 2024 14:48:45 +0100 Subject: [PATCH] Change: Use trusted publisher upload for PyPI --- .github/workflows/deploy-pypi.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-pypi.yml b/.github/workflows/deploy-pypi.yml index b31d0b70..070fe1fe 100644 --- a/.github/workflows/deploy-pypi.yml +++ b/.github/workflows/deploy-pypi.yml @@ -6,5 +6,12 @@ on: jobs: deploy: - uses: greenbone/workflows/.github/workflows/deploy-pypi.yml@main - secrets: inherit + permissions: + id-token: write + runs-on: ubuntu-latest + environment: + name: pypi + url: https://pypi.org/project/pheme/ + steps: + - name: Build and publish to PyPI + uses: greenbone/actions/pypi-upload@v3