Skip to content
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

Directly pass Github Token #316

Open
alanfzf opened this issue Sep 7, 2024 · 2 comments
Open

Directly pass Github Token #316

alanfzf opened this issue Sep 7, 2024 · 2 comments

Comments

@alanfzf
Copy link

alanfzf commented Sep 7, 2024

Is there a way to directly pass the github token? to this plugin, to avoid the use :Copilot auth? i tried to use the secret_key property in server options, but i don't know if its correct...

@AntoineGS
Copy link
Collaborator

Reviewing the LSP doc here this does not seem like a possibility.
Did you see this in another implementation of the Copilot LSP?

@alanfzf
Copy link
Author

alanfzf commented Mar 20, 2025

Reviewing the LSP doc here this does not seem like a possibility. Did you see this in another implementation of the Copilot LSP?

I haven't seen another implementation that allows specifying tokens. I just thought that, since the process for authenticating with the GitHub CLI app is very similar to the LSP one, we could somehow achieve the following:

echo $GIT_TOKEN | gh auth login --with-token

EDIT: Relevant issue github/copilot-language-server-release#3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants