From a0bf488ee2a894c3c2f7ccbf0d35e227a38f7de5 Mon Sep 17 00:00:00 2001 From: Nezar Abdennur Date: Mon, 11 Sep 2023 18:49:30 -0400 Subject: [PATCH] ci: Update publish workflow for trusted publishing --- .github/workflows/publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index bae759a0..0ffc9eef 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,6 +7,9 @@ on: jobs: Publish: runs-on: ubuntu-latest + permissions: + id-token: write + steps: - name: Checkout uses: actions/checkout@v4 @@ -26,6 +29,3 @@ jobs: - name: Publish distribution 📦 to PyPI uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: ${{ secrets.PYPI_USERNAME }} - password: ${{ secrets.PYPI_PASSWORD }}