mirror of
https://github.com/cpina/github-action-push-to-another-repository.git
synced 2024-12-22 08:06:10 -07:00
Use the specified server to get the ssh fingerprints
This commit is contained in:
parent
d0c2618226
commit
12e7eb9301
|
@ -39,7 +39,7 @@ then
|
||||||
chmod 600 "$DEPLOY_KEY_FILE"
|
chmod 600 "$DEPLOY_KEY_FILE"
|
||||||
|
|
||||||
SSH_KNOWN_HOSTS_FILE="$HOME/.ssh/known_hosts"
|
SSH_KNOWN_HOSTS_FILE="$HOME/.ssh/known_hosts"
|
||||||
ssh-keyscan -H github.com > "$SSH_KNOWN_HOSTS_FILE"
|
ssh-keyscan -H "$GITHUB_SERVER" > "$SSH_KNOWN_HOSTS_FILE"
|
||||||
|
|
||||||
export GIT_SSH_COMMAND="ssh -i "$DEPLOY_KEY_FILE" -o UserKnownHostsFile=$SSH_KNOWN_HOSTS_FILE"
|
export GIT_SSH_COMMAND="ssh -i "$DEPLOY_KEY_FILE" -o UserKnownHostsFile=$SSH_KNOWN_HOSTS_FILE"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user