Closed KevinGimbel closed 4 years ago
Could you try to remove synoa/github-action-git-exec and just try to SSH into your host? Maybe that way we can narrow down where the problem comes from.
Very weird, it is working now. I tried to just run an SSH command, e.g. ssh user@host ls -l
before and it didn't work but now it does.
As the issue seems to be gone I'll close this issue; Maybe it was a hiccup in GitHub's System 🤷♂
I've spent today trying to get this GitHub action working but no matter what I try it doesn't do anything.
It appears to me as if the steps are no longer connected. For completeness, here's my workflow file.
deploy.yml
synoa/github-action-git-exec
just executes a shell command (see https://github.com/synoa/github-action-git-exec/blob/master/entrypoint.sh#L4).I've attached an execution log from one of the failed executions: github-action.log
I've had a lot of "Host verification failed" issues, which according to https://github.com/webfactory/ssh-agent/issues/6#issuecomment-543247008 can be fixed by adding a script that adds the Host to the known hosts file - this didn't work as well so I highly speculate that GitHub Actions no longer shares its "state" between steps.
When I change my Action to run the following script I can login and push to my remote server without any issues:
This command works fine, but adding the same key using this action does not work.
If I can help in any way, please let me know!