> For the complete documentation index, see [llms.txt](https://docs.tessl.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tessl.io/distribute/connect-tessl-to-github.md).

# Connect Tessl to GitHub

Connect a GitHub account or organization so Tessl can scan its repositories and report Context and Findings in your Organization.

## Enable the SCM connection

You need the Organization admin role to manage SCM connections.

* Select your Organization from the dropdown at the top of the sidebar.
* Open **Settings**, then **Integrations**.
* Under **Source control**, select **Add** next to GitHub.<br>

  <div align="left"><figure><img src="https://1171143958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXbWzspFdXV0HNujz6gJ9%2Fuploads%2Fgit-blob-3092c9fe6a083932f6046f6e71c9b08c743406d0%2Fgithub-integration-add.png?alt=media" alt="" width="563"><figcaption></figcaption></figure></div>
* Select the GitHub organization or account to add the Tessl App to. Accounts that already have Tessl will not have the option.

  <div align="left"><figure><img src="https://1171143958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXbWzspFdXV0HNujz6gJ9%2Fuploads%2Fgit-blob-c8d91f35d8ad85ba600dca98b56e9fc3313b159c%2Fgithub-app-install-location.png?alt=media" alt="" width="563"><figcaption></figcaption></figure></div>
* Decide if you want to authorize Tessl on specific repositories or provide access to everything. Once selected, click *Install & Authorize*

  <div align="left"><figure><img src="https://1171143958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXbWzspFdXV0HNujz6gJ9%2Fuploads%2Fgit-blob-ba3ad5c0a980e9df705d45c241b23c4b2b3414f6%2Fgithub-app-install-authorize.png?alt=media" alt="" width="375"><figcaption></figcaption></figure></div>
* If the required permissions are available, the Tessl integrations screen shows **Connected**.

  <div align="left"><figure><img src="https://1171143958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXbWzspFdXV0HNujz6gJ9%2Fuploads%2Fgit-blob-dcd22b7164c99f538cf57dfda7fa3ebff57b8e7e%2Fgithub-integration-connected.png?alt=media" alt="" width="375"><figcaption></figcaption></figure></div>

After the connection is created, Tessl may start a first scan of the repositories in scope. The connection can show **Connected** before a scan starts or finishes, or when scan provisioning is unavailable. Open the connection to check its scan status, retry a failed scan, or set its **Scan scope**.

## Review Context and Findings

When scan analysis succeeds and your Organization has an active workspace, Tessl starts indexing the repository skills it found. Without an active workspace, the scan still completes and its Context remains available, but indexing does not start. There is no private-indexing opt-in or manual first-party approval step.

Indexing, review, and security scoring run as separate background work. A skill can appear in **Context** before its scores are available, and scoring can fail without removing the Context item. Some advanced Finding details depend on your Organization's plan.

Select your Organization and open **Context** to browse the skills and configuration Tessl observed. Open **Findings** to inspect issues from the latest account scans. Organization members can view both pages. Organization admins can ignore or restore Findings and manage scan settings. See [Roles](/administrators/roles.md).

## Add or remove Repositories when *Only Select Repositories* are in use.

If you wish to later add repositories, you will navigate to the Tessl app in GitHub:

* Click *Configure* next to the Tessl App.

  <div align="left"><figure><img src="https://1171143958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXbWzspFdXV0HNujz6gJ9%2Fuploads%2Fgit-blob-00490074f54c2655e7deb6e093a7ffb04dbfaf55%2Fimage%20(21)%20(1).png?alt=media" alt=""><figcaption></figcaption></figure></div>
* Select or remove repositories as needed.

  <div align="left"><figure><img src="https://1171143958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXbWzspFdXV0HNujz6gJ9%2Fuploads%2Fgit-blob-6953646d89a0786f8a3d215559d9b70a6de72deb%2Fimage%20(22)%20(1).png?alt=media" alt="" width="375"><figcaption></figcaption></figure></div>
* Click *Save*.<br>

  <div align="left"><figure><img src="https://1171143958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXbWzspFdXV0HNujz6gJ9%2Fuploads%2Fgit-blob-ed944a27dbd5f678c59ec6cb3a4edfa40141af5b%2Fimage%20(23)%20(1).png?alt=media" alt="" width="81"><figcaption></figcaption></figure></div>

## Troubleshooting

What if the option to **Add** the connection is not available? Confirm that you are an Organization admin, or ask an Organization admin to set up the connection. See [Roles](/administrators/roles.md).

<div align="left"><figure><img src="https://1171143958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXbWzspFdXV0HNujz6gJ9%2Fuploads%2Fgit-blob-e688ae64daf52e8e2fe477f301c0662f72781849%2Fimage%20(25)%20(1).png?alt=media" alt="" width="375"><figcaption></figcaption></figure></div>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.tessl.io/distribute/connect-tessl-to-github.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
