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

Allow to pick a specific user from gh CLI to work in GH EMU scenarios #2204

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nfx
Copy link
Contributor

@nfx nfx commented Mar 21, 2024

Invoke gh auth token ... --user ... if the special parameter is added to provider conf. Otherwise gh auth token will give the token for the user that did last gh auth login command

Invoke `gh auth token ... --user ...` if the special parameter is added to provider conf. Otherwise `gh auth token` will give the token for the user that did last `gh auth login` command
@nfx
Copy link
Contributor Author

nfx commented Mar 22, 2024

@nickfloyd what should be the name for the provider attribute here and the default env var? will fix the linters after that

@kfcampbell
Copy link
Member

Hmm...I'm somewhat partial to gh_cli_user as it makes it clear the authentication is coming from the gh CLI in the normal scenario. Thoughts?

@nfx
Copy link
Contributor Author

nfx commented May 25, 2024

@kfcampbell this functionality is required when you have more than one user authenticated, eg EMU

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

Successfully merging this pull request may close these issues.

None yet

2 participants