Skip to content

Commit ee0bc66

Browse files
nikagradkropachev
authored andcommitted
CI: fix id-token permission for Test wheels building
build-test.yml triggers on pull_request, which gives it id-token:none by default. lib-build-and-push.yml's upload_pypi job declares id-token:write, which exceeds the caller's cap and causes GitHub to reject the workflow at parse time — even though upload:false prevents upload_pypi from ever running. Fix: explicitly grant id-token:write to the test-wheels-build job so the permission cap satisfies the reusable workflow's requirement. Fixes #819
1 parent 293e4a1 commit ee0bc66

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/build-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,7 @@ jobs:
1919
name: "Test wheels building"
2020
if: "!contains(github.event.pull_request.labels.*.name, 'disable-test-build')"
2121
uses: ./.github/workflows/lib-build-and-push.yml
22+
permissions:
23+
id-token: write
2224
with:
2325
upload: false

0 commit comments

Comments
 (0)