Closed harrlight00 closed 7 months ago
Might be related to https://github.com/webfactory/ssh-agent/issues/174#issuecomment-1486300082, looking
Yep, adding
- name: "Add GitHub to the SSH known hosts file"
run: |
mkdir -p -m 0700 /home/runner/.ssh
curl --silent https://api.github.com/meta | jq --raw-output '"github.com "+.ssh_keys[]' >> /home/runner/.ssh/known_hosts
chmod 600 /home/runner/.ssh/known_hosts
before the checkout step fixed the issue.
We currently have a service that uses 4 private git repositories. We generated deploy keys for all 4, and included them in our github actions file to deploy it up. It has been working using webfactory/ssh-agent@0.7.0 for a few months, but when we attempt to upgrade to
0.8.0
or0.9.0
, functionality breaks.This is what our current actions file looks like
When we upgrade to either
0.8.0
or0.9.0
, we then receive this error in thedocker/build-push-action
step