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 underAdmin and MCP routes exist behind their own secrets (/github, so the full public path is/github/webhook— a common mistake is to configure just/webhook.
DOCAGENT_ADMIN_TOKEN, ADMIN_SECRET, DOCAGENT_MCP_SECRET); see Environment variables.
Related
- Installation — installing with these permissions.
- Self-hosting overview — registering your own App.
- Security — webhook verification and hardening.