From 8df45b85dd982a25761e343cf10fe44d6d5ac8e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ricks?= Date: Thu, 25 Jan 2024 15:45:40 +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 b31d0b7..623ce5f 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/autohooks-plugin-pytest/ + steps: + - name: Build and publish to PyPI + uses: greenbone/actions/pypi-upload@v3