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

Add gh auth token #6324

Merged
merged 2 commits into from
Oct 4, 2022
Merged

Add gh auth token #6324

merged 2 commits into from
Oct 4, 2022

Conversation

nsmag
Copy link
Contributor

@nsmag nsmag commented Sep 22, 2022

Resolves #6277

Add gh auth token for printing the oauth token. The output is the same as gh config get oauth_token -h HOSTNAME except that gh auth token can handle the default hostname.

$ gh auth token
gho_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

$ gh config get oauth_token -h github.com
gho_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

$ gh config get oauth_token
could not find key "oauth_token"

@nsmag nsmag requested a review from a team as a code owner September 22, 2022 08:58
@nsmag nsmag requested review from vilmibm and removed request for a team September 22, 2022 08:58
@cliAutomation cliAutomation added the external pull request originating outside of the CLI core team label Sep 22, 2022
@cliAutomation cliAutomation added this to Needs review 🤔 in The GitHub CLI Sep 22, 2022
@Andrysiregar

This comment was marked as spam.

The GitHub CLI automation moved this from Needs review 🤔 to Needs to be merged 🎉 Oct 4, 2022
Copy link
Contributor

@vilmibm vilmibm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome, thank you!

@vilmibm vilmibm enabled auto-merge October 4, 2022 19:49
@vilmibm vilmibm merged commit 4a2ca15 into cli:trunk Oct 4, 2022
The GitHub CLI automation moved this from Needs to be merged 🎉 to Pending Release 🥚 Oct 4, 2022
@github-actions github-actions bot moved this from Pending Release 🥚 to Done 💤 in The GitHub CLI Oct 4, 2022
@nsmag nsmag deleted the auth-token branch October 5, 2022 15:20
@Becky1876
Copy link

THX

@S1983tt
Copy link

S1983tt commented Oct 11, 2022

4a2ca15

@Underseplecher

This comment was marked as spam.

tekumara added a commit to tekumara/ghapp-dagger that referenced this pull request Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external pull request originating outside of the CLI core team
Projects
No open projects
The GitHub CLI
  
Done 💤
Development

Successfully merging this pull request may close these issues.

Add a command to expose the auth token directly
7 participants