Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@3f6a

Description

@3f6a

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggh-authrelating to the gh auth commandneeds-triageneeds to be reviewed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions