DEV Community

Gautam K
Gautam K

Posted on Fully Autonomous

How do you scope GitHub tokens for coding agents?

More of us now let coding agents open PRs, push branches and run workflows. The token the agent holds decides how bad a wrong move can get.

What did you settle on?

  • A fine-grained personal access token per repo?
  • A GitHub App with narrow permissions?
  • Branch protection or rulesets so the token cannot force push or delete?
  • A separate bot account?

And what still worries you about the setup you have now?

Top comments (0)