Skip to main content

How to connect Harness Code to Coworker

Connect Harness Code so Coworker can see your repositories and code activity. Harness Code is a per-user (individual) connection using personal access tokens.

What Coworker can do with Harness Code

  • Index the repositories your Harness identity can reach

  • Bring code and repository activity into answers alongside your other connected sources

The access model mirrors the GitHub connector: public repos are workspace-visible, private repos are restricted to their members. Repository access in Harness equals repository visibility in Coworker.

Before you start

  • You need a Harness personal access token (PAT)

  • You may need your Harness account identifier if it is not encoded in the token

  • Harness Code is a beta connector — your admin may need to enable beta connectors for your workspace

Connect as a member

  1. Create a PAT in Harness.

  2. Go to the Work page in Coworker and click Data Sources.

  3. Select Harness Code and paste your PAT.

Connect as an admin

There is no workspace-wide Harness Code connection. An admin connects their own account like any member, or blocks the source from Source Settings.

Good to know

  • A valid PAT paired with the wrong account ID fails the identity check.

  • PATs have separate rate budgets, so more connected users improves both coverage and throughput.

  • Private repositories stay absent until at least one connected user can reach them.

Did this answer your question?