Public Beta. This content is updated as features change.
Connect the GitHub App
An Owner or Admin connects the Harnessforce GitHub App. Every permission is read-only, and past pull requests, CI, and reviews start coming in once you assign a repository to a project. Installing on a GitHub organization needs approval from an owner of that organization.
/plugin marketplace add lambda-script/harnessforce-agent
/plugin install harnessforce@harnessforce-agent
/harnessforce:setupThe Harnessforce GitHub App reads pull requests, CI, and reviews so Harnessforce can link them to sessions and issues. A workspace Owner or Admin connects it, and you choose the target repositories on GitHub's installation page. Every permission the app requests is read-only.
This page is written so that people outside your workspace who receive a request can check the permissions and steps too.
Who can connect
Workspace Owners and Admins can connect the GitHub App, start an installation, and cancel a pending request. Members and Viewers see a note on the Integrations page that Owners and Admins manage the connection. Import progress and sync status are in Connections, which only Owners and Admins can open.
You can connect only if the GitHub account you authorize is one of these:
- For a GitHub organization: an admin of that organization (a member with the
adminrole). - For a personal account: that account itself.
Otherwise Harnessforce shows "You are not allowed to connect this installation. Authorize with an organization admin, or with the GitHub account of the user account itself." and connects nothing.
Steps
- On the Integrations page in Harnessforce, press "Install GitHub App" for the GitHub App.
- Enter the GitHub account (organization or user). If the account doesn't exist, Harnessforce shows "The GitHub account was not found."
- On GitHub's installation page, choose the target repositories. Harnessforce reads only the repositories you choose. You can add or remove repositories later on GitHub, and Harnessforce picks up the change in its check every 15 minutes.
- Authorize on GitHub's authorization page so Harnessforce can verify the installation. You then return to the Integrations page, and the connection becomes Active.
If the app is already installed on GitHub, use "Connect an existing installation" to connect without the installation page. This also lets you finish a connection you left partway through.
While you wait for an organization owner's approval
Installing on a GitHub organization needs approval from an owner of that organization. If you install with an account that isn't an organization admin, GitHub asks the organization's owners to approve, and the connection waits for approval.
While it waits, the Integrations page shows the status "Pending approval" and this message:
Awaiting approval from an organization admin. If it has been approved, finish with "Connect an existing installation". If it was declined, cancel the request.
- If it's approved: Finish with "Connect an existing installation." When Harnessforce can confirm the approval, it shows "An organization admin approved the installation. Finish the connection with "Connect an existing installation"."
- If it's declined: Press "Cancel request." GitHub doesn't notify Harnessforce of a decline, so the pending status stays until you cancel.
Permissions
The GitHub App requests Issues, Pull requests, Checks, Actions, Metadata, and Members, and every one of them is read-only. Members is an organization permission; the rest are repository permissions.
- Members: Used when connecting, to check that the authorizing account is an organization admin.
- Contents: Not requested. Contents is the permission that can read a repository's source code.
Harnessforce reads pull requests, reviews, check runs, workflow runs, pull request commits, and, if you choose them as an issue source, GitHub issues. It does not read releases, or commits that aren't part of a pull request.
What you see once you connect
Harnessforce records pull requests, CI runs, reviews, and pushes only for repositories that belong to a project, meaning the repository has a default project. Activity in a repository that doesn't belong to a project isn't stored. In the checklist on Home, choose "Create a project", then "Assign repositories" to assign repositories to it.
Once a repository has a default project, Harnessforce starts importing its GitHub history without waiting for telemetry, and shows it as it comes in. Past pull requests with their CI and reviews, and people's activity on GitHub, appear as they are imported. Repositories without a default project aren't imported, and clearing the default project stops an unfinished import.
The import covers the 90 days before the repository was in the sync with a default project. Events older than your retention period aren't imported, so on Free, with 14-day retention, it covers 14 days. The Integrations page shows progress for each repository as a status, a percentage, and an estimated finish time. Imported past events don't trigger alerts.
How this affects importing past sessions
harnessforce import only imports past sessions from repositories that are connected to the GitHub App and assigned to a project, because Harnessforce stores only sessions from those repositories. Sessions from other repositories, and sessions outside a Git repository, never leave your machine.
If you ran /harnessforce:setup before connecting the GitHub App or assigning the repository to a project, you can still import them afterward. Restart Claude Code and run /harnessforce:setup again, or run harnessforce import. Sessions already imported aren't duplicated.
If you received a request
The message copied from "Ask someone" on the checklist step "Connect the GitHub App and choose repositories" includes this page's URL. Choose the target repositories on GitHub's installation page. The app requests only the read-only permissions listed under Permissions.
Read next
- Getting started: First steps by role
- Install: Set up Claude Code to send telemetry
- Linking sessions to issues: When pull requests and sessions link to an issue
- Troubleshooting: When past sessions aren't imported