Closed zhulinpinyu closed 4 years ago
I'm also facing the same issue.
I'm trying to do 'pod install' which clones from private repo.
Not working yet
To work around the host-key verification problem you could add
ssh -T -oStrictHostKeyChecking=accept-new git@github.com || true
git clone git@github.com:zhulinpinyu/sf.git
to your run code.
I had the same problem then I've found the cause and fixed it.
SSH_PRIVATE_KEY
into your GitHub secrets? Remember, SSH_PRIVATE_KEY
is not a default available key in GitHub secrets. You have to manually create one.SSH_PRIVATE_KEY
and with your private key as value - Learn how to create Secrets in GitHub.ssh-keygen
. It is recommended to use a separate git account(machine user) for the remote usages. - Learn How to generate SSH Key.Once you're done with the mentioned steps, your script should work as expected.
I hope this helps!
Please follow @manivel-nagarajan's good advice above.
Also, could you provide the full output from the action run so we can see if the action indeed tried to start the ssh-agent and set up the keys?
@stevie- Great, Thank you very much ❤️
actions config
error log:
Solution: https://github.com/webfactory/ssh-agent/issues/25#issuecomment-626529851
Thanks @stevie-