-
Hi, so I was advised by the tool to use a personal authentication token instead of credentials. So I authenticated and the status says I am authed over HTTPS with the PAT. Yet, when I call Is there some security reason why to ask for another PAT, when I am already logged in? Why does it not use my current authentication instead? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
I'm sorry that this is confusing! When your authenticate with GitHub CLI (e.g. via What you can do to remedy this:
Hopefully with future versions of GitHub CLI you will not have to worry about this nor run any commands manually. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
two years after a workaround has been identified, we are still using workarounds |
Beta Was this translation helpful? Give feedback.
I'm sorry that this is confusing!
When your authenticate with GitHub CLI (e.g. via
gh auth login
), you've authenticated against the GitHub API, but that doesn't 100% ensure that all your git traffic is authenticated. GitHub API and git traffic to GitHub can use separate methods of authentication, and this isn't always clear to users. We aim to improve that in #2944What you can do to remedy this:
When doing
gh auth login
, choose "Yes" forAuthenticate git with your GitHub credentials?
; orRun this locally to configure git authentication: