ci: add claude-fix workflow (PMC-119) #40
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/claude-fix-workflow"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds the
claude-fixworkflow vendored froma8n-run/claude-fix-sandbox. It is a manually-dispatched Forgejo workflow (Actions UI -> Run workflow) that runs Claude Code against a failing PR: checks out the PR branch, builds failure context, runsclaude --barein headless mode with a restricted allowedTools list, then commits and pushes any changes using a bot PAT so CI re-runs. A[skip claude]commit tag prevents runaway loops.The workflow has no repo-specific hardcoded values (it derives repo and host from
github.repository/github.server_url), so the file is copied unchanged.Required before first dispatch
The following secrets must be configured under Settings > Actions > Secrets:
ANTHROPIC_API_KEY: from console.anthropic.com (NOT an OAuth subscription token).CLAUDE_BOT_PAT: a PAT for a bot user account with repo write scope. Required so pushes re-trigger CI (the built-inGITHUB_TOKENdoes not).Closes #PMC-119.
Pull request closed