Skip to content

Commit

Permalink
Added support for updated CircleCI SSH fingerprint format. Part 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Jan 31, 2024
1 parent 440306c commit 2de37c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .devtools/setup-ssh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ if [ "${SSH_KEY_FINGERPRINT#SHA256:}" != "${SSH_KEY_FINGERPRINT}" ]; then
calculated_sha256_fingerprint=$(ssh-keygen -l -E sha256 -f "${file}" | awk '{print $2}')
if [ "${calculated_sha256_fingerprint}" = "${SSH_KEY_FINGERPRINT}" ]; then
SSH_KEY_FINGERPRINT=$(ssh-keygen -l -E md5 -f "${file}" | awk '{print $2}')
SSH_KEY_FINGERPRINT="${SSH_KEY_FINGERPRINT#MD5:}"
break
fi
done
Expand Down

0 comments on commit 2de37c2

Please sign in to comment.