fix(claude-assistant): add id-token: write to reusable workflow permissions - #14
Merged
Merged
Conversation
…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.
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.
Problem
After PR #12 removed
actions: read(which fixedstartup_failure), the action now fails at the OIDC token fetch step:Root cause
The reusable workflow's
permissions:block overrides the caller's permissions — it doesn't inherit them.id-token: writewas only added to the caller (claude.yml) in PR #12, but it must also be present inclaude-assistant.yml's job-levelpermissions:block forclaude-code-actionto obtain an OIDC token.id-token: writedoes not causestartup_failure(unlikeactions: read) — it's a standard permission supported in reusable workflows.Change
Add
id-token: writeto thepermissions:block inclaude-assistant.yml.After merge
Advance
v1tag to HEAD.🤖 Generated with Claude Code