cli/cli

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

3f6a opened this issue · 0 comments

3f6a commented

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