Skip to content

Commit fb0ca55

Browse files
committed
CI: Move to trusted publishing for PyPI uploads
1 parent 4ddefe5 commit fb0ca55

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,13 +199,13 @@ jobs:
199199
runs-on: ubuntu-latest
200200
environment: "Package deployment"
201201
needs: [test, test-package]
202+
permissions:
203+
# Required for trusted publishing
204+
id-token: write
202205
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
203206
steps:
204207
- uses: actions/download-artifact@v3
205208
with:
206209
name: dist
207210
path: dist/
208211
- uses: pypa/gh-action-pypi-publish@release/v1
209-
with:
210-
user: __token__
211-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)