Skip to main content

Permissions & events

ZAR requests the least privilege it needs to read diffs and post reviewable feedback. This page is the exact list, plus the HTTP endpoints a self-hosted instance exposes.

GitHub App permissions

Contents: write is requested so that auto-commit can work when you turn it on. With auto-commit off (the default), ZAR reads contents but only ever writes via pull requests. See Safety & guarantees.

Webhook events

installation and installation_repositories are delivered to every GitHub App automatically — there’s no separate subscription checkbox. Events other than the above are acknowledged and ignored.

HTTP endpoints (self-hosted)

ZAR is a FastAPI app. The endpoints you’ll care about:
The webhook router is mounted under /github, so the full public path is /github/webhook — a common mistake is to configure just /webhook.
Admin and MCP routes exist behind their own secrets (DOCAGENT_ADMIN_TOKEN, ADMIN_SECRET, DOCAGENT_MCP_SECRET); see Environment variables.