Skip to content

fix(claude-assistant): add id-token: write to reusable workflow permissions - #14

Merged
twistedmelonman merged 1 commit into
mainfrom
claude/fix-idtoken-missing-20260309
Mar 9, 2026
Merged

fix(claude-assistant): add id-token: write to reusable workflow permissions#14
twistedmelonman merged 1 commit into
mainfrom
claude/fix-idtoken-missing-20260309

Conversation

@twistedmelonman

Copy link
Copy Markdown
Member

Problem

After PR #12 removed actions: read (which fixed startup_failure), the action now fails at the OIDC token fetch step:

Could not fetch an OIDC token. Did you remember to add `id-token: write` to your workflow permissions?

Root cause

The reusable workflow's permissions: block overrides the caller's permissions — it doesn't inherit them. id-token: write was only added to the caller (claude.yml) in PR #12, but it must also be present in claude-assistant.yml's job-level permissions: block for claude-code-action to obtain an OIDC token.

id-token: write does not cause startup_failure (unlike actions: read) — it's a standard permission supported in reusable workflows.

Change

Add id-token: write to the permissions: block in claude-assistant.yml.

After merge

Advance v1 tag to HEAD.

🤖 Generated with Claude Code

…ssions

The reusable workflow's permissions block overrides the caller's permissions.
id-token: write must be present in the reusable workflow itself (not just
the caller) for claude-code-action to fetch an OIDC token.

Previously this was omitted while trying to avoid startup_failure from
actions: read. id-token: write does not cause startup_failure — it is a
standard permission supported in reusable workflows.
@twistedmelonman
twistedmelonman merged commit 2437108 into main Mar 9, 2026
4 checks passed
@twistedmelonman
twistedmelonman deleted the claude/fix-idtoken-missing-20260309 branch March 9, 2026 17:03
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