GitHub Integration
The GitHub integration automatically discovers repositories, teams, and AI assets from your GitHub organization and brings them into the IDP Catalog. Once discovered, entities can be registered as new catalog entries or merged into existing ones, enriching them with GitHub-sourced metadata for service discovery, team ownership, and dependency mapping.
- The feature flag
IDP_CATALOG_CD_AUTO_DISCOVERYis enabled. Contact Harness Support to enable it. - You have the required RBAC permissions to manage integrations. All integration operations require the
IDP_INTEGRATION_EDITpermission on theIDP_INTEGRATIONresource type. - A GitHub PAT Connector or GitHub App Connector is configured in Harness with the credentials needed to access your GitHub organization. Ensure that the connector has the necessary permissions on your GitHub. You can create a new connector directly during the integration setup.
- For each GitHub org, user has to maintain one integration.
Enable the GitHub Integration
1. Navigate to the Integrations Page
-
In Harness, open the Internal Developer Portal.
-
From the left sidebar, click Configure.
-
In the left navigation menu, click Integrations.
Figure 1: Navigation Path of GitHub Integration -
On the Integrations page, click + New Integration at the top.
-
Select GitHub from the integration type picker. You will be taken to the Auto Discover GitHub Integration page.
2. Configure Setup & Connectivity
This section connects Harness IDP to your GitHub organization.
-
Enter a name in the Integration Name field. This name appears on the integration card on the Integrations page (e.g.,
GitHub Production). -
Click the Choose GitHub connector dropdown and select the GitHub connector you want to use to pull data into the IDP.
Connector requires org-level permissionsThe GitHub integration performs org-level queries to discover repositories and teams across your organization. Ensure the GitHub connector you select has org-level permissions on your GitHub.
Don't have a GitHub connector yet?If no connectors appear in the dropdown, you need to first create a GitHub connector in Harness. Once saved, it will appear in the dropdown here.
3. Configure Mapping & Correlation
This section defines how GitHub entities are mapped to IDP catalog entities and how they are correlated with existing records.
The integration supports three entity types: Repository Entity, Team Entity, and AI Assets Entity, each with its own toggle, registration behavior, and field configuration.
Repository Entity
The Repository Entity mapping imports GitHub repositories as catalog entities, with configurable Kind or Type.
-
Ensure the Repository Entity toggle is turned on.
-
Under Entity Registration Behavior, choose how repositories are brought into the catalog:
- Register & Merge (Default) - Registers new entities and updates existing ones when a match is found. This is the recommended option for most setups.
- Register - Creates new catalog entities from GitHub. Does not merge with existing entities.
- Merge - Links discovered repositories to existing catalog entities. Matching entities are recommended automatically, but you can choose a different one.
-
Choose the Kind and Type from the dropdown. By default, it is
Componentandservicerespectively. Configurability varies by registration behavior:Registration Behavior Kind Type Register & MergeConfigurable Configurable RegisterConfigurable Configurable MergeConfigurable Not configurable -
Under Correlation Mapping, set the Ingested Data Path (from GitHub) and the corresponding Catalog YAML Path (from your IDP entity) to define how records are matched. The operator supports
EqualsandContains. -
Optionally, click Configure next to Configure fields (optional) to customize which GitHub fields are synced to the catalog. By default, all available fields are selected.
GitHub repository entities include release metadata for the latest 10 releases only (if they exist). Older releases are not ingested into the catalog.
Team Entity
The Team Entity mapping imports GitHub teams as catalog entities, with configurable Kind or Type.
-
Ensure the Team Entity toggle is turned on.
-
Under Entity Registration Behavior, choose the registration behavior as described above for Repository Entity.
-
Choose the Kind and Type from the dropdown. By default, it is
User GroupsandTeamrespectively. Configurability varies by registration behavior:Registration Behavior Kind Type Register & MergeConfigurable Configurable RegisterConfigurable Configurable MergeConfigurable Not configurable -
Configure the Correlation Mapping fields as needed.
-
Optionally, click Configure next to Configure fields (optional) to customize the field mapping.
The catalog only surfaces repositories for which the GitHub team has Admin permission. Repositories with lower-level access will not show up in the Ingested Properties.
AI Assets Entity
The AI Assets Entity mapping discovers and imports AI/ML assets found in your GitHub repositories through manifest-level, API-based scanning. No repository cloning is required.
You can discover two classes of assets:
-
ai_asset- Claude Code ecosystem components defined in.claude-plugin/manifests or standalone.claude/directories. Includes the following types:Type Description Example pluginA Claude Code plugin bundle make-agent-friendly,harness-hqlskillA user-invocable task definition python-conventions,hql,dbopsagentAn autonomous agent definition python-explorer,doc-generatorcommandA CLI-style command run,suggest-workflows,add-fme-step -
dependency- AI/ML tooling and infrastructure detected in package files, config files, and infrastructure manifests. Includes the following types:Type Description Example libraryPackage manager dependency openai,langchain,anthropicmodelLLM/ML model reference gpt-4o,claude-3.5-sonnetendpointAPI endpoint or key reference OPENAI_API_KEY,ANTHROPIC_API_KEYmcp_serverMCP server configuration Declared in .mcp.jsonorclaude_desktop_config.json
The current implementation scans for plugin manifests and .claude/ directories at the repository root only. Subdirectory scanning of AI assets in a monorepo might be planned in a future release.
Both asset classes are registered in the IDP Catalog under AIAsset kind with their respective types, and are browsable under the AI Assets and AI Dependencies tabs in the Catalog
4. Configure Advanced Settings
The Advanced Settings section controls how frequently IDP syncs with GitHub and how far back historical data is pulled.
-
Select an Update Frequency from the dropdown to control how often IDP polls GitHub for new data.
-
Set the Select start date to define the earliest date from which IDP will pull GitHub data. Any data before this date will be excluded. By default, this is set to one year prior to today.
Start Date Update LimitsThe start date may be updated after the integration is configured, but only to an earlier date (up to 1 year old) than the one originally selected. It cannot be moved forward.
-
Once all sections are configured, click Confirm & Enable. A confirmation dialog will appear before the changes are applied.
The integration is now enabled and IDP begins syncing data from GitHub. Discovered repositories, teams, and AI assets appear in the Discovered tab.
Discover and Import GitHub Entities
This section covers how to view the GitHub entities discovered by the integration and import them into your IDP Catalog.
Discovered tab
After the integration runs, all GitHub entities detected appear in the Discovered tab. Use the Repository, Team, and AI Assets sub-tabs to switch between entity types. If entities do not appear, use the Sync button at the top right to manually refresh.
For each discovered entity, you can see its name, the recommended catalog action, kind, and the date it was detected. You can choose how to bring entities into the catalog using one of the following actions:
- Register (shown as Recommended when no matching catalog entity exists) - Creates a new catalog entity populated with the GitHub metadata.
Typeis editable by the user. - Merge (shown as Recommended when a matching catalog entity is found) - Links the discovered entity to an existing catalog entity, enriching it with GitHub data. The suggested matching entity is shown automatically and can be changed.
- Bulk Import - Select multiple entities using the checkboxes and click Import selected entities at the bottom of the page to import them all at once. The selection widget shows a count of selected entities.
- Auto Import - Toggle Auto-import future discovered entities in the top right of the Discovered tab to automatically import all future entities without manual review. You can change this preference at any time.
Imported tab
The Imported tab displays all GitHub entities that have been brought into the catalog. Use the Repository, Team, and AI Assets sub-tabs to view each entity type separately.
It displays the following data:
| Column | Description |
|---|---|
| GitHub Entity | The name of the entity from GitHub, along with its import status (for example, Merged or Registered). |
| Entity | The linked IDP catalog entity and its ID. |
| Kind | The catalog entity kind (e.g., component for repositories, group for teams, aiasset for AI assets). |
| Type | The catalog entity type (e.g., service for repositories, team for teams). |
| Scope | The Harness account scope the entity belongs to. |
| Imported At | The timestamp when the entity was imported. |
To stop syncing a specific entity without deleting the catalog entity, use the three-dot menu on any row and select Unlink. This stops sync updates while keeping the IDP entity and its existing data intact.
View GitHub Entities in the Catalog
Once imported, GitHub entities are available in the Catalog section of IDP as standard catalog entities.
Each imported GitHub repository is registered with:
- Kind:
Component - Type:
service - Scope: The Harness account the integration belongs to
Each imported GitHub team is registered with:
- Kind:
Group - Type:
Team - Scope: The Harness account the integration belongs to
Each imported AI asset is registered with:
- Kind:
aiasset - Scope: The Harness account the integration belongs to
Open any entity to view its Overview, Relationships, Scorecards, and any other tabs configured for your entity layout. The Relationships section reflects ownership links between AI assets, teams, and repositories as discovered from GitHub.
Ingested Properties
To inspect the raw data ingested from GitHub, open the entity and click View YAML → Ingested Properties in the Entity Inspector.
Ingested properties are stored in two sections of the entity YAML:
metadata.integration- Tracks which integrations are linked to this entity, including the entity action (e.g.,REGISTERorMERGE) and the linked entity UUID for each integration instance.integration_properties.GitHub- Contains the GitHub-specific data for the entity, organized by entity type. For repository entities, this includes repository metadata such as name, URL, and associated teams. For team entities, this includes team membership and hierarchy data.
Manage the GitHub Integration
Edit the Integration
To update the integration name, switch the GitHub connector, or change the mapping and correlation settings, navigate to the Integrations page, find your GitHub integration card, and click View. From there, click Configuration to open the edit screen.
Suspend Auto-Discovery
If auto-discovery is suspended, new entities will not appear in the Discovered tab. Existing imported entities remain unchanged in the catalog and the sync between GitHub and their corresponding IDP entities will stop.
To suspend auto-discovery:
- Go to Integrations and open your GitHub integration using the View button.
- Click Configuration at the top.
- In the Danger Zone section, click Suspend.
- Confirm the action.
You may re-enable it at any time by following the same steps.
GitHub Permissions
The GitHub Integration connector supports three credential types. The table below summarizes the minimum permissions required for each. Detailed breakdowns follow.
| Credential Type | Minimum Permission |
|---|---|
| Classic Personal Access Token | read:org scope + SSO authorization (if applicable) |
| Fine-Grained Personal Access Token | Repository: Metadata (Read-only), Organization: Members (Read-only) |
| GitHub App | Repository: Metadata (Read-only), Organization: Members (Read-only) |
Classic Personal Access Token
read:org (under admin:org) grants read access to organization and team membership, and org projects. This is the minimum scope needed for IDP to perform org-level discovery of repositories and teams.

If your GitHub organization enforces SAML SSO, the token must also be explicitly authorized for that organization after it is generated. Without SSO authorization, org-level queries will fail even if read:org is selected.
To authorize: navigate to your token on the GitHub tokens page, click Configure SSO, and authorize the token for the relevant organization.

Fine-Grained Personal Access Token
-
Repository access must be set to All repositories so that IDP can discover all repositories in the organization.

-
Under the Repositories permission tab, set Metadata to
Read-only.
-
Under the Organizations permission tab, set Members to
Read-only.
The Resource owner must be set to the organization, not a personal account. Fine-grained tokens are scoped to a single resource owner, so one token covers one organization. If you need to connect multiple GitHub organizations, create a separate token and a separate Harness connector for each.
GitHub App
-
When configuring the app, the Permissions section should show exactly 1 selected permission under both Repository permissions and Organization permissions.

-
Expanding each section, confirm that Metadata is set to
Read-onlyunder Repository permissions, and Members is set toRead-onlyunder Organization permissions.

-
The app must be installed on the organization for the permissions to take effect. Once installed, the app's permission summary on the org's installed apps page will confirm:
Read access to members and metadata