Skip to content

fix: skip permissions on day-shift review agent too#1054

Merged
lroolle merged 1 commit into
mainfrom
fix/skip-perms-review
Jul 15, 2026
Merged

fix: skip permissions on day-shift review agent too#1054
lroolle merged 1 commit into
mainfrom
fix/skip-perms-review

Conversation

@lroolle

@lroolle lroolle commented Jul 15, 2026

Copy link
Copy Markdown
Member

Sixth and final instance of the ignored-allowlist bug. Day-shift review ran green on #1053 but left it open — gh pr merge was denied. Same fix as #1052.

🤖 Generated with Claude Code

Same root cause as the fetch workflow: the action's headless mode ignores
the settings.json allowlist, so the review agent's 'gh pr merge' was denied
and PRs never auto-merged (run went green anyway - denials don't fail the
step). The review agent's job is exactly merge/comment/label on this repo's
PRs; skip-permissions lets it do that, bounded by the workflow token scope.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 15, 2026 19:10
@lroolle
lroolle merged commit 1770ef0 into main Jul 15, 2026
@lroolle
lroolle deleted the fix/skip-perms-review branch July 15, 2026 19:10

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cd86b4dbad

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

allowed_bots: "claude-yolo[bot],github-actions[bot]"
claude_args: |
--model claude-sonnet-4-6
--dangerously-skip-permissions

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep the review agent out of full bypass mode

When this workflow reviews a same-repo PR such as the night-shift docs PRs, the PR diff/content is model input while GITHUB_TOKEN is a repo-write App token and this new flag removes all Claude Code tool gates. I checked this workflow's pull_request trigger and write permissions, and the CLI docs at content/en/docs/claude-code/cli-reference.md:73 say --dangerously-skip-permissions is equivalent to bypassPermissions; that means a prompt-injected docs change can now run arbitrary Bash (for example to read/exfiltrate the token or push/merge outside the intended gh pr merge flow), whereas the previous intended boundary was the allowlist. Please move merge/comment side effects to deterministic steps or restrict Claude to the specific gh commands instead of full bypass.

Useful? React with 👍 / 👎.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Claude Code Review GitHub Action workflow to bypass Claude Code permission checks in headless mode, addressing a recurring “ignored allowlist” failure that prevented the review agent from merging PRs.

Changes:

  • Adds --dangerously-skip-permissions to the review agent invocation.
  • Replaces prior pinning rationale with updated documentation explaining why permissions are skipped in headless mode.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +72 to +75
# gh pr merge, Write, mkdir were all denied despite matching rules. The
# review agent's whole job is to merge/comment/label on THIS repo's PRs,
# so it runs with permissions skipped. Scope is bounded by the workflow
# token's repo permissions, not by the (ignored) allowlist.
Comment on lines 83 to +85
claude_args: |
--model claude-sonnet-4-6
--dangerously-skip-permissions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants