Format of GH_PAT value #234
-
Hi folks. I just want to clarify the format of the GH_PAT input value. Should it include the username? So it would be I ask because I recently saw an issue where a workflow was throwing this error:
Which makes sense as git, when performing a clone, is attempting to prompt for a password. Including the username in the GH_PAT variable switched to a different error, an authentication failure, which I imagine is because the PAT is expired or has otherwise been revoked (something I need to look into anyway, but that's for another day). I wanted to raise this before I change our workflow configurations in case I'm missing something obvious somewhere. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The |
Beta Was this translation helpful? Give feedback.
The
GH_PAT
should be set to the value you get from GitHub after generating a personal access token in their UI. No need to prepend it with your username.