Enhance
Integrations

GitHub

Repository indexing, PR tracking, and code sync via the Enhance GitHub App.

The GitHub integration connects your repositories to Enhance for code intelligence, indexing, and semantic search. It uses a GitHub App for secure, scoped access.

Setup

  1. Go to Workspace Settings > Integrations > GitHub
  2. Click Install GitHub App — this redirects to GitHub
  3. Select your organization and choose which repositories to grant access to
  4. GitHub redirects back to Enhance with the installation confirmed

Repository selection

During GitHub App installation, you can choose:

  • All repositories — Enhance can access every repo in the organization
  • Selected repositories — Only specific repos are accessible (recommended)

You can change this selection later in your GitHub App settings.

What gets synced

DataDirectionDescription
Repository metadataInboundName, URL, default branch, language
Source codeInboundFiles are shallow-cloned for indexing

GitHub is a repository integration only — it provides code access for indexing. Issue tracking uses separate integrations (Linear, Jira, etc.).

How indexing works

When a repository is connected to a project:

  1. Enhance clones the repository using a short-lived installation token
  2. The indexing pipeline runs (parse, resolve, summarize, embed)
  3. Code intelligence features become available (semantic search, codebase maps, impact analysis)

Re-indexing is incremental — only changed files are reprocessed.

Authentication

The GitHub App uses private key authentication. Installation tokens are generated per-request and are short-lived. No long-term tokens are stored.

Required environment variables

VariableDescription
GITHUB_APP_IDYour GitHub App's ID
GITHUB_APP_PRIVATE_KEY_BASE64Base64-encoded private key
GITHUB_APP_WEBHOOK_SECRETWebhook signature verification secret
GITHUB_CLIENT_IDOAuth client ID (for user sign-in)
GITHUB_CLIENT_SECRETOAuth client secret

Connecting repos to projects

After installing the GitHub App:

  1. Open a project's Settings > Repositories
  2. Your accessible GitHub repos are listed
  3. Click Connect next to each repo you want to index
  4. Indexing starts automatically

Connected repos appear at the top of the list for easy management.