diff options
author | Carlos Martín Nieto <carlosmn@github.com> | 2022-11-02 10:58:14 +0100 |
---|---|---|
committer | Carlos Martín Nieto <carlosmn@github.com> | 2022-11-04 10:33:37 +0100 |
commit | c29651fe8b8165b45a8cdf746f13e78694ff6f14 (patch) | |
tree | fee92bb79ae3427e4dba597920850ac6b2f3b4d4 /ci | |
parent | 74c2b4b8a62d2a6461b1535192e3c5e828f49c67 (diff) | |
download | libgit2-c29651fe8b8165b45a8cdf746f13e78694ff6f14.tar.gz |
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.
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/test.sh | 5 |
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. |