-
Notifications
You must be signed in to change notification settings - Fork 265
docs: add Copilot license/inference troubleshooting section #17242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -260,6 +260,33 @@ Verify compilation succeeded. Compiled workflows include CLI installation steps. | |||||||||||||||||||||
|
|
||||||||||||||||||||||
| Use default (`engine: copilot`) or specify available model (`engine: {id: copilot, model: gpt-4}`). | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| ### Copilot License or Inference Access Issues | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| If your workflow fails during the Copilot inference step even though the `COPILOT_GITHUB_TOKEN` secret is configured correctly, the PAT owner's account may not have the necessary Copilot license or inference access. | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| **Symptoms**: The workflow fails with authentication or quota errors when the Copilot CLI tries to generate a response. | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| **Diagnosis**: Verify that the account associated with the `COPILOT_GITHUB_TOKEN` can successfully run inference by testing it locally. | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| 1. Install the Copilot CLI locally by following the [GitHub Copilot CLI documentation](https://docs.github.com/en/copilot/how-tos/use-copilot-agents/use-copilot-cli). | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| 2. Export the token as an environment variable: | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||
| export COPILOT_GITHUB_TOKEN="<your-github-pat>" | ||||||||||||||||||||||
| ``` | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| 3. Run a simple inference test: | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||
| copilot -p "write a haiku" | ||||||||||||||||||||||
|
Comment on lines
+275
to
+282
|
||||||||||||||||||||||
| ```bash | |
| export COPILOT_GITHUB_TOKEN="<your-github-pat>" | |
| ``` | |
| 3. Run a simple inference test: | |
| ```bash | |
| copilot -p "write a haiku" | |
| ```bash wrap | |
| export COPILOT_GITHUB_TOKEN="<your-github-pat>" |
-
Run a simple inference test:
copilot --prompt "write a haiku"
Copilot
AI
Feb 20, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This section lists “quota errors” as a symptom, but the conclusion says failures mean the token owner “does not have a valid Copilot license or inference access.” Quota exhaustion (monthly premium requests) can also cause inference failures even with a valid license. Consider updating the diagnosis/conclusion to cover both cases (license/inference access vs. quota exceeded) and point to where users can check Copilot usage/billing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The TIP suggests verifying the token owner has an active Copilot license, but inference failures at runtime can also be caused by exhausted premium-request quota. Consider mentioning quota as another common cause here (or wording this as “license/inference access and available quota”) to better match the linked troubleshooting section and user expectations.