ad-m / github-push-action

GitHub actions to push back to repository eg. updated code
MIT License
1.21k stars 230 forks source link

fatal: unsafe repository ('/github/workspace' is owned by someone else) #113

Closed jinek closed 2 years ago

jinek commented 2 years ago

At some moment it started to give this error

Push to branch ***************
fatal: unsafe repository ('/github/workspace' is owned by someone else)
To add an exception for this directory, call:

    git config --global --add safe.directory /github/workspace
ZPascal commented 2 years ago

@jinek Please switch the used version of the GitHub push action to ad-m/github-push-action@master. That should solve your issue, because the fix is already implemented there.

jinek commented 2 years ago

Thank you a lot for fast response. Please, feel free to close this issue or may be better to keep it open others to see the solution?

ZPascal commented 2 years ago

Hi @jinek, I'll prepare a PR to update the documentation and make it more transparent that a version change is necessary.

supersciencegrl commented 2 years ago

Thank you so much for this! Really helpful for my cron repo updates.

ZPascal commented 2 years ago

Hi @jinek, I think the issue is solved. Can we close it?

jinek commented 2 years ago

Hi @jinek, I think the issue is solved. Can we close it?

Solved. Thank you!