mirror of
https://github.com/cpina/github-action-push-to-another-repository.git
synced 2025-09-03 15:35:45 -06: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"
|
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…
x
Reference in New Issue
Block a user