-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Support freedesktop.secrets (e.g., GNOME Keyring) #2356
Comments
Hub authentication is for GitHub API and sometimes uses different credentials (especially if you have 2FA enabled on your account) than git credentials, so the two are kept separate, for now. #1644 (comment) #1217 I realize that this is poor user experience, sorry about that! 🙇 |
@mislav Thanks for the quick response! However, a few comments:
|
I've referenced an existing open issue #1217 which proposes a feature that hub implements storing of credentials using a git credential helper. I've closed this one as duplicate.
Unfortunately, hub doesn't support any secure credential management. It asks you for your GitHub username & password, immediately uses those to exchange them for a Personal Access Token, then stores that token in Alternatively, you may provide GITHUB_TOKEN via environment variable. You can populate that variable by reading from some secure credential store. |
Ok, thanks! |
I'm using GNOME Keyring to store my GitHub credentials. When I run
git pull
for a private GitHub repository, git uses the credentials from the keyring. I have the following configuration in~/.gitconfig
to make git usefreedesktop.secrets
:However, when I run something hub-specific like
hub pr list
for the same private repository, my username and password are asked on the command-line. If needed, they should be asked by my keyring app and re-used from there. Why is hub working differently than git in this matter?The text was updated successfully, but these errors were encountered: