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 using OAuth for billing data. Optionally, after you finish the billing connection, you can install the DoiT GitHub App to enable enriched data such as Copilot seat assignments, Copilot usage metrics, and GitHub Advanced Security. See Enable enriched data with the GitHub App.
Connect your GitHub account
Step 1: Start the connection wizard
-
Sign in to Cloud Intelligence, select Data ingestion and integrations > Integrations from the top navigation mega menu.
-
Search for GitHub in the integrations catalog.
-
Select Connect + on the integration card.
Step 2: Choose your connection level
-
Select the Connection Level:
- Organization — connect a single GitHub organization.
- Enterprise — connect an entire GitHub enterprise account.
-
Enter your Org or Enterprise Slug. This is the URL-friendly name of your organization or enterprise (e.g.
my-company).TipYou can find your organization slug in the URL when viewing your GitHub organization:
github.com/my-company. For enterprise accounts, navigate togithub.com/enterprises/my-company.
Step 3: Authorize with OAuth
-
Select Connect with GitHub to begin the OAuth flow. You will be redirected to GitHub to sign in (if not already signed in) and grant DoiT access to your billing data.
-
Review the requested permissions and select Authorize.
DoiT requests the following OAuth scopes:
admin:org— read organization billing and usage data.read:enterprise— read enterprise billing data (for enterprise connections).
After authorization, you are redirected back to Cloud Intelligence.
Step 4: Test and save
-
Select Test connection to verify DoiT can access your GitHub billing data.
-
If the test is successful, select Save to complete the setup.
If the test fails or you need further assistance, please open an expert inquiry.
Upon initial connection, DoiT ingests up to 90 days of historical billing data. The import process can take a few hours. You'll receive an email when the data is available in Cloud Analytics.
Optional: Enable enriched data with the GitHub App
For deeper visibility into Copilot usage and GitHub Advanced Security, install the optional DoiT GitHub App after you complete the billing connection.
The GitHub App provides access to:
- Copilot seat assignments: See which users have Copilot licenses.
- Copilot usage metrics: Track adoption and activity.
- GitHub Advanced Security: View GHAS committer counts per repository.
-
Sign in to Cloud Intelligence, select Data ingestion and integrations > Integrations from the top navigation mega menu.
-
Search for GitHub in the integrations catalog.
-
Select Manage on the integration card.
-
In the connections table, locate the Supplementary data column for the connection you want to enrich.
-
Select Connect to start the GitHub App installation flow.
-
Complete the installation and approval steps on GitHub. When you return to DoiT, the Supplementary data column displays Connected.
Data refresh
DoiT refreshes your GitHub billing data every 6 hours. Billing data typically becomes available within 24–26 hours of being generated by GitHub.
Reporting dimensions
Once connected, GitHub billing data maps to the following standard Cloud Analytics dimensions:
| Cloud Analytics dimension | GitHub value | Example |
|---|---|---|
| Provider | GitHub | GitHub |
| Billing Account | Organization or enterprise name | my-company |
| Project/Account ID | Repository or organization name | my-company/api-service |
| Service | GitHub product name | actions, copilot, packages, codespaces |
| SKU | Usage SKU | actions_linux_4_core, copilot_business |
In addition to standard dimensions, the following GitHub-specific labels are available:
| Label | Description |
|---|---|
| Organization | The GitHub organization name |
| Repository | The repository associated with the cost |
| User | The user associated with the usage (when available) |
| Product | GitHub product (e.g. Actions, Copilot, Packages, Codespaces) |
| Model | The AI model used (for Copilot premium requests) |
To filter Cloud Analytics reports to only Copilot spending, use the Product label with the value Copilot.
Delete your GitHub connection
-
Sign in to Cloud Intelligence, select Data ingestion and integrations > Integrations from the top navigation mega menu.
-
Search for GitHub in the integrations catalog.
-
Select Manage on the integration card.
-
Select the kebab menu (⋮) at the rightmost end of the GitHub account you want to remove and select Delete.
-
Select Delete to confirm.
Removing the integration also revokes the OAuth token and uninstalls the GitHub App (if installed). All previously imported GitHub cost data will be removed from Cloud Intelligence.