Skip to content

ci(template-sync): grant id-token: write for the GitHub token broker - #524

Merged
devantler merged 1 commit into
mainfrom
claude/template-sync-id-token
Nov 25, 2026
Merged

devantler merged 1 commit into
mainfrom
claude/template-sync-id-token

Conversation

@devantler

Copy link
Copy Markdown
Contributor

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.yaml will 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

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 devantler left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 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

@devantler
devantler marked this pull request as ready for review November 25, 2026 07:30
@devantler
devantler requested a review from a team as a code owner November 25, 2026 07:30
@devantler
devantler merged commit 38f7ab7 into main Nov 25, 2026
19 checks passed
@devantler
devantler deleted the claude/template-sync-id-token branch November 25, 2026 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant