-
Notifications
You must be signed in to change notification settings - Fork 6
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
fatal: could not read Username for 'https://github.com': No such device or address
#6
Comments
Hi @paw-lu, Normally, this class of errors happens when authorization fails on remote operations. Hence a question: Is (1) If no, then probably you wanted to use (I may be wrong as I've seen somewhere (2) If yes, then you may want to check your PAT permissions and expiration date. Feel free to reflecting on the above. I will fork your test repo and run a couple of experiments to test hypotheses I have. |
Absolutely nothing to be sorry about!
Yes. It's not an alias though, it was a token I generated. Why use it instead of
Checked!
% git push https://${{ secrets.GH_TOKEN }}@github.com/user/repo.git Actually the only way I could figure out to use the token for authentication for push actions was to modify
Yeah go for it! Just be aware that the repo has changed quite a bit since then, and I linked to a specific hash: 75de3623b91773c2dc0a3da091913b1fc695edbb |
@paw-lu looks like I am failing at resolving this. This is above my qualifications and knowledge of git and github fundamentals. What I did: I set, iteratively, git credentials explicitly (using custom No combination worked. Interestingly, as soon as I am trying to push changes to the main repo (i.e. the one that hosts the workflow) it goes smoothly. I am run out of the ideas. I could use some help here. In case you have any interest in what's been done code-wise:
|
Yeah this is consistent with my own testing. To be clear, I was able to eventually get it to work by adjusting the remote address for But this is the only solution I was able to come up with. |
I'm also seeing this issue, any idea what to do? |
Hi there, I'm facing the same problem.
|
Trying to use this action to authenticate git so it can push to main on a remote branch:
But on step
Push
I getfatal: could not read Username for 'https://github.com': No such device or address
Example repo has been set up to provide a minimal example.
Thanks for the action!
The text was updated successfully, but these errors were encountered: