Learn how to connect GitHub to Opal to manage access to your GitHub organization’s repositories and teams.Documentation Index
Fetch the complete documentation index at: https://docs.opal.dev/llms.txt
Use this file to discover all available pages before exploring further.
Supported resources
Opal does not yet support personal repositories. Opal also does not yet
support access management for GitHub users that are not members of your
organization.
| Resource | Read | Grant and revoke access | Available in Risk Center |
|---|---|---|---|
| GitHub teams | ✔️ | ✔️ | ✔️ |
| GitHub repositories | ✔️ | ✔️ | ✔️ |
| GitHub organization roles | ✔️ | ✔️ | ✔️ |
| GitHub organization owner role | ✔️ | ✔️ | ✔️ |
1. Create an Opal app
To set up a new connection, go to the Inventory page and select the + App button on the top right. Then select the GitHub tile.
2. Create the GitHub App
Ensure you have permissions to create a GitHub App in your GitHub
organization.
3. Optional: Link GitHub identities to Opal accounts
GitHub only makes the email address of a GitHub account available via its API if a user has elected to publicly display their email address. Thus, Opal needs another way to match GitHub identities with Opal accounts. If your organization does not use SAML SSO, each user must link their GitHub account to their Opal account. If you’ve enabled SAML SSO ingestion, users can still manually link GitHub identities, but SAML usernames will take precedence. For security reasons, we ask users to log in to both Opal and GitHub to link their accounts.For the following steps, the GitHub account you wish to integrate must have
a verified email address corresponding to your Opal email address.
- In the bottom left, click your User > Account Settings.

- Click Identities > Connect next to the GitHub integration.

- You will be redirected to a GitHub page, which will prompt you to log into your GitHub account.
Programmatically map GitHub usernames
If your end users cannot manually link accounts—e.g., if you’re connecting service accounts to Opal—you can alternatively set the GitHub username as an attribute in your IdP and import it as a user attribute.

