ci: add claude-fix workflow (PMC-119) #40

Closed
David wants to merge 0 commits from chore/claude-fix-workflow into main
Owner

Adds the claude-fix workflow vendored from a8n-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, runs claude --bare in 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-in GITHUB_TOKEN does not).

Closes #PMC-119.

Adds the `claude-fix` workflow vendored from `a8n-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, runs `claude --bare` in 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-in `GITHUB_TOKEN` does not). Closes #PMC-119.
ci: add claude-fix workflow
Some checks failed
Check / clippy + fmt + tests (pull_request) Failing after 9s
Create release / Create release from merged PR (pull_request) Has been skipped
f19c6125ac
Vendored copy of .forgejo/workflows/claude-fix.yml from the claude-fix-sandbox repo. Provides a manually-dispatched Forgejo workflow that runs Claude Code against a failing PR: checks out the PR branch, builds failure context, runs claude in --bare/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 guards against runaway loops.

The workflow has no repo-specific hardcoded values (it derives repo and host from github.repository / github.server_url), so it is copied unchanged. To enable it, ANTHROPIC_API_KEY and CLAUDE_BOT_PAT must be configured under Settings > Actions > Secrets.

#PMC-119 State Done

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
vas2000-work closed this pull request 2026-05-21 01:21:59 +02:00
Some checks failed
Check / clippy + fmt + tests (pull_request) Failing after 9s
Required
Details
Create release / Create release from merged PR (pull_request) Has been skipped

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/mokosh-apps!40
No description provided.