fix(ci): grant id-token: write to test-local (unblocks workflow)#999
fix(ci): grant id-token: write to test-local (unblocks workflow)#999elazarlachkar merged 1 commit intomasterfrom
Conversation
|
👋 @GuyEshdat |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Review rate limit: 3/5 reviews remaining, refill in 22 minutes and 13 seconds. Comment |
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
b650da1 to
26d4781
Compare
Summary
Fixes the workflow validation error introduced when #997 (CORE-687) added `id-token: write` to `test-warehouse.yml` for the athena AWS-OIDC step:
```
Invalid workflow file: .github/workflows/test-all-warehouses.yml#L45
The nested job 'test' is requesting 'id-token: write',
but is only allowed 'id-token: none'.
```
`test-warehouse.yml` declares `id-token: write` at the job level. Reusable-workflow permissions are bounded by the calling job, so any caller must grant it. `test-cloud` already does. `test-local` was tightened in #996 to `contents: read` only, which was fine until #997 added the OIDC requirement to the called workflow.
This grants `id-token: write` on `test-local` too. The OIDC step in `test-warehouse.yml` is gated by `if: inputs.warehouse-type == 'athena'`, and athena is not in the local matrix, so no token is ever actually minted from local jobs — the grant just satisfies the static permissions bound check.
Alternatives considered
Test plan
Made with Cursor
Summary by CodeRabbit