> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ravenna.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Setup

> Connect GitHub Access to Ravenna by installing the Ravenna GitHub App on your organization, and optionally match members to Ravenna users with User Mapping.

Connect **GitHub Access** by installing the Ravenna GitHub App on your GitHub organization. To sync repository docs into your knowledge base instead, see [Knowledge](https://docs.ravenna.ai/integrations/github/knowledge.md).

## Prerequisites

* Ravenna organization admin permissions.
* Owner of the GitHub organization, to install the app without approval.

## Connect GitHub Access

**1. Open integrations**

Go to **Settings > Integrations** and select **GitHub Access**.

**2. Install the GitHub App**

Click **Install GitHub App**. In GitHub, pick the organization to connect and choose its repositories.

**3. Authorize Ravenna**

Authorize Ravenna when GitHub asks. GitHub sends you back to Ravenna, and the first sync starts.

The integration is named after your organization, for example **GitHub Access (acme)**.

If you aren't an owner of the GitHub organization, GitHub sends your install request to the owners and Ravenna shows **Install request sent**. Connect GitHub Access again once an owner approves it.

### Permissions

| Permission | Why Ravenna needs it |
| - | - |
| **Organization members: Read and write** | Read members and their roles, and manage team membership |
| **Repository metadata: Read** | List the repositories the app is installed on |

## Match members with another access provider

If another access provider, such as Okta, stores each person's GitHub username, use it to link GitHub members to Ravenna users. This works even when members have no matching email in GitHub.

**1. Open the settings**

Go to **Settings > Integrations** and open **GitHub Access**.

**2. Set User Mapping**

Under **User Mapping**, **GitHub Field** is **Handle**. Pick the **Access Provider** that holds GitHub usernames, then the **User Field** that stores them, such as a custom Okta attribute.

**3. Save**

On the next sync, Ravenna matches each member's GitHub username to that field, ignoring case, and links the member to that user.

**Access Provider** lists your other connected access providers. **User Field** lists the provider's profile fields and the custom attributes it reports. Pick both or neither. To turn mapping off, clear both.

> [accordion] When several users claim the same username
>
> If users with different emails have the same GitHub username in that field, Ravenna skips the mapping for that member and tries the next way to [find their email](https://docs.ravenna.ai/integrations/github/overview#what-github-access-syncs).

## Disconnect

Disconnecting GitHub Access also uninstalls the Ravenna GitHub App from your GitHub organization. If Ravenna can't uninstall it, uninstall the app in GitHub under **Organization settings > GitHub Apps**, then disconnect again.

## Troubleshooting

> [accordion] The Ravenna GitHub App is no longer installed on this organization
>
> Someone uninstalled the app in GitHub. Reconnect GitHub Access to reinstall it.

> [accordion] The Ravenna GitHub App is suspended on this organization
>
> Unsuspend the app in your GitHub organization settings.

> [accordion] The Ravenna GitHub App is missing the Members: Read and write permission
>
> Accept the pending permission request in your GitHub organization settings.

> [accordion] This person has no linked GitHub account
>
> Sync hasn't matched the person to a GitHub member. Add them to the organization, for example with the **Invite Member** [workflow action](https://docs.ravenna.ai/integrations/github/workflows.md), then let the next sync match them.

> [accordion] Some members aren't linked to Ravenna users
>
> Ravenna found no email for them. See [how Ravenna finds a member's email](https://docs.ravenna.ai/integrations/github/overview#what-github-access-syncs). Set up [User Mapping](#match-members-with-another-access-provider), turn on SAML SSO or verify your domain in GitHub, or ask members to set a public email.


## Related topics

- [Setup](https://docs.ravenna.ai/integrations/okta/setup/overview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.