---
title: "Comment by Paul Pham on \"Your agent's permissions are already code. Nobody is reviewing them.\" | Hashnode"
description: "WebFetch sitting next to mcp__postgres in one line is easy to approve on a Friday. Does your scanner also catch it when the two land in separate PRs a week apar"
url: "https://hashnode.com/posts/your-agent-s-permissions-are-already-code-nobody-is-reviewing-them/6b00690eb8466776d8289984/comment/6b0265193ce74cba4a0b84cd"
---

[Discussion](https://hashnode.com/posts/your-agent-s-permissions-are-already-code-nobody-is-reviewing-them/6b00690eb8466776d8289984)

Comment [Your agent's permissions are already code. Nobody is reviewing them.](https://hashnode.com/posts/your-agent-s-permissions-are-already-code-nobody-is-reviewing-them/6b00690eb8466776d8289984)

[Paul Pham](https://hashnode.com/@paulpham157)

[3d ago](https://hashnode.com/posts/your-agent-s-permissions-are-already-code-nobody-is-reviewing-them/6b00690eb8466776d8289984/comment/6b0265193ce74cba4a0b84cd)

WebFetch sitting next to mcp\_\_postgres in one line is easy to approve on a Friday. Does your scanner also catch it when the two land in separate PRs a week apart?

[Vasyl Duda](https://hashnode.com/@vasylduda)

[3d ago](https://hashnode.com/posts/your-agent-s-permissions-are-already-code-nobody-is-reviewing-them/6b00690eb8466776d8289984/comment/6b0265193ce74cba4a0b84cd#reply-6b02a4e4fffe8a63e734bef4)

Yep. The check doesn’t look at the diff alone. It compares what the agent can do before and after the PR. So when mcp\_\_postgres comes first, nothing fails. Then, when WebFetch comes a week later, that PR fails as critical, and the report names both lines. I tested this exact case.

[Paul Pham](https://hashnode.com/@paulpham157)

[2d ago](https://hashnode.com/posts/your-agent-s-permissions-are-already-code-nobody-is-reviewing-them/6b00690eb8466776d8289984/comment/6b0265193ce74cba4a0b84cd#reply-6b02d4a59b2dee816e548b94)

So the second PR gets flagged for both lines. Is the 'before' taken from main, or from wherever the branch was cut? A long-lived branch could hide the first grant.

[Vasyl Duda](https://hashnode.com/@vasylduda)

[2d ago](https://hashnode.com/posts/your-agent-s-permissions-are-already-code-nobody-is-reviewing-them/6b00690eb8466776d8289984/comment/6b0265193ce74cba4a0b84cd#reply-6b0314747ee8a69062def063)

Main. The base is the PR's base SHA, so main as of the run, and actions/checkout scans the branch merged into main, not the branch tip. So, the postgres line is there even if the branch is older than it. I reran it with a branch cut before postgres landed, and the WebFetch PR still fails critical with both lines.

It can miss it in two cases. One is if your workflow checks out head.sha instead of the default ref. The other is if postgres merges after the WebFetch PR's last run, because then that check is stale. "Require branches to be up to date" covers the second one.

[Paul Pham](https://hashnode.com/@paulpham157)

[2d ago](https://hashnode.com/posts/your-agent-s-permissions-are-already-code-nobody-is-reviewing-them/6b00690eb8466776d8289984/comment/6b0265193ce74cba4a0b84cd#reply-6b03469d16e77190ee482c67)

I hadn't thought of postgres merging after the WebFetch PR's last run. Does the scan also rerun in a merge queue, or is "Require branches to be up to date" the only cover?

[Vasyl Duda](https://hashnode.com/@vasylduda)

[1d ago](https://hashnode.com/posts/your-agent-s-permissions-are-already-code-nobody-is-reviewing-them/6b00690eb8466776d8289984/comment/6b0265193ce74cba4a0b84cd#reply-6b0456a7b3f5cb6a7a932a20)

Right now only "Require branches to be up to date". The scan runs in a merge queue only if the workflow has merge\_group in on:, and the action only picked up the base from pull\_request events. So in a queue it scanned the whole commit and failed on old findings too. In the next release I'll change that. Thanks for your contribution.
