-
Notifications
You must be signed in to change notification settings - Fork 297
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: unsafe repository ('XXXXXX' is owned by someone else) #64
Comments
I'm currently facing the same issue. |
I'll try to reproduce and have a look - thanks for the heads up! |
I cannot reproduce it yet (I don't have handy two repos with one not owned by me right now to test with) but I've attempted a fix. Could you try using the In your
Change the v1.4.1 (or perhaps you use And see if it works. Let me know please. Thank you very much! |
@cpina used In case you need more information to reproduce the error: I'm using the |
I'll try to reproduce the problem and fix it again. Thanks for testing and reporting back. Are any of you using it in public repos that I could have the URL? It might help looking better into it. Thanks! |
I'm using it in private repos, sorry 😞 . |
Having the same problem! 😥 was working a few days back! Here's a partial screengrab of the workflow code Tried using cpina/github-action-push-to-another-repository@devel Both are private repos owned by the organizations and I have ownership privileges. |
I can show you these info if that will help.
name: CI/CD to different repository
on:
push:
branches: [master]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout blog repository
uses: actions/checkout@v2
- name: Setup Node.js on runner
uses: actions/setup-node@v2
with:
node-version: "16.13.2"
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Push to github.io repository
uses: cpina/github-action-push-to-another-repository@devel
env:
API_TOKEN_GITHUB: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
with:
source-directory: "public"
destination-github-username: "bugoverdose"
destination-repository-name: "bugoverdose.github.io"
user-email: [email protected]
target-branch: master
|
Could you try again with Now it should install git 2.35.2 which is the first version supporting the option that should fix the problem. Fingers crossed. If not working I'll try to reproduce on my side, thanks for the patience. |
I just tested it and it is still broken for me with |
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. |
It seems to work now 🎉 |
Yes, ran without any issues!🚀 Thank you @cpina for your quick response! |
It's beautiful. Thanks for the quick fix :) |
Thanks all for your help! I've pre-released |
Hi,
I'm encountering an error when running this action to push to another repo:
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
The text was updated successfully, but these errors were encountered: