Skip to content
Development documentation: these guides follow main and may describe changes not yet in a published release.

Configure GitHub Apps

Operator guide · Installation

Create two GitHub Apps under the account or organization owning the managed repositories. Names are operator-selected, but numeric App IDs and private keys must differ. User authorization, callback URLs, and OAuth features are unnecessary. Separate identities allow the Reviewer to approve a Pull Request authored by the Developer App.

Configure these repository permissions:

PermissionAccess
MetadataRead-only
ChecksRead-only
ActionsRead-only
Commit statusesRead-only
AdministrationRead-only
ContentsRead and write
IssuesRead and write
Pull requestsRead and write
WorkflowsRead and write

Subscribe to exactly Issues, Issue comment, Pull request, Pull request review, and Repository events. After upgrading to human clarification support, add Issue comment to the Developer App subscriptions and rerun preflight. The Repository subscription supplies repository.created for onboarding. GitHub also supplies the default installation.created and installation_repositories.added deliveries.

Enable the webhook with:

SettingValue
URLhttps://PUBLIC_HOST/webhooks/github
Content typeapplication/json
SecretExact contents of secrets/github-webhook-secret
SSL verificationEnabled

Use public HTTPS and exactly /webhooks/github, with no URL credentials, query, or fragment.

PermissionAccess
MetadataRead-only
ContentsRead-only
Pull requestsRead and write

Select no webhook events and disable its webhook. Do not reuse the Developer identity or key. CI diagnostic reads use the Developer App, not expanded Reviewer permissions. After an upgrade adding required-CI evidence, add Commit statuses and Administration read permissions to the Developer App, approve the updated installation permissions, and rerun preflight before starting Agent Turns. Administration read is needed for complete classic branch-protection reads; no administration write, Checks write, or CI-completion webhook subscription is required. App configuration and installation tokens must match the exact permission tables, so updating only the App or only its installation is insufficient. Doctor rejects missing permissions and broader permissions such as Administration write. Required-policy permission failures remain explicit unavailable/partial evidence, never an empty requirement set. See CI evidence for the read contract and recovery guidance.

Generate one RSA private key per App in GitHub and store PKCS#1 or PKCS#8 PEM files at:

secrets/github-developer-private-key.pem
secrets/github-reviewer-private-key.pem

Set their numeric App IDs in the private deployment .env:

OMNIGREX_GITHUB_DEVELOPER_APP_ID=12345
OMNIGREX_GITHUB_REVIEWER_APP_ID=67890

Install both Apps on the owning account or organization and grant each access to every managed repository. For selected-repository installations, add new repositories to both Apps before preflight. Coordinate access approvals with repository owners and organization administrators. Omnigrex creates short-lived installation tokens; no personal access token is required.

Follow secret placement and groups before starting the orchestrator. Verify an actual Developer App delivery receives HTTP 202 as described in installation.

See ADR 0005 (GitHub) and ADR 0009 (GitHub) for identity and credential selection.

New Work Item Issue comments require the Developer App’s issue_comment subscription. The orchestrator checks the exact human actor’s current repository permission through the metadata-read collaborator-permission endpoint; Issue authorship alone is not authority. Accepted input is durable before its visible acknowledgment, so delivery retries reconcile the acknowledgment without queueing the response twice. If an acknowledgment is missing, inspect webhook-delivery processing and the Developer App’s installation, subscription, Metadata-read and Issues-write permissions rather than resubmitting edited comments or resetting the Workflow. Normal clarification waiting does not require omnigrex:run; only an actual Human Handoff uses explicit recovery. See clarification and steering for the user-facing contract.