cli / cli

GitHub’s official command line tool
https://cli.github.com
MIT License
37.13k stars 5.74k forks source link

gh auth saves plain text token, even though I have keyring #8954

Open 3f6a opened 6 months ago

3f6a commented 6 months ago

gh auth login stores credentials in plain text (at ~/.config/gh/hosts.yml).

However, I have keyring installed:

➜ keyring 
Usage: keyring [get|set|del] SERVICE USERNAME

Options:
  -h, --help            show this help message and exit
  -p KEYRING_PATH, --keyring-path=KEYRING_PATH
                        Path to the keyring backend
  -b KEYRING_BACKEND, --keyring-backend=KEYRING_BACKEND
                        Name of the keyring backend
  --list-backends       List keyring backends and exit
  --disable             Disable keyring and exit

Why aren't the credentials saved in the keyring?

I am on a headless Ubuntu machine, connected remotely by SSH.

➜  gh --version 
gh version 2.47.0 (2024-04-03)
https://github.com/cli/cli/releases/tag/v2.47.0
3f6a commented 2 months ago

Any updates here?

wolfthegreat commented 1 month ago

this is so stupid, even git has integrated credential manager with it's DPAPI