GitHub Actions - Error when doing a git push inside an action


I am trying to do a git push from a GitHub Action step, but I am having the following error:

fatal: could not read Username for '': No such device or address

I think it´s related to authentication, but shouldn’t Github Actions handle this automatically?

Hey, I was able to get this working.  Here is an example:

Basically there are two environment vars you can use GITHUB_ACTOR and GITHUB_TOKEN.  Then use the https push url.  To get the token passed in you need to use the secrets as documented here:

Hope this helps.


download gk bisa di unduh