An AI agent cannot approve its own pull request from the account that opened it: GitHub says "Pull request authors cannot approve their own pull requests," and you will not be able to approve a pull request raised by GitHub Copilot "if it was you who assigned Copilot to the issue to which the pull request relates" (GitHub Docs). But depending on your settings, an admin account or a workflow token can still get a change merged without independent approval, and the sections below show where each gap sits.
Can a GitHub Actions workflow approve its own pull request?
GitHub's docs say: "Under "Workflow permissions", use the Allow GitHub Actions to create and approve pull requests setting to configure whether GITHUB_TOKEN can create and approve pull requests. By default, when you create a new repository in your personal account, workflows are not allowed to create or approve pull requests. If you create a new repository in an organization, the setting is inherited from what is configured in the organization settings." (GitHub Docs)
This week’s check: go to Settings > Actions > Workflow permissions on every repository an agent interacts with. Confirm the setting is disabled. If it is enabled, find out why first: some workflows may rely on it to open or approve PRs. Disable it only after verifying no critical automation depends on it.
What does GitHub branch protection still let through?
GitHub's branch protection docs say "Optionally, you can require that the most recent reviewable push must be approved by someone other than the person who pushed it," and "By default, the restrictions of a branch protection rule don't apply to people with admin permissions to the repository or custom roles with the "bypass branch protections" permission" (GitHub Docs). Separately, "Repository owners and administrators can merge a pull request even if it hasn't received an approving review, or if a reviewer who requested changes has left the organization or is unavailable" (GitHub Docs).
This week’s check: in each protected branch rule, turn on the option that requires the most recent reviewable push to be approved by someone other than the person who pushed it, and make sure another authorized reviewer is available so merges do not stall. Next, list every user, bot and token with admin permissions or the "bypass branch protections" permission. Before you remove that access from a bot account, find which workflows use it, because removing it can break automation that pushes to protected branches.
Can an AI agent use a second GitHub account to approve its own code?
None of the GitHub pages cited here says whether a separate bot or app account opened by the same agent counts as a different reviewer, so do not assume GitHub stops it or allows it. NIST's AC-5 discussion says "Separation of duties addresses the potential for abuse of authorized privileges and helps to reduce the risk of malevolent activity without collusion" (NIST SP 800-53 Rev. 5). AC-5 does not mention AI agents. This article's reasoning is that an agent holding both the author and the reviewer identity is colluding with itself, which is the risk separation of duties is meant to reduce.
This week’s check: list every GitHub account, bot, token, and app that an agent can use to push code or approve pull requests. Confirm no single agent can both initiate a change and approve it, regardless of the identity used.
Does GitLab prevent the code author from approving their own merge request?
GitLab's docs say "By default, the creator of a merge request (author) cannot approve it," but "Merge request creators can edit the approval rule in an individual merge request and override this setting, unless you configure one of these options" (GitLab Docs). The same page says "By default, the Git author and Git committer of each commit can approve a merge request. With Prevent approvals by users who add commits, GitLab excludes both identities from approval." (GitLab Docs)
This week’s check: in each project an agent touches, first confirm that enough people who did not add commits have approval rights, so merges do not stall. Then turn on "Prevent approvals by users who add commits", along with the options the GitLab page lists for stopping merge request creators from overriding the approval rule.
What does Seconded do differently?
Seconded's live page puts it plainly: "No agent approves its own work." It says "Seconded is a gate that refuses any agent action nobody independent approved."
On identity, the page says "Every agent and person gets its own key, in an isolated signer no other agent can reach." On policy, it says "You decide who must sign and how independent they must be: a different identity, model, vendor, or a human."
At the gate, "Every signature, digest and rule gets checked. One failure and the action is refused." And "Every decision lands in an append-only ledger, and an open verifier lets anyone re-check it."
The page also offers an in-browser demo, "Try to forge an approval", that uses real signatures generated in the browser. The actions are simulated.
Seconded is in development. If you want independent, signed approval on agent-written changes, request early access.
Frequently asked questions
Can I rely on GitHub’s default branch protection to stop AI self-approval?
No. GitHub's branch protection docs say "By default, the restrictions of a branch protection rule don't apply to people with admin permissions to the repository or custom roles with the "bypass branch protections" permission" (GitHub Docs). Check which rules are turned on, and who holds admin or bypass rights, on each branch an agent can reach.
Does GitLab’s “Prevent approvals by users who add commits” stop all agent self-approval?
No. GitLab's docs say "With Prevent approvals by users who add commits, GitLab excludes both identities from approval," meaning the Git author and the Git committer (GitLab Docs). The rule covers those two identities only, so check whether any other account the agent controls has approval rights.
Can I use human reviewers instead of automated sign-off?
Yes. A human who did not write or push the change gives independent sign-off. The admin-bypass and commit-author rules covered above apply to human accounts too, so check them the same way.
Is this only about code merges?
No. Seconded's live page lists "Merges, deploys, payouts, deletions" and says "each one leaves a receipt anyone can verify." This article's reasoning is that separation of duties applies the same way to any action that is hard to undo.