Skip to content

Commit c51d4cc

Browse files
committed
CI: enable Trusted publishing
enable a bit more secure way to publish into pypi without the need of a token key Ref: https://docs.pypi.org/trusted-publishers/
1 parent 32d9a3c commit c51d4cc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build-push.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,9 @@ jobs:
186186
upload_pypi:
187187
needs: [build_wheels, build_wheels_extra_arch, build_sdist]
188188
runs-on: ubuntu-latest
189+
permissions:
190+
id-token: write
191+
189192
# upload to PyPI on every tag starting with 'v'
190193
if: github.event_name == 'push' && endsWith(github.event.ref, 'scylla')
191194
# alternatively, to publish when a GitHub Release is created, use the following rule:
@@ -199,4 +202,3 @@ jobs:
199202
- uses: pypa/gh-action-pypi-publish@release/v1
200203
with:
201204
skip-existing: true
202-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)