Skip to content

fix(sync): grant id-token:write — claude-code-action mints its App token via OIDC (backend#1494) - #85

Merged
LukasWodka merged 1 commit into
developfrom
fix/sync-docs-id-token
Aug 5, 2026
Merged

fix(sync): grant id-token:write — claude-code-action mints its App token via OIDC (backend#1494)#85
LukasWodka merged 1 commit into
developfrom
fix/sync-docs-id-token

Conversation

@LukasWodka

@LukasWodkaLukasWodka commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Layer three of sync-docs' 84-day rot, each one real and differently named: (1) SOURCE_REPOS_TOKEN unprovisioned → fixed by Lukas today; (2) stale ref: master for the two renamed repos → #84; (3) this — anthropics/claude-code-action v1.0.x exchanges an OIDC token for a GitHub App token even when anthropic_api_key is supplied, and the job's permissions block predates that requirement: Unable to get ACTIONS_ID_TOKEN_REQUEST_URL.

One line: id-token: write added to permissions (the Claude App is installed org-wide, so the exchange path is live). Fetch step already fully green post-#84 — all 5 sources.

🤖 Generated with Claude Code


Note

Low Risk
Single workflow permission addition with no application or data-path changes; aligns permissions with an existing third-party action requirement.

Overview
Adds id-token: write to the workflow-level permissions block in sync-docs so anthropics/claude-code-action v1.0.x can request an OIDC token and exchange it for a GitHub App token. That OIDC path runs even when anthropic_api_key is set; without this permission the job fails with Unable to get ACTIONS_ID_TOKEN_REQUEST_URL.

An inline comment documents the failure mode and ties it to backend#1494.

Reviewed by Cursor Bugbot for commit 6b0d6a4. Bugbot is set up for automated code reviews on this repo. Configure here.

…ken via OIDC (backend#1494)
Third distinct rot layer excavated since the token landed: v1.0.x of
the action exchanges an OIDC token for a GitHub App token even with
anthropic_api_key set, and this workflow predates that requirement.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@LukasWodka
LukasWodka merged commit e518f4a into developAug 5, 2026
12 checks passed
@LukasWodka
LukasWodka deleted the fix/sync-docs-id-token branch August 14, 2026 13:54
Sign up for freeto 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.

2 participants

@LukasWodka@divyasinghds