r/NOFireAI_ • u/spirosoik • 12h ago
Give the agent gh CLI, not your GitHub account
This post covers how gh CLI reaches the broker, a real demo with r/herdr, why path rules cannot limit GraphQL, what the policy checks, and how to set it up.
TL;DR
A coding agent that needs gh usually gets a GitHub token, and with it everything the token can do. Brig's new github-api route serves gh from the credential broker on the host, so the token never enters the sandbox, and a GraphQL policy decides which queries and mutations reach GitHub.





