lilydjwg/nvchecker

Can nvchecker use `~/.git-credentials` to get github token by default

Freed-Wu opened this issue · 6 comments

after gh auth login, A ~/.git-credentials will be created:

https://Freed-Wu:gho_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX@github.com

Can we get github token from here?
It will be convenient to not need to write token to config toml.

That's a different kind of token. Did you check whether it works or not?

It can work for me:

[xilinx-cmake]
source = "github"
use_latest_tag = true
github = "Xilinx/cmakeModules"
token = "gho_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

Is there any documentation about ~/.git-credentials?

There is no mention of ~/.git-credentials in that doc. I'll try to figure out later myself.

No, no ~/.git-credentials is created. Instead, ~/.config/gh/hosts.yml is created.