-
-
Notifications
You must be signed in to change notification settings - Fork 229
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 (using checkout v3) #317
Comments
Thanks for reporting. Currently not in front of a desktop, but I guess the problem is that actions/checkout is not used in your 2nd job, when you download the artifact. actions/checkout is responsible for setting up authentication and I guess this "stuff" gets lost when you zip it up with upload-artifact. Can you maybe specify, that the .git folder is also included in the artifact? Or also use actions/checkout in your 2nd job. Will take a closer look, when I'm back in front of a desktop next week. |
No, the first job edits the repo and uploads an artifact. 2nd job pulls the artifact and (I skipped telling you this) tests those changes on multiple OS chroots (test systems) and set variables for failures. 3rd job pulls the artifact from 1st job and the variables from the multiple containers, reverts changes (changes are staging in the git repo so easy to revert), and then attempts to push (where the failure is). |
Sorry misread my own log. I have added extra debugging right before running git-auto-commit-action and can confirm that |
It was my fault. User error...derp. My problem was not in the action - it was because my program was somehow deleting my .git folder. Sorry for the bother. |
I believe that this token is only valid for the github job that it is created in. For now (and I have been doing this for about a month now) I simply run another checkout command (at the same hash as the first one) in the second job. That populates the github environment with a valid token and populates the |
I'm closing this issue now. Sorry for the very late response and for all your investigative research here. 💙 |
git-auto-commit Version
v5.0.0
Machine Type
Ubuntu (eg. ubuntu-latest)
Bug description
https://github.com/Botspot/pi-apps/actions/runs/7676180845/job/20923541957
Steps to reproduce
https://github.com/Botspot/pi-apps/actions/runs/7676180845/workflow
this workflow clones the repo using
actions/checkout@v3
, operates on that checkout (edits files), and then usesactions/upload-artifact@v3
to upload that as an artifact. In a separate job, that previous artifact is downloaded withactions/download-artifact@v3
, some additional changes are made (some changes are reverted if there are failures), and thenstefanzweifel/git-auto-commit-action@v5
is called, which fails. Previously this action was used to commit and make a PR to the repo withpeter-evans/create-pull-request@v4
with no such issues. This was the commit change to attempt to switch to your project Botspot/pi-apps@0b3c623Tried solutions
No response
Example Workflow
https://github.com/Botspot/pi-apps/actions/runs/7676180845/workflow
Relevant log output
No response
The text was updated successfully, but these errors were encountered: