Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Freed-Wu opened this issue Jun 15, 2023 · 6 comments
Open

Comments

@Freed-Wu
Copy link

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

https://Freed-Wu:[email protected]

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

@lilydjwg
Copy link
Owner

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

@Freed-Wu
Copy link
Author

It can work for me:

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

@lilydjwg
Copy link
Owner

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

@Freed-Wu
Copy link
Author

@lilydjwg
Copy link
Owner

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

@lilydjwg
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants