Connect GitHub
GitHub is the world's leading platform for software development, version control, and collaboration. The GitHub integration imports your organization or enterprise billing data — including GitHub Actions, Copilot, Packages, and more — into Cloud Intelligence so you can analyze GitHub costs in Cloud Analytics.
Prerequisites
Before you begin, make sure you have the following:
-
A GitHub organization or enterprise account with Owner permissions.
-
A DoiT account with the Billing Profiles Admin permission.
Connection overview
The GitHub integration supports two connection levels:
| Connection level | Scope | Best for |
|---|---|---|
| Organization | A single GitHub organization | Teams managing one organization |
| Enterprise | An entire GitHub enterprise (includes all organizations) | Enterprises with multiple organizations |
DoiT connects to GitHub with an OAuth app. The OAuth connection is the only required part and covers billing data, Copilot usage metrics, and member identities. Optionally, after you finish the OAuth connection, you can install the DoiT GitHub App to add Copilot seat assignments and GitHub Advanced Security data. See Required permissions and Enable enriched data with the GitHub App.
Required permissions
GitHub roles
The GitHub user who selects Connect with GitHub must be:
-
Organization connection: an Owner of the organization.
-
Enterprise connection: an Owner of the enterprise.
GitHub restricts the billing and Copilot usage metrics APIs to these roles. For example, GitHub documents the organization usage reports as available to an administrator of the organization, and the organization Copilot usage metrics to organization owners. See the GitHub REST API documentation for billing usage and Copilot usage metrics.
Member identities (GitHub login and verified-domain email) are returned for an organization only when the connecting user is an owner of that organization. For an enterprise connection, the user must be an owner of each organization whose member emails you want in DoiT.