From 3e33d8ef0c42e4414a8095d0932a984c601428a0 Mon Sep 17 00:00:00 2001 From: Nikolai Emil Damm Date: Wed, 25 Nov 2026 08:20:59 +0100 Subject: [PATCH] ci(template-sync): grant id-token: write for the GitHub token broker Phase 1 of moving template sync to the GitHub token broker (devantler-tech/monorepo ADR 0020, devantler-tech/.github#1001). A reusable workflow's job that asks for more than its caller grants fails at startup. So every caller must grant id-token: write before the shared template-sync workflow asks for it, to prove its identity to the broker instead of minting from the App key. Granting it is harmless until then. Instances receive the change through their next template sync. The App configuration check stays until the shared workflow no longer needs the App key. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/template-sync.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/template-sync.yaml b/.github/workflows/template-sync.yaml index bea9857..4e5344d 100644 --- a/.github/workflows/template-sync.yaml +++ b/.github/workflows/template-sync.yaml @@ -46,9 +46,15 @@ jobs: # more than the caller, and the top-level `permissions: {}` grants none, so # without this the run fails at startup (reusable-workflow permission check) # — both here and in every instance where the job actually runs. + # id-token: write lets the shared workflow prove its identity to the GitHub + # token broker (devantler-tech/monorepo ADR 0020) instead of minting from the + # App key. Granting it is harmless until the workflow asks for it, and it must + # be here first: a reusable job that asks for more than its caller grants + # fails at startup. permissions: contents: write pull-requests: write + id-token: write uses: devantler-tech/.github/.github/workflows/template-sync.yaml@cc156a3693019fdbe9817c46f1a91cd50a124695 # v21.7.3 with: source-repo-path: devantler-tech/platform-template