Can nvchecker use `~/.git-credentials` to get github token by default
Freed-Wu opened this issue · 6 comments
Freed-Wu commented
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.
lilydjwg commented
That's a different kind of token. Did you check whether it works or not?
Freed-Wu commented
It can work for me:
[xilinx-cmake]
source = "github"
use_latest_tag = true
github = "Xilinx/cmakeModules"
token = "gho_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
lilydjwg commented
Is there any documentation about ~/.git-credentials
?
lilydjwg commented
There is no mention of ~/.git-credentials
in that doc. I'll try to figure out later myself.
lilydjwg commented
No, no ~/.git-credentials
is created. Instead, ~/.config/gh/hosts.yml
is created.