fix(ai): ignore generic GitHub tokens for Copilot auth

closes #4485
This commit is contained in:
Mario Zechner
2026-05-15 01:26:31 +02:00
parent 7ddc7dd1ec
commit a8af0b5e99
4 changed files with 49 additions and 2 deletions

View File

@@ -90,7 +90,7 @@ function hasVertexAdcCredentials(): boolean {
function getApiKeyEnvVars(provider: string): readonly string[] | undefined {
if (provider === "github-copilot") {
return ["COPILOT_GITHUB_TOKEN", "GH_TOKEN", "GITHUB_TOKEN"];
return ["COPILOT_GITHUB_TOKEN"];
}
// ANTHROPIC_OAUTH_TOKEN takes precedence over ANTHROPIC_API_KEY