From c636f377d29db8560b18ba5f7cddf6a510e4a899 Mon Sep 17 00:00:00 2001 From: c-bata Date: Wed, 19 Jul 2023 14:14:09 +0900 Subject: [PATCH] Enable OIDC publishing for PyPI --- .github/workflows/pypi-publish.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 454126b2..a01c2d8c 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -9,6 +9,8 @@ jobs: pypi: name: Build and publish Python distributions to PyPI runs-on: ubuntu-latest + permissions: + id-token: write steps: - uses: actions/checkout@v2 @@ -31,6 +33,3 @@ jobs: - name: Publish distribution to PyPI uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.PYPI_PASSWORD }}