
SpaceX Bought Cursor: Your Review Gate Can't Live There
On June 11, GitHub announced that agentic workflows no longer need a personal access token. Agents can now authenticate with the built-in GITHUB_TOKEN that Actions already provides to every workflow run. No PAT creation, no secret rotation, no scoping headaches.
That's good news for security. It's also a shift in where the responsibility for code quality actually sits. When the credential barrier to opening a PR drops to zero, the merge gate becomes the only mandatory checkpoint between an agent's output and your main branch.
Until this change, any AI agent running inside GitHub Agentic Workflows needed a PAT to interact with the GitHub API on behalf of a user. That meant someone had to generate the token, store it as a secret, scope it correctly, and remember to rotate it. In practice, most teams created a broadly scoped PAT, stuck it in a repo secret, and forgot about it until something broke or leaked.
The GITHUB_TOKEN is different in three ways that matter:
contents: read, that's all the token can do, regardless of what the user who triggered the workflow could do.There's also a billing angle. When an agentic workflow uses the Actions token in an org-owned repo, AI credits get billed to the organization instead of the individual developer. Teams need to enable the "Allow use of Copilot CLI billed to the organization" policy and add copilot-requests: write to the permissions block in their workflow markdown file.
permissions:
contents: write
pull-requests: write
copilot-requests: writeBefore this change, setting up a PAT was annoying but it served as an implicit gate. Someone had to actively decide to give an agent credentials. That decision point forced at least a brief conversation about scope, permissions, and what the agent would actually do with write access.
Now that conversation doesn't happen by default. Any workflow that already has pull-requests: write in its permissions block can open PRs. No human needs to provision a token. No one needs to approve the agent's access. The agent just... ships.
That's fine if you have a solid review process. It's less fine if you don't. And this is where the merge gate becomes critical.
Think about the path agent-generated code takes from idea to main branch. Before this change, there were at least two checkpoints:
Checkpoint one is now gone. If you don't have a required status check or branch protection rule enforcing a review on every PR, checkpoint two might be optional too. That leaves you with zero mandatory checkpoints between an agent writing code and that code landing in production.
Zero is not a number you want here.
GitHub has built real security controls into agentic workflows: agents run with read-only permissions by default, a threat-detection job scans proposed changes, and the Agent Workflow Firewall restricts outbound traffic to allowlisted domains. These are good controls. They protect against prompt injection and exfiltration.
But they don't review code quality. They don't check whether a function handles edge cases, whether a migration is backwards-compatible, or whether the agent introduced a subtle logic bug that passes all existing tests. That's the job of a code review gate, and GitHub's built-in protections don't fill that role.
A required status check is the cleanest way to enforce review on agent-generated PRs. It's a branch protection rule that blocks merge until a specific check passes. If that check is an AI code reviewer, every PR gets a semantic review before it can land, regardless of who or what opened it.
This is exactly where Tenki's Code Reviewer sits. It runs as a required status check on every PR, reviewing the diff for bugs, logic errors, and security issues. In independent benchmarks, Tenki caught 84 out of 122 seeded bugs (68.9% recall), compared to 28.7% for CodeRabbit and 24.6% for Copilot's built-in reviewer. At $1.00 per review, it's cheap enough to run on every PR without worrying about the cost of agent-generated volume.
The important thing is that this works the same for agent PRs and human PRs. The merge gate doesn't care who opened the PR. It cares whether the code is ready.
If you're running agentic workflows with the new GITHUB_TOKEN auth, here's the minimum setup to ensure every agent PR still gets reviewed:
gh extension upgrade aw to get the latest version with GITHUB_TOKEN support.If you also want org-level billing for the AI credits your agentic workflows consume, enable the Copilot CLI billing policy and add copilot-requests: write to the permissions section of your workflow file.
They can. They could before, and now it's easier. The question is what happens between the PR being opened and the code reaching main.
GitHub removed the credential friction because it was a security liability, and that was the right call. But every friction point you remove from one end of the pipeline needs to be compensated somewhere else. If you're not enforcing a review gate on merge, you're trusting that every agent-generated diff is correct, secure, and ready for production. That's a bet, not a process.
Add the check. Make it required. Then let the agents ship.
Tags
Recommended for you
What's next in your stack.