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

config get: support getting oauth_token from keyring #7124

Merged
merged 1 commit into from
Mar 9, 2023

Conversation

mislav
Copy link
Contributor

@mislav mislav commented Mar 9, 2023

Since we've advertised gh config get -h HOST oauth_token as an API for outside scripts and extensions to access the token, this should continue working even if the token was technically stored in keyring and not in the config file.

Followup to #7033, ref. https://github.com/cli/cli/pull/7023/files#diff-2ec875cc436fc5de2f3fa51bcef77080e23bbd84bb78d22d5f7ead9babd896cbR62

Since we've advertised `gh config get -h HOST oauth_token` as an API for outside scripts and extensions to access the token, this should continue working even if the token was technically stored in keyring and not in the config file.
@mislav mislav requested a review from a team as a code owner March 9, 2023 15:37
@mislav mislav requested review from vilmibm and removed request for a team March 9, 2023 15:37
@cliAutomation cliAutomation added this to Needs review 🤔 in The GitHub CLI Mar 9, 2023
@mislav mislav merged commit 71d9e0e into trunk Mar 9, 2023
The GitHub CLI automation moved this from Needs review 🤔 to Pending Release 🥚 Mar 9, 2023
@mislav mislav deleted the config-get-token-fix branch March 9, 2023 15:43
@github-actions github-actions bot moved this from Pending Release 🥚 to Done 💤 in The GitHub CLI Mar 9, 2023
@Chelo5479

This comment was marked as spam.

@Chelo5479

This comment was marked as spam.

@Chelo5479

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
The GitHub CLI
  
Done 💤
Development

Successfully merging this pull request may close these issues.

None yet

2 participants