atxtechbro / atxtechbro/dotfiles
fix(github-actions): resolve Claude PR review workflow configuration errors
- Dominant language
- Shell
- Stars
- 27
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
## Problem
After fixing the OAuth token authentication (Claude Pro → Claude API workaround working), the Claude PR review workflow now runs but fails due to configuration errors. The authentication breakthrough revealed underlying workflow configuration issues.
## Specific Errors
**Workflow Run**: [#39 - 2025-07-17T00:34:21Z](https://github.com/atxtechbro/dotfiles/actions/runs/16333306927)
### Error 1: Missing OIDC Permission
```
Failed to setup GitHub token: Error: Could not fetch an OIDC token.
Did you remember to add `id-token: write` to your workflow permissions?
```
### Error 2: Invalid Input Parameter
```
Unexpected input(s) 'prompt_file', valid inputs are ['trigger_phrase', 'assignee_trigger', 'label_trigger', 'base_branch', 'branch_prefix', 'model', 'anthropic_model', 'fallback_model', 'allowed_tools', 'disallowed_tools', 'custom_instructions', 'direct_prompt', 'mcp_config', 'additional_permissions', 'claude_env', 'settings', 'anthropic_api_key', 'claude_code_oauth_token', 'github_token', 'use_bedrock', 'use_vertex', 'max_turns', 'timeout_minutes', 'use_sticky_comment', 'use_commit_signing']
```
## Required Fixes
### 1. Add Missing Permission
Update `.github/workflows/claude-pr-review.yml` permissions block:
```yaml
permissions:
contents: read
issues: write
pull-requests: write
id-token: write # Add this line
```
### 2. Remove Invalid Parameter
Remove `prompt_file` parameter from the `anthropics/claude-code-action@beta` step configuration.
## Context
- ✅ **OAuth authentication now working** (Claude Pro → API workaround successful)
- ✅ **Workflow triggers properly** on @claude mentions
- ✅ **Eyeball emoji acknowledgment works**
- ✅ **Checkout step works**
- ❌ **Configuration errors prevent Claude action execution**
## Test Plan
After fixes:
1. Comment `@claude test workflow configuration fixes` on any issue
2. Verify workflow completes successfully without OIDC or input errors
3. Confirm Claude action executes and creates branch/PR as intended
## Success Criteria
- [ ] Workflow runs without OIDC token errors
- [ ] No "unexpected input" validation errors
- [ ] Claude action successfully processes @claude requests
- [ ] End-to-end issue-to-PR automation working
Closes: This issue tracks the final configuration fixes needed to complete the Claude PR review automation.
Contributor guide
No contributing guide indexed for this repository
Research direction
Open .github/workflows/claude-pr-review.yml and inspect its permissions block and the anthropics/claude-code-action@beta step. Start by comparing those settings with the listed workflow errors, then comment `@claude test workflow configuration fixes` on an issue. Done means the run has no OIDC or unexpected-input errors and the Claude action processes the request.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, shell, yaml
- Domain
- ci-cd, devops
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 38/100