Skip to content

Alternate environment variable for PAT #348

@jonathanmorley

Description

@jonathanmorley

Describe the feature or problem you'd like to solve

When I provide a fine grained PAT using GH_TOKEN or GITHUB_TOKEN, and the LLM wants to run gh, it uses the token I provided for copilot.

Proposed solution

Introduce a new environment variable (e.g. COPILOT_GH_TOKEN) that can be provided, and would be used by copilot CLI, but not by the gh CLI.

Example prompts or workflows

No response

Additional context

No response

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions