Skip to content

CI: fix id-token permission for Test wheels building #1636

CI: fix id-token permission for Test wheels building

CI: fix id-token permission for Test wheels building #1636

Workflow file for this run

name: Build and upload to PyPi
on:
push:
branches:
- master
- 'branch-**'
workflow_dispatch:
jobs:
build-and-publish:

Check failure on line 11 in .github/workflows/build-push.yml

View workflow run for this annotation

GitHub Actions / Build and upload to PyPi

Invalid workflow file

The workflow is not valid. .github/workflows/build-push.yml (Line: 11, Col: 3): Error calling workflow 'scylladb/python-driver/.github/workflows/lib-build-and-push.yml@ee0bc66078322bd5d4e856a8868ba208cef6b752'. The nested job 'upload_pypi' is requesting 'id-token: write', but is only allowed 'id-token: none'.
name: "Build wheels"
uses: ./.github/workflows/lib-build-and-push.yml
with:
upload: false
# TODO: Remove when https://github.com/pypa/gh-action-pypi-publish/issues/166 is fixed and update build-and-publish.with.upload to ${{ endsWith(github.event.ref, 'scylla') }}
publish:
name: "Publish wheels to PyPi"
if: ${{ endsWith(github.event.ref, 'scylla') }}
needs: build-and-publish
runs-on: ubuntu-24.04
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v8
with:
path: dist
merge-multiple: true
- uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true