Connect GitHub Copilot Enterprise on ghe.com
Connect GitHub Copilot Enterprise Cloud with data residency to LinearB when your enterprise uses a custom ghe.com subdomain.
Overview
Connect GitHub Copilot Enterprise to LinearB when your organization uses
GitHub Enterprise Cloud with data residency and is hosted on
a custom *.ghe.com subdomain.
This configuration uses the Enterprise GitHub Copilot connection type in LinearB but directs Copilot metrics requests to your enterprise-specific GitHub API environment.
<your-subdomain>.ghe.com. For standard GitHub-hosted
Enterprise Cloud environments, see
Connect GitHub Copilot Enterprise
.
Data Provided by GitHub Copilot Enterprise
Depending on the data returned by GitHub, the integration can provide:
- Enterprise and organization-level Copilot adoption
- Active Copilot users
- Code suggestions and acceptances
- Accepted lines of code
- Adoption trends across enterprise organizations and teams
Adoption and accepted-lines data appears in AI Analytics.
Historical Data and Collection Cadence
- Up to 90 days of historical Copilot data can be backfilled during the initial connection.
- Activity outside the available initial backfill window does not appear in LinearB.
- After the initial connection, Copilot data is updated daily.
Before You Begin
Verify that you have:
- Access to AI Tools settings in LinearB.
- GitHub Enterprise owner or equivalent administrative access.
-
A GitHub Enterprise Cloud environment hosted on a custom
*.ghe.comdomain. - Copilot usage metrics enabled for the Enterprise and relevant organizations.
-
A token created in the
*.ghe.comenvironment with access to the required Copilot metrics. - Access to the Enterprise organizations you want LinearB to include.
Confirm the Enterprise Domain and API URL
Your GitHub Enterprise Cloud domain uses the following format:
https://<your-subdomain>.ghe.com
Its corresponding API base URL is:
https://api.<your-subdomain>.ghe.com
Replace <your-subdomain> with your organization’s GitHub
Enterprise subdomain.
github.com endpoints do not represent the same tenant.
Enable Copilot Usage Metrics
Confirm that Copilot usage metrics are enabled in the GitHub Enterprise and
organization settings for your *.ghe.com tenant.
If Copilot usage metrics are not enabled:
- LinearB cannot retrieve Copilot usage data.
- The integration may return a 403 authorization error.
- Copilot metrics do not appear in LinearB.
Prepare the Enterprise Token
Create the authentication token within your *.ghe.com tenant.
Confirm that:
- The token is valid and has not expired.
- The token owner can access the GitHub Enterprise account.
- The token can read Copilot metrics for the required Enterprise scope.
- The token can access the organizations you want to include.
- Any required Enterprise or organization approval has been completed.
github.com environment may not authenticate against your
*.ghe.com tenant. Create and authorize the token in the correct
Enterprise environment.
Connect GitHub Copilot Enterprise in LinearB
- Go to Settings → Company Settings → AI Tools → Integrations.
- Click Add New.
- Select GitHub Copilot.
- Click Continue.
- Select Enterprise.
- Click Continue.
- Enter the requested GitHub Enterprise token.
-
Enter the Enterprise name and custom
*.ghe.comsubdomain where requested. - Configure the Enterprise or organization scope displayed in LinearB.
- Click Connect.
LinearB validates the token, Enterprise environment, and Copilot permissions. When validation succeeds, the Enterprise integration appears in the Connected list.
Verify the Connection
- Open Settings → Company Settings → AI Tools → Integrations.
- Select Connected.
- Select the GitHub Copilot Enterprise integration.
- Confirm that its status is Connected.
- Review the configured Enterprise environment and organization scope.
- Allow time for the initial historical import and daily processing.
- Open AI Analytics and confirm that Copilot data appears.
Edit the Enterprise Integration
Use Edit mode to replace the token or update the Enterprise name and custom subdomain.
- Open Settings → Company Settings → AI Tools → Integrations.
- Select Connected.
- Select the GitHub Copilot Enterprise integration.
- Under Main Settings, click Edit.
- Update the available token, Enterprise name, or custom subdomain settings.
- Click Save changes to apply the update or Cancel to discard it.
What happens to historical data?
Editing the Enterprise integration does not delete previously collected Copilot metrics.
- Token-only changes are picked up during scheduled collection.
- Changing the Enterprise name or custom subdomain can trigger recollection of up to 90 days of recent data.
- Recollected records are updated in place and are not counted twice.
- Data older than the recollection window remains unchanged.
- If the integration is pointed to another Enterprise, metrics previously collected from the original Enterprise remain in LinearB.
Disconnect or Reconnect
Disconnecting GitHub Copilot Enterprise stops new data collection and moves the integration to the Disconnected list. Previously collected data is preserved.
Disconnect the integration
- Open Settings → Company Settings → AI Tools → Integrations.
- Select Connected.
- Select the GitHub Copilot Enterprise integration.
- Click Disconnect.
- Confirm the action.
Reconnect the integration
- Open Settings → Company Settings → AI Tools → Integrations.
- Select Disconnected.
- Select the GitHub Copilot Enterprise integration.
- Click Reconnect.
-
Enter a replacement token created in the correct
*.ghe.comtenant if the saved token is no longer valid. - Complete validation to restore the integration.
LinearB validates the token and saved Enterprise configuration before restoring the connection.
*.ghe.com tenant and enter it
during the reconnect flow. You do not need to create another Enterprise
integration.
Learn more:
Troubleshooting
403 Authorization Error
- Confirm that Copilot usage metrics are enabled.
-
Verify that the token was created in the correct
*.ghe.comtenant. - Confirm that the token can read Copilot metrics for the required scope.
- Verify that required Enterprise or organization approval has been completed.
Connection Error
- Confirm that the token is valid and has not expired or been revoked.
- Verify that the selected connection type is Enterprise.
- Confirm that the Enterprise subdomain is correct.
- Verify that the integration uses the correct Enterprise API environment.
- Confirm that the token can access the selected organizations.
- Select the integration, click Edit, correct the configuration, and click Save changes.
Enterprise Domain Not Found
-
Confirm that the domain uses the format
<your-subdomain>.ghe.com. - Verify the exact subdomain with your GitHub Enterprise administrator.
-
Confirm that you are not using a standard
github.comURL for a data-residency tenant.
Expected Organizations Are Missing
-
Confirm that the organizations belong to the connected
*.ghe.comEnterprise. - Verify that the token owner can access the missing organizations.
- Review the Enterprise or organization scope configured in LinearB.
No Copilot Data Appears
- Allow time for the initial import and daily processing.
- Confirm that developers are actively using Copilot in the included organizations.
- Verify that GitHub users are mapped to the appropriate LinearB users.
- Confirm that the expected organizations and repositories are represented in LinearB.
Learn more:
Known Limitations
-
This flow applies only to GitHub Enterprise Cloud environments hosted on
*.ghe.com. - Copilot data is updated daily, not in real time.
- Historical activity outside the available initial backfill window is not imported during the first connection.
- Available metrics depend on the data returned by GitHub.
- Model, token, and estimated-consumption data is not currently available.
Related Articles
How did we do?
Connect GitHub Copilot Enterprise
Connect GitHub Copilot using a classic token