From f005f455c5f3296156be7b0a3ca5be52f0114a6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ricks?= Date: Thu, 25 Jan 2024 14:33:24 +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..137ab9ed 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/gvm-tools/ + steps: + - name: Build and publish to PyPI + uses: greenbone/actions/pypi-upload@v3