Linking CircleCI as a source

Alpha release

This source is currently in alpha. The interface and available tables may change.

The CircleCI connector syncs your CI/CD pipeline data – pipelines, workflows, jobs, and projects – into PostHog.

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 CircleCI.
  3. Next, you need a personal API token from CircleCI. In your CircleCI user settings, create a new personal API token and copy it. The token inherits your user permissions and grants read access to your organization's data.
  4. You also need your organization slug in the vcs/org format. For example, if your organization is on GitHub with the name your-org, the slug is gh/your-org. For Bitbucket, use bb/your-org. You can find it under Organization settings in CircleCI.
  5. Back in PostHog, enter the personal API token and organization slug, then click Next.
  6. Select the tables you want to sync, set the sync frequency, then click Import.

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

Available tables

TableDescriptionSync method
pipelinesCI/CD pipelines in your organizationFull refresh
workflowsWorkflows within pipelinesFull refresh
jobsIndividual jobs within workflowsFull refresh
projectsProjects associated with your pipelinesFull refresh

Full refresh tables reload all data on each sync. CircleCI's API does not support incremental syncing.

Configuration

OptionDescription
Personal API token
Type: password
Required: True
Organization slug
Type: text
Required: True

The organization slug in vcs/org format, e.g. gh/your-org. You can find it under Organization settings in CircleCI.

Community questions

Was this page useful?

Questions about this page? or post a community question.