mirror of
https://github.com/cpina/github-action-push-to-another-repository.git
synced 2024-12-21 23:56:09 -07:00
Use the specified server to get the ssh fingerprints
This commit is contained in:
parent
e775fb8544
commit
9391058a7d
|
@ -39,7 +39,7 @@ then
|
|||
chmod 600 "$DEPLOY_KEY_FILE"
|
||||
|
||||
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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user