Skip to content

Commit 33bcfc1

Browse files
committed
fix(INFRA-3631): add job-level permissions to shadow CI caller
Add job-level permissions to the shadow-ci caller job. With workflow_call the caller's permissions cap the callee — ci.yml jobs declare statuses/issues/pull-requests write, so the caller must grant at least the same or the workflow fails at startup. Write permissions are required for the workflow to start but the shadow should not post duplicate statuses or PR comments. A follow-up will gate those write steps in ci.yml to skip when running under the shadow workflow.
1 parent 0b1fa04 commit 33bcfc1

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/ci-namespace-shadow.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ concurrency:
2020
jobs:
2121
shadow-ci:
2222
name: '[shadow] CI'
23+
permissions:
24+
actions: read
25+
contents: read
26+
id-token: write
27+
issues: write
28+
pull-requests: write
29+
statuses: write
2330
uses: ./.github/workflows/ci.yml
2431
with:
2532
runner_provider: namespace

0 commit comments

Comments
 (0)