From 30a89cb26dac1a072c2269ed0cd559a8591fb37a Mon Sep 17 00:00:00 2001 From: Nikhil Dhandre Date: Fri, 12 Apr 2024 18:18:09 +0530 Subject: [PATCH] Fix permissions for release --- .github/workflows/deploy.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e7ba296..8322b0e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -14,6 +14,11 @@ jobs: name: Build and publish Python 🐍 distributions to PyPI if: startsWith(github.event.ref, 'refs/tags') runs-on: ubuntu-latest + environment: + name: pypi + url: https://pypi.org/p/widgetastic.core + permissions: + id-token: write # This permission is mandatory for trusted publishing steps: - name: Checkout uses: actions/checkout@v4