skip to content

A lead wants Copilot cloud agent to take backlog issues in a repository whose main branch requires one approval. What keeps its work from merging unreviewed?

level: seniorimportance: should knowfreq 8%

answer

  1. the agent proposes, people dispose
  2. no ready, approve or merge
  3. the requester's approval does not count
  4. one extra approval for its app identity
  5. rulesets, bypass actors, branch protection

basics

~20 s

Copilot cloud agent cannot mark its pull request ready, approve or merge it, and the person who asked cannot approve it, so another reviewer must. It obeys branch protections, and unattributed pull requests need one extra approval.

solid answer

~50 s

Several built-in controls hold. Copilot cloud agent pushes only to its own `copilot/` branch (or the pull request's branch when `@copilot` is mentioned there), cannot run `git push` itself, and is subject to the repository's branch protections and required checks. Its draft pull requests must be reviewed and merged by a human: it cannot mark them **Ready for review**, approve or merge. The user who asked for the change cannot approve the pull request, so the one required approval must come from someone else, and when the pull request is opened under Copilot's own app identity one more approval is required, on by default in rulesets and always for branch protection rules. A rule the agent cannot satisfy, such as allowed commit authors, blocks it; in a ruleset you can add Copilot as a bypass actor. The lead's remaining call is who reviews, and whether Copilot code review approvals, a public preview feature off by default, may count.

go deeper

for a junior

Recall that Copilot cloud agent opens pull requests but cannot approve or merge them, and that the person who asked for the work cannot approve it.

for a middle

Explain the controls: single-branch pushes, branch protections and required checks, no ready-for-review, approve or merge, and the extra approval for pull requests under Copilot's app identity.

for a senior

Show how you would configure a repository before opening the backlog to the agent: named reviewers, the workflow approval kept on, a scoped bypass only where a rule blocks it, and a deliberate stance on Copilot approvals.

for a principal

Weigh adoption across repositories: which ones can tolerate agent pull requests, how review load shifts to senior reviewers, and whether Copilot approvals should ever count toward merge requirements.

## The scenario A lead is deciding whether **Copilot cloud agent** may pick up issues from the backlog in a repository whose `main` branch requires **one approval** before merging. The worry is simple: an autonomous agent that can push code might also be able to get that code merged without a real review. GitHub documents a set of controls that answer this, and knowing them precisely is what separates "we tried it" from "we know what it can do". Most are on by default, and several are settings a lead can weaken without noticing. ## What the agent cannot do - **Push anywhere it likes.** It can push to a single branch: a new `copilot/` branch for a new task, or the existing pull request's branch when it was triggered by `@copilot` on that pull request. - **Run Git directly.** Its credentials allow only simple push operations; it cannot run `git push` or other Git commands itself. - **Escape protections.** It is subject to the repository's **branch protections** and **required checks**. - **Finish the pull request.** Its pull requests are drafts that must be reviewed and merged by a human; it cannot mark them **Ready for review**, cannot **approve** and cannot **merge**. - **Take orders from strangers.** Only users with write access can trigger it, and comments from others are never presented to it. ## How the required approval is protected | Control | What it does | Default | |---|---|---| | Requester cannot approve | The user who asked Copilot to create the pull request cannot approve it; their approval does not count | Always on | | Extra approval for unattributed pull requests | When the pull request is opened under Copilot's own app identity, one more approval is required, as long as the repository already requires at least one | On in rulesets (admins can turn it off); always applies to branch protection rules | | Workflow approval | Workflows wait for a write-access user to click **Approve and run workflows** | On; an admin can disable it | | Copilot code review approvals | Copilot can submit an approving review that satisfies the required-approval rule | **Off**; public preview, configured at enterprise, organization and repository level | The practical effect for a "one approval" repository: if a developer assigns the issue, a **different** reviewer must approve, and for an unattributed pull request a further approval is needed. Commits are authored by Copilot with the requester as co-author, signed as Verified, and each commit message links to the session logs, so auditing who started what is straightforward. ## Rules that block the agent Some rules are not compatible with the agent. The docs give the example of a rule that only allows specific commit authors: it can prevent Copilot cloud agent from creating or updating pull requests, and access to the agent is then blocked. If that rule is configured with **rulesets**, you can add **Copilot as a bypass actor**. That is a deliberate exception, so scope it to the rule that needs it rather than widening bypass in general. ## Decisions the lead still owns 1. **Who reviews.** The controls guarantee a second person approves; they do not guarantee that person reads carefully. Name reviewers for agent pull requests. 2. **Whether Copilot approvals may count.** This public preview feature is off by default. Enabling **Allow Copilot to approve pull requests** and **Allow Copilot approvals to count toward merge requirements** lets an approving Copilot code review satisfy the rule the same way a teammate's approval would; optional file-path globs can limit where that applies. Turning it on changes what "one approval" means, so decide it explicitly. 3. **Whether to keep the workflow approval.** Turning it off trades review friction for the risk of unreviewed code reaching secrets. 4. **Which issues go to the agent.** Each session has a 59-minute limit and produces one pull request, which favours small, well-described issues. 5. **What the firewall and validation tools cover.** By default the agent runs CodeQL, advisory-database and secret-scanning checks on its own code; these lower risk but are not a substitute for review.

  • A ruleset only allows specific commit authors, and Copilot cloud agent can no longer update its pull requests. What are the options?
    The rule is incompatible with the agent, so GitHub blocks access to it. Because the rule lives in a ruleset, you can add Copilot as a bypass actor for that ruleset. Treat that as a scoped exception: you are exempting the agent from that rule, so keep the bypass narrow and keep the approval rules that still require a second human.
  • How can an auditor tell which changes Copilot cloud agent made and who asked for them?
    Its commits are authored by Copilot with the developer who assigned the issue or requested the change as co-author, they are signed and show as Verified, and each commit message links to the agent's session logs. Administrators also get session logs and audit log events.

The agent is like a contractor who can draft a change order but cannot sign it, and the manager who commissioned it cannot countersign either: by default the signature must come from a second person.

  • The developer who assigned the issue can approve Copilot's pull request to meet the rule.
  • Copilot cloud agent merges its own pull request once the required checks pass.
  • Branch protections do not apply to the agent because it pushes as an app.
  • The agent can push to any branch the person who started it can push to.
  • Copilot code review approvals count toward required approvals by default.