You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fatal: could not read Username for 'https://github.com': No such device or address #146
Hi, I've tried to reproduce your issue and I think that it might be caused by the fact that you're running the action on every run of the matrix, and GitHub might have some issues with that (I'm able to reproduce the error using a matrix strategy).
I think that it's better if you run your tests on the matrix, then you can run another job dedicated to linting & stuff (I think it would be better anyway, even if everything worked fine).
You could have a job that only runs tests (which in your case seem to only be running the build), and that will use the matrix strategy.
Then you can create a second job, with all the steps that you need to use to update the repo, which include my action. This second job should run only once, with no matrix.
@Fadelis I honestly have no idea of why it's happening. Here's what I thought:
If the git URL was wrong, then it would have failed when the action pulled from the remote, so that can't be the case
The username could be the problem, but you're using the default option, and you're listed regularly as the GitHub actor in the run summary.
Just one thing: you're hiding your private email on GitHub, right? Because I see that GitHub is censoring the username and email in the logs, and the only valid reason is that you're using GitHub's profile email. If that's the case then it's ok, otherwise, we'd need to look into it...
I guess I'll open an issue in https://github.com/steveukx/git-js, since that's the package I'm using: they should at least be able figure out if the problem is in my implementation.
Well I don't have the Keep my email addresses private box ticked, but also I don't have a public display email selected, so maybe that could be the problem. Next time I'll try to update the flow to use the github-actions user instead of a personal one.
@xenoterracide Well, of course you can use another action to push, you could also run git push directly.
I've tried editing the potential fix, according to what the author of simple-git told me, could you try it? @Fadelis@xenoterracide
It's EndBug/add-and-commit@fatal-fix-1
@xenoterracide Whoa, I didn't even consider that that could be the issue! Looking back, every workflow that has been posted in this issue was using actions/checkout@v1. I'll add a warning in the README
Activity
chore(nodejs) disable add-and-commit (EndBug/add-and-commit#146)
EndBug commentedon Feb 19, 2021
Hi, I've tried to reproduce your issue and I think that it might be caused by the fact that you're running the action on every run of the matrix, and GitHub might have some issues with that (I'm able to reproduce the error using a matrix strategy).
I think that it's better if you run your tests on the matrix, then you can run another job dedicated to linting & stuff (I think it would be better anyway, even if everything worked fine).
Let me know if you're able to solve the issue!
coderaiser commentedon Feb 19, 2021
Could you please help me, what should I change to run job dedicated to linting after matrix?
EndBug commentedon Feb 19, 2021
You could have a job that only runs tests (which in your case seem to only be running the build), and that will use the matrix strategy.
Then you can create a second job, with all the steps that you need to use to update the repo, which include my action. This second job should run only once, with no matrix.
Here's the outline of the workflow:
coderaiser commentedon Feb 21, 2021
Thank you @EndBug, I'll give it a try :).
TonyLomastro commentedon Feb 27, 2021
Did you find a resolution to this? I'm getting an identical error with a completely different workflow
Fadelis commentedon Mar 4, 2021
I also had a similar issue in this run. Not sure where's the problem..
EndBug commentedon Mar 4, 2021
@Fadelis I honestly have no idea of why it's happening. Here's what I thought:
Just one thing: you're hiding your private email on GitHub, right? Because I see that GitHub is censoring the username and email in the logs, and the only valid reason is that you're using GitHub's profile email. If that's the case then it's ok, otherwise, we'd need to look into it...
I guess I'll open an issue in https://github.com/steveukx/git-js, since that's the package I'm using: they should at least be able figure out if the problem is in my implementation.
Let me know about the email thing.
Fadelis commentedon Mar 4, 2021
Well I don't have the
Keep my email addresses privatebox ticked, but also I don't have a public display email selected, so maybe that could be the problem. Next time I'll try to update the flow to use thegithub-actionsuser instead of a personal one.EndBug commentedon Mar 4, 2021
@Fadelis Let me know if that changes anything 👍🏻
xenoterracide commentedon Mar 8, 2021
same issue, no matrix, here's the workflow file
and the output
xenoterracide commentedon Mar 8, 2021
fixed by using a different action to push
EndBug commentedon Mar 9, 2021
@xenoterracide Well, of course you can use another action to push, you could also run
git pushdirectly.I've tried editing the potential fix, according to what the author of simple-git told me, could you try it? @Fadelis @xenoterracide
It's
EndBug/add-and-commit@fatal-fix-1xenoterracide commentedon Mar 11, 2021
no, that didn't fix the problem, but moving to
actions/checkout@v2did (no patch needed). That was a pain though, it broke all of the git logic I hadEndBug commentedon Mar 11, 2021
@xenoterracide Whoa, I didn't even consider that that could be the issue! Looking back, every workflow that has been posted in this issue was using
actions/checkout@v1. I'll add a warning in the READMEThanks a lot to everyone :)
docs: add warning regarding actions/checkout@v1