summaryrefslogtreecommitdiff
path: root/ci/test.sh
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2023-01-20 22:13:14 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2023-01-20 22:13:14 +0000
commit3ee86a33292cbb8d43e0cf1442d0750c26fd61bb (patch)
treec3ad7c2097d2c06ee85decaa83f37f2e30267740 /ci/test.sh
parent747af663fe5c9da531f73facfe9e14d186074808 (diff)
parente33d7c06887582540bee013665f88d9625eca46c (diff)
downloadlibgit2-3ee86a33292cbb8d43e0cf1442d0750c26fd61bb.tar.gz
Merge commit 'e33d7c068' into ssh_key_checking
Diffstat (limited to 'ci/test.sh')
-rwxr-xr-xci/test.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/ci/test.sh b/ci/test.sh
index 0e1d39e8d..230daaaa0 100755
--- a/ci/test.sh
+++ b/ci/test.sh
@@ -170,6 +170,11 @@ if [ -z "$SKIP_SSH_TESTS" ]; then
echo "[localhost]:2222 $algorithm $key" >>"${HOME}/.ssh/known_hosts"
done <"${SSHD_DIR}/id_rsa.pub"
+ # Append the github.com keys for the tests that don't override checks.
+ # We ask for ssh-rsa to test that the selection based off of known_hosts
+ # is working.
+ ssh-keyscan -t ssh-rsa github.com >>"${HOME}/.ssh/known_hosts"
+
# Get the fingerprint for localhost and remove the colons so we can
# parse it as a hex number. Older versions have a different output
# format.