Skip to content

Commit b650da1

Browse files
committed
fix(ci): grant id-token: write to test-local job
test-warehouse.yml declares id-token: write at the job level (added in #997 for the athena AWS-OIDC step). Reusable-workflow permissions are bounded by the calling job, so test-local needs the same grant even though no local matrix entry actually triggers the OIDC step. Without this, GitHub rejects the workflow with: Error calling workflow '.../test-warehouse.yml@...'. The nested job 'test' is requesting 'id-token: write', but is only allowed 'id-token: none'. Made-with: Cursor
1 parent ea58f53 commit b650da1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/test-all-warehouses.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ jobs:
4646
if: github.event_name != 'pull_request_target'
4747
permissions:
4848
contents: read
49+
# test-warehouse.yml declares id-token: write at the job level (used only
50+
# by the athena matrix entry's AWS OIDC step). Reusable-workflow
51+
# permissions are bounded by the calling job, so we must grant it here
52+
# too even though no local matrix entry actually mints a token.
53+
id-token: write
4954
strategy:
5055
fail-fast: false
5156
matrix:

0 commit comments

Comments
 (0)