Skip to Content
Amaru
Amaru LightOperate

GitHub access

Set up the Amaru Light bot account, choose its token for direct or fork pushes, connect Git credentials and set the author of the bot's commits.

Amaru Light works on GitHub as a bot account of its own, so its comments, branches and pull requests stay apart from yours. It uses two tools that read the bot's token: gh for issues, labels, comments and pull requests, and git for cloning, fetching and pushing over HTTPS.

Before you begin

Create a GitHub account for the bot, and decide whether it pushes directly or through a fork.

Direct pushes or a fork

  • Direct. Leave fork out. The bot pushes branches to repo and opens pull requests from them. It needs write access to repo.
  • Fork. Set fork: my-bot/name. The bot pushes to the fork and opens pull requests on repo from my-bot:branch. It needs no write access to repo.

The daemon, never the agent, sets this up before every agent turn and push: it creates the fork when it is missing, and keeps origin as the push target and upstream as repo in the clone and every worktree. A bot that pushes to a fork usually cannot label the upstream issues; the daemon then works without labels, and you unblock tickets with amaru unblock <ticket>.

The token

Pass a personal access token as GH_TOKEN; in a container, pass it with -e GH_TOKEN rather than storing it on a volume.

PushesToken
DirectA fine-grained token with read and write access to Contents, Issues and Pull requests on the repository.
Fork, upstream owned by someone elseA classic token with public_repo (repo for a private repository). A fine-grained token cannot open the pull request upstream.

amaru doctor runs gh auth status only; the first ticket shows whether the permissions are enough.

Git credentials

Run gh auth setup-git once as the daemon user, so Git gets its credentials from gh.

Commit author

If Git has no identity when the daemon first syncs a repository, it sets Amaru Light <amaru-light@users.noreply.github.com> on its clone. To commit as the bot instead, set a global user.name and user.email before the first ticket.

Based on docs/github-access.md.

Next steps

On this page