diff --git a/entrypoint.sh b/entrypoint.sh index cf4ed70..b2c44f9 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -45,7 +45,7 @@ if [[ "${GIT_SSH_PRIVATE_KEY}" != "" ]]; then chmod 600 ~/.ssh/id_rsa if [[ "${GIT_SSH_KNOWN_HOSTS}" != "" ]]; then echo "${GIT_SSH_KNOWN_HOSTS}" > ~/.ssh/known_hosts - git config --global core.sshCommand "ssh -i ~/.ssh/id_rsa -o IdentitiesOnly=yes -o UserKnownHostsFile=~/.ssh/known_hosts" + git config --global core.sshCommand "ssh -i /github/home/.ssh/id_rsa -o IdentitiesOnly=yes -o UserKnownHostsFile=/github/home/.ssh/known_hosts" else if [[ "${GIT_SSH_NO_VERIFY_HOST}" != "true" ]]; then echo "WARNING: no known_hosts set and host verification is enabled (the default)" @@ -53,7 +53,7 @@ if [[ "${GIT_SSH_PRIVATE_KEY}" != "" ]]; then echo "Please either provide the GIT_SSH_KNOWN_HOSTS or GIT_SSH_NO_VERIFY_HOST inputs" exit 1 else - git config --global core.sshCommand "ssh -i ~/.ssh/id_rsa -o IdentitiesOnly=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" + git config --global core.sshCommand "ssh -i /github/home/.ssh/id_rsa -o IdentitiesOnly=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" fi fi else