From d71a6f54e3f9cb0ae802472599f7ca77b978fd87 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 7 Jul 2026 01:49:13 +0000 Subject: [PATCH] ci: allow git-CLI write commands for ssh_signing_key commit path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Setting ssh_signing_key switches the action's commit mechanism from the GitHub API (mcp__github_file_ops__commit_files) to the local git CLI, but the implement + fix allowlists only carried read-only git verbs (status/diff/log/show). The agent's commit and branch/push commands were denied, so run #10 on the dummy issue finished with no PR and no commit. Add the git-CLI write verbs the local-git commit path needs — checkout/switch/branch/add/commit/push/config — to both the implement and fix job allowlists. This is the same authority the agent already had via the file-ops MCP (commit + push to its own claude/* branch); only the mechanism changed. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01NVR5yWevceZEFbTJmpviiM --- .github/workflows/claude-implement.yml | 2 +- .github/workflows/claude-pr-loop.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/claude-implement.yml b/.github/workflows/claude-implement.yml index e1a9df7f4..35542b4b5 100644 --- a/.github/workflows/claude-implement.yml +++ b/.github/workflows/claude-implement.yml @@ -106,7 +106,7 @@ jobs: claude_args: | --max-turns 150 --model claude-sonnet-5 - --allowedTools "Bash(pnpm install:*),Bash(pnpm run:*),Bash(pnpm test:*),Bash(pnpm exec:*),Bash(pnpm --filter:*),Bash(pnpm ls:*),Bash(pnpm why:*),Bash(node:*),Bash(git status:*),Bash(git diff:*),Bash(git log:*),Bash(git show:*),Bash(mkdir:*),Bash(gh issue view:*),Bash(gh issue comment:*),Bash(gh pr create:*),Bash(gh pr view:*),Bash(gh pr edit:*),Bash(gh pr diff:*),Bash(gh pr checks:*)" + --allowedTools "Bash(pnpm install:*),Bash(pnpm run:*),Bash(pnpm test:*),Bash(pnpm exec:*),Bash(pnpm --filter:*),Bash(pnpm ls:*),Bash(pnpm why:*),Bash(node:*),Bash(git status:*),Bash(git diff:*),Bash(git log:*),Bash(git show:*),Bash(git checkout:*),Bash(git switch:*),Bash(git branch:*),Bash(git add:*),Bash(git commit:*),Bash(git push:*),Bash(git config:*),Bash(mkdir:*),Bash(gh issue view:*),Bash(gh issue comment:*),Bash(gh pr create:*),Bash(gh pr view:*),Bash(gh pr edit:*),Bash(gh pr diff:*),Bash(gh pr checks:*)" prompt: | REPO: ${{ github.repository }} ISSUE NUMBER: ${{ github.event.issue.number }} diff --git a/.github/workflows/claude-pr-loop.yml b/.github/workflows/claude-pr-loop.yml index 96cee341b..6f32570fd 100644 --- a/.github/workflows/claude-pr-loop.yml +++ b/.github/workflows/claude-pr-loop.yml @@ -342,7 +342,7 @@ jobs: claude_args: | --max-turns 80 --model claude-sonnet-5 - --allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(pnpm install:*),Bash(pnpm run:*),Bash(pnpm test:*),Bash(pnpm exec:*),Bash(pnpm --filter:*),Bash(node:*),Bash(git status:*),Bash(git diff:*),Bash(git log:*),Bash(git show:*),Bash(gh pr view:*),Bash(gh pr diff:*),Bash(gh pr checks:*),Bash(gh pr comment:*),Bash(gh api:*)" + --allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(pnpm install:*),Bash(pnpm run:*),Bash(pnpm test:*),Bash(pnpm exec:*),Bash(pnpm --filter:*),Bash(node:*),Bash(git status:*),Bash(git diff:*),Bash(git log:*),Bash(git show:*),Bash(git checkout:*),Bash(git switch:*),Bash(git branch:*),Bash(git add:*),Bash(git commit:*),Bash(git push:*),Bash(git config:*),Bash(gh pr view:*),Bash(gh pr diff:*),Bash(gh pr checks:*),Bash(gh pr comment:*),Bash(gh api:*)" prompt: | REPO: ${{ github.repository }} PR NUMBER: ${{ needs.gate.outputs.pr }}