Configuring GitHub Copilot (Fine-Grained PAT)
Track GitHub Copilot adoption and usage using a fine-grained Personal Access Token (PAT) with scoped organization access and more granular permission control.
Updated
by Steven Silverstone
Overview
LinearB integrates with GitHub Copilot using a fine-grained Personal Access Token (PAT) to track AI adoption and usage with scoped organization access.
This integration provides more granular permission control compared to classic PATs and is suitable for organizations that require tighter security policies.
Note: This integration may not yet be available in all environments.
Before You Begin
- LinearB role: Company Admin
- GitHub permissions: Organization owner/admin
- Copilot Usage Metrics policy enabled in GitHub
Step 1 — Enable Copilot Usage Metrics in GitHub
Ensure that Copilot usage metrics are enabled in your GitHub organization settings.
- Required to retrieve Copilot usage data
- Missing permission may result in 403 Unauthorized errors
Step 2 — Create a Fine-Grained Personal Access Token
- Create a fine-grained Personal Access Token in GitHub.
- Scope the token to the relevant organization.
- Ensure the token includes access to:
- Organization Copilot metrics (read)
- Copy and securely store the token.
Fine-grained tokens allow more precise access control compared to classic PATs.
Step 3 — Connect Copilot in LinearB
- Go to Settings → Company Settings → AI Tools → GitHub Copilot.
- Paste the token.
- Select the organization scope.
- Click Save.
Once connected, Copilot data will begin syncing and appear in AI dashboards.
Historical Data & Backfill
- Up to 90 days of data may be backfilled
- Data updates on a daily cadence
Where Copilot Data Appears
- AI Tools Usage
- AI Adoption
- AI Insights Dashboard
- AI Analytics Dashboard
Troubleshooting
How did we do?
Configuring Cursor
Configuring GitHub Copilot (PAT Classic)