Skip to content

Commit c29651f

Browse files
committed
tests: append the github.com ssh keys so we have access during tests
Currently just the one test needs it. The ssh-rsa makes sure we're asking for the cipher we find in `known_hosts` as that won't be the one selected by default. This will be relevant in later changes.
1 parent 74c2b4b commit c29651f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ci/test.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,11 @@ if [ -z "$SKIP_SSH_TESTS" ]; then
170170
echo "[localhost]:2222 $algorithm $key" >>"${HOME}/.ssh/known_hosts"
171171
done <"${SSHD_DIR}/id_rsa.pub"
172172

173+
# Append the github.com keys for the tests that don't override checks.
174+
# We ask for ssh-rsa to test that the selection based off of known_hosts
175+
# is working.
176+
ssh-keyscan -t ssh-rsa github.com >>"${HOME}/.ssh/known_hosts"
177+
173178
# Get the fingerprint for localhost and remove the colons so we can
174179
# parse it as a hex number. Older versions have a different output
175180
# format.

0 commit comments

Comments
 (0)