Connect GitHub repositories
An administrator connects GitHub once for the installation. Select only repositories whose indexed context is appropriate for everyone using that installation.
Create a GitHub token
Section titled “Create a GitHub token”Use a dedicated account or a fine-grained token limited to the intended repositories.
| Token type | Permissions |
|---|---|
| Fine-grained | Selected repository access; Contents: read, Metadata: read, Webhooks: read and write |
| Classic | repo, 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.
Connect and select
Section titled “Connect and select”- Open GitHub, paste the token and connect.
- Open Repositories and choose the repositories to index.
- Wait for cloning and indexing. A failed index shows an error and a Retry action.
- 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.
Keep indexes current
Section titled “Keep indexes current”ontlgy creates repository webhooks for push updates at:
https://YOUR_INSTALLATION/webhook/githubSet 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.
Credential handling
Section titled “Credential handling”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.