Skip to main content

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.

Steven Silverstone
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

  1. Create a fine-grained Personal Access Token in GitHub.
  2. Scope the token to the relevant organization.
  3. Ensure the token includes access to:
    • Organization Copilot metrics (read)
  4. Copy and securely store the token.
Fine-grained tokens allow more precise access control compared to classic PATs.

Step 3 — Connect Copilot in LinearB

  1. Go to Settings → Company Settings → AI Tools → GitHub Copilot.
  2. Paste the token.
  3. Select the organization scope.
  4. 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

GitHub Copilot Troubleshooting

How did we do?

Configuring Cursor

Configuring GitHub Copilot (PAT Classic)

Contact