Linking Harness as a source

Let AI connect your sources for you

Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

PostHog Wizard hedgehog

The Harness connector syncs your CI/CD pipeline data – pipelines, executions, services, environments, user groups, and execution metadata – into the PostHog data warehouse, so you can analyze your deployment activity alongside your product data.

Prerequisites

You need a Harness account with API access. Each connection imports data from one account, organization, and project scope.

To create an API key token:

  1. In Harness, go to My Profile > My API Keys.
  2. Create an API key and add a token.
  3. Grant the token view permission for pipelines, executions, services, environments, user groups, and approvals in your project.

Adding a data source

  1. Go to the sources tab of the data pipeline section in PostHog.
  2. Click + New source and then click Link next to Harness.
  3. Enter your connection details:
    • API key token – the token you created in Harness.
    • Account ID – your Harness account ID.
    • Organization ID – the organization containing your project (defaults to default).
    • Project ID – the Harness project to import from.
    • Region – select the host that matches your Harness account URL. Supported hosts are app.harness.io, app3.harness.io, accounts.harness.io, and accounts.eu.harness.io. Self-managed hosts aren't supported.
  4. Click Next.
  5. Select the tables you want to sync, set the sync frequency, then click Import.

Once the syncs are complete, you can start using Harness data in PostHog.

Available tables

TableDescriptionSync method
pipelinesPipeline summaries in the selected Harness projectFull refresh
executionsPipeline executions, including status, timing, and stage countsFull refresh
servicesServices configured for deployment in the selected Harness projectFull refresh
environmentsDeployment environments in the selected Harness projectFull refresh
user_groupsUser groups in the selected Harness projectFull refresh
approval_instancesApproval steps of each pipeline execution in the selected Harness projectFull refresh
execution_notesNotes on pipeline executions in the selected Harness project (executions without notes have no row)Full refresh
execution_annotationsAnnotations on pipeline executions in the selected Harness projectFull refresh

Full refresh tables reload all data on each sync.

Sync limitations

All Harness tables use full refresh only. Execution queue-time filters could miss later status changes on older executions, so incremental sync isn't supported.

The approval_instances, execution_notes, and execution_annotations tables make one API request for each pipeline execution.

Configuration

OptionDescription
API key token
Type: password
Required: True
Account ID
Type: text
Required: True
Organization ID
Type: text
Required: True
Project ID
Type: text
Required: True
Region
Type: select
Required: True

Select the host shown in your Harness account URL.

Supported tables

TableDescriptionSync methodIncremental fieldPrimary key
pipelines

Pipeline summaries in the selected Harness project.

Full refresh——
executions

Pipeline executions, including status, timing, and stage counts.

Full refresh——
services

Services configured for deployment in the selected Harness project.

Full refresh——
environments

Deployment environments in the selected Harness project.

Full refresh——
infrastructures

Infrastructure definitions for each environment in the selected Harness project.

Full refresh——
user_groups

User groups in the selected Harness project.

Full refresh——
approval_instances

Approval steps of each pipeline execution in the selected Harness project.

Full refresh——
execution_notes

Notes on pipeline executions in the selected Harness project. Executions without notes have no row.

Full refresh——
execution_annotations

Annotations on pipeline executions in the selected Harness project.

Full refresh——
organizations

Organizations in the Harness account.

Full refresh——
projects

Projects in the Harness account that the API key's user is a member of.

Full refresh——

Still have questions?

Was this page useful?