From cc4f31fdfcb4a21c569422a95868d0bb52844c75 Mon Sep 17 00:00:00 2001 From: Matt Brictson Date: Sat, 19 Mar 2022 13:29:16 -0700 Subject: [PATCH] Install newer SSH client to fix CI for old Rubies (#2106) --- .circleci/config.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 05be7728..b89db3ed 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -32,6 +32,21 @@ commands: paths: - ./vendor/bundle key: bundle-v1-{{ arch }}-<< parameters.version >>-{{ checksum "Gemfile.lock" }} + update_ssh_client: + description: Install recent SSH client for compatibility with GitHub + steps: + - run: + name: Install OpenSSH 8.1p1 if necessary + command: | + if $(ssh -V 2>&1 | grep -q -v OpenSSH_8); then + apt-get update + apt-get install -y libssl-dev + mkdir ~/tempdownload + cd ~/tempdownload + wget https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-8.1p1.tar.gz + tar zxvf openssh-8.1p1.tar.gz + cd openssh-8.1p1 && ./configure --prefix=/usr && make ssh && make install + fi jobs: danger: @@ -58,6 +73,7 @@ jobs: name: ruby version: << parameters.version >> steps: + - update_ssh_client - checkout - bundle_install: version: << parameters.version >>