github-action-push-to-another-repository: fatal: unsafe repository ('XXXXXX' is owned by someone else)

Hi,

I’m encountering an error when running this action to push to another repo:

fatal: unsafe repository ('/tmp/tmp.PklpEM' is owned by someone else)

To add an exception for this directory, call:

	git config --global --add safe.directory /tmp/tmp.PklpEM

Looks like this is related to this.

I have tried already setting the ownership of the containing folder in a previous step in my job but no luck yet.

Is there any workaround?

Thanks in advance

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17 (6 by maintainers)

Commits related to this issue

Most upvoted comments

I’ve made one more attempt in devel (trying to add the specific directory instead of /)

Do you mind trying once more? Sorry for the inconvenience!

If it fails again I’ll try to setup the exact same problem but I might not have time until later on.

Thanks all for your help! I’ve pre-released v1.4.2 and also available in main.

I’ll try to reproduce and have a look - thanks for the heads up!