From decd3aaedb38435c8f7a6c26776397233b823d9d Mon Sep 17 00:00:00 2001 From: dachengx Date: Mon, 22 Apr 2024 14:40:09 -0500 Subject: [PATCH] Add write permission to `id-token` --- .github/workflows/Pypi.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Pypi.yml b/.github/workflows/Pypi.yml index 0633b7a1..204567d5 100644 --- a/.github/workflows/Pypi.yml +++ b/.github/workflows/Pypi.yml @@ -8,18 +8,23 @@ on: jobs: build: runs-on: ubuntu-latest + permissions: + id-token: write steps: # Setup steps - name: Setup python uses: actions/setup-python@v5 with: python-version: '3.9' + - name: Checkout repo uses: actions/checkout@v3 + - name: Install dependencies run: pip install wheel + - name: Build package run: python setup.py sdist bdist_wheel - # Do the publish + - name: Publish a Python distribution to PyPI uses: pypa/gh-action-pypi-publish@release/v1