cli/pkg/cmd/auth/gitcredential
Mislav Marohnić 9bf1668b3f Fix auth git-credential when the token comes from environment
When a token such as GH_TOKEN is set through environment variables and
`~/.config/gh/hosts.yml` is non-existent, the `auth git-credential get`
command used to fail due to missing username.

Since GitHub username isn't at all required for token authentication,
use the `x-access-token` faux username instead of trying to obtain one
from a config file.
2021-02-19 15:37:11 +01:00
..
helper.go Fix auth git-credential when the token comes from environment 2021-02-19 15:37:11 +01:00
helper_test.go Fix auth git-credential when the token comes from environment 2021-02-19 15:37:11 +01:00