Yikun / hub-mirror-action

一个Github Action,用于在Github和Gitee之间同步代码。Action for mirroring repos between Hubs (like Github and Gitee).
MIT License
634 stars 174 forks source link

报错求助 #107

Closed whitewatercn closed 3 years ago

whitewatercn commented 3 years ago

报错求助

我可以确定github和gitee的公钥和gitee的token都配置正确,请问该怎么办?

Cmd('git') failed due to: exit code(128)
  cmdline: git push -f gitee refs/remotes/origin/*:refs/heads/* --tags --prune
  stderr: 'Load key "/root/.ssh/id_rsa": invalid format
git@gitee.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.'
Total: 1, skip: 0, successed: 0, failed: 1.
Failed: ['great-doctors']
+ exit 1
whitewatercn commented 3 years ago

我觉得可能还是配置出了问题,先再看看教程

yi-Xu-0100 commented 3 years ago

👋 @whitewatercn 可以参考我的同步仓库的说明,https://github.com/yi-Xu-0100/hub-mirror

whitewatercn commented 3 years ago

👋 @whitewatercn 可以参考我的同步仓库的说明,https://github.com/yi-Xu-0100/hub-mirror

感谢!根据您的说明从头捋了一遍,发现原来是自己把id_rsa.pub里的内容填到了GITEE_PRIVATE_KEY