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
- Testing again for https://github.com/cpina/github-action-push-to-another-repository/issues/64 — committed to cpina/push-to-another-repository-example by cpina 2 years ago
- Print git version and attempted fix for https://github.com/cpina/github-action-push-to-another-repository/issues/64 related to https://github.blog/2022-04-12-git-security-vulnerability-announced/ — committed to cpina/github-action-push-to-another-repository by cpina 2 years ago
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.2and also available inmain.I’ll try to reproduce and have a look - thanks for the heads up!