Repository navigation
ci(template-sync): grant id-token: write for the GitHub token broker - #524
Merged
Merged
Conversation
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>
devantler
commented
Nov 25, 2026
devantler
left a comment
Contributor
Author
There was a problem hiding this comment.
🤖 Generated by the Agentic Engineer (interactive Claude Code session)
Self-review (fallback — CodeRabbit, Codex and Cursor Bugbot unavailable)
Reviewed commit: 3e33d8e
- CodeRabbit: rate limited at 2026-11-25T07:30Z ("0 remain after this review", CodeRabbit summary on application-template#321)
- Codex: usage limit since 2026-11-25T05:24Z ("You have reached your Codex usage limits for code reviews")
- Cursor Bugbot: failed to run three times between 06:00Z and 06:24Z on 2026-11-25 (devantler-tech/.github #1005, #1006 and #1007)
Verdict: no P0/P1 findings
🤖 Generated with Claude Code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Phase 1 of moving template sync to the GitHub token broker (ADR 0020, devantler-tech/.github#1001). The template-sync caller job now grants
id-token: write.Why
The shared
template-sync.yamlwill prove its identity to the broker with the job's OIDC token, instead of minting from the organization App key. But a reusable workflow's job that asks for a permission its caller does not grant fails at startup. So every caller must grant it first, and the shared workflow switches only afterwards. Granting it is harmless until then.This caller file is template-owned, so instances receive it through their next template sync. The App configuration check stays until the shared workflow no longer needs the App key.
Tests
actionlint and zizmor report no findings.
Part of devantler-tech/.github#1001
🤖 Generated with Claude Code