Configure Harness Code for pull request ingestion
Ingested automatically as a source-control change source, with no connector setup required
Harness Code repositories are ingested as a source-control change source automatically. No connector and no webhook setup are required.
Before you begin
Deploy Change Investigator setup: Build and deploy webhook integrations created in AI SRE. Go to Deploy Change Investigator to set up the webhook endpoints.
A Harness Code repository: The service you deploy is built from a Harness Code repository.
How Harness Code pull request ingestion works
The Deploy Change Investigator ingests Harness Code pull requests by polling the internal Harness Code service. Because Harness Code runs inside your Harness account, ingestion uses internal service authentication.
Mechanism: AI SRE polls the internal Harness Code API for merged pull requests on the tracked repository.
Frequency: The ingestion job runs approximately once per hour.
Authentication: None. Harness Code is an internal service, so no connector and no credentials are needed.
Create a pull request ingestion
Ingestion is created automatically from your build webhooks. To create one by hand:
In the AI SRE left navigation, go to Integrations.
Open the PR Ingestions tab.
Click + New PR Ingestion.
In the Create New PR Ingestion dialog, under Select Git Provider, choose Harness Code.
Enter the Repository URL of the Harness Code repository, for example
https://app.harness.io/ng/account/ACCOUNT_ID/module/code/orgs/ORG_ID/projects/PROJECT_ID/repos/REPO_NAME.Click Create.

No connector selection is required, because Harness Code is an internal service.
Known limitation: missing commit SHA
For Harness Code pull requests, the ingested commitSha is always empty. The Harness Code API does not return the merge commit SHA to the ingestion job, so pull requests are stored without it.
COMMIT SHA IS NOT AVAILABLE FOR HARNESS CODE
Harness Code pull requests are ingested with their branch, PR number, title, merge timestamp, and author, but without a commit SHA. Correlation that relies on matching a build's commit SHA to a pull request does not apply to Harness Code. Pull requests still surface against deployments through service and version matching.
Verify pull request ingestion
Confirm the ingestion job is running and syncing pull requests:
Navigate to AI SRE, then select PR Ingestions (the tab next to Integrations).
Confirm an ingestion job exists for your Harness Code repository with a tracked branch and a recent sync timestamp.
After the next hourly sync, confirm merged pull requests appear against your deployments in Change Management.
Troubleshooting
Next steps
Go to Deploy Change Investigator to complete the setup.
Go to Configure GitHub or Configure Bitbucket to set up external source control.
Go to AI Agent RCA to understand how change detection works during incidents.
Last updated
Was this helpful?