Skip to content

Commit 38f7ab7

Browse files
devantlerclaude
andauthored
ci(template-sync): grant id-token: write for the GitHub token broker (#524)
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 <noreply@anthropic.com>
1 parent 1f68461 commit 38f7ab7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎.github/workflows/template-sync.yaml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,15 @@ jobs:
4646
# more than the caller, and the top-level `permissions: {}` grants none, so
4747
# without this the run fails at startup (reusable-workflow permission check)
4848
# — both here and in every instance where the job actually runs.
49+
# id-token: write lets the shared workflow prove its identity to the GitHub
50+
# token broker (devantler-tech/monorepo ADR 0020) instead of minting from the
51+
# App key. Granting it is harmless until the workflow asks for it, and it must
52+
# be here first: a reusable job that asks for more than its caller grants
53+
# fails at startup.
4954
permissions:
5055
contents: write
5156
pull-requests: write
57+
id-token: write
5258
uses: devantler-tech/.github/.github/workflows/template-sync.yaml@cc156a3693019fdbe9817c46f1a91cd50a124695 # v21.7.3
5359
with:
5460
source-repo-path: devantler-tech/platform-template

0 commit comments

Comments
 (0)