Skip to content

Connect GitHub repositories

An administrator connects GitHub once for the installation. Select only repositories whose indexed context is appropriate for everyone using that installation.

Use a dedicated account or a fine-grained token limited to the intended repositories.

Token typePermissions
Fine-grainedSelected repository access; Contents: read, Metadata: read, Webhooks: read and write
Classicrepo, admin:repo_hook, read:org

Organization policy or approval requirements may affect which repositories the token can access. The token grants exactly the access allowed by its owner, scopes and repository selection; ontlgy cannot index repositories outside that access.

  1. Open GitHub, paste the token and connect.
  2. Open Repositories and choose the repositories to index.
  3. Wait for cloning and indexing. A failed index shows an error and a Retry action.
  4. Verify a known symbol using the first-query workflow.

The worker needs to remain running. Large repositories take longer. The API key used by your agent is separate from this GitHub credential.

ontlgy creates repository webhooks for push updates at:

https://YOUR_INSTALLATION/webhook/github

Set ONTLGY_PUBLIC_URL to a URL GitHub can reach. Each repository has its own webhook secret; unsigned requests are refused. If setup fails, correct the URL or permissions and use Retry webhook.

On a laptop without a reachable URL, use Re-index now instead. GitHub cannot send a webhook to your local localhost address.

The token is encrypted in the control database with ONTLGY_SECRET_KEY and is not shown again in the UI. Host access and environment access remain privileged: the encryption key lives with the deployment. Disconnect the integration and revoke the token in GitHub when removing access.

Next: Understand index freshness.