From c030168847c506c1c4c8f8a14218c82416467ec0 Mon Sep 17 00:00:00 2001 From: Kristjan Eimre Date: Tue, 28 Nov 2023 21:12:13 +0100 Subject: [PATCH] fix CI macos ssh localhost --- .github/workflows/ci.yml | 2 +- .github/workflows/setup-ssh-localhost.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 972fd6f..73f6177 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,7 +35,7 @@ jobs: - name: set up 'ssh localhost' run: | .github/workflows/setup-ssh-localhost.sh - ssh localhost + ssh -v localhost - name: Install dependencies (including dev dependencies at frozen version) # I'm using pip install -e to make sure that the coverage properly traces the runs # also of the concurrent tests (maybe we can achieve this differently) diff --git a/.github/workflows/setup-ssh-localhost.sh b/.github/workflows/setup-ssh-localhost.sh index df70959..ab3347a 100755 --- a/.github/workflows/setup-ssh-localhost.sh +++ b/.github/workflows/setup-ssh-localhost.sh @@ -4,3 +4,6 @@ set -ev ssh-keygen -q -t rsa -b 4096 -N "" -f "${HOME}/.ssh/id_rsa" ssh-keygen -y -f "${HOME}/.ssh/id_rsa" >> "${HOME}/.ssh/authorized_keys" ssh-keyscan -H localhost >> "${HOME}/.ssh/known_hosts" + +chmod 700 "${HOME}/.ssh" +chmod 600 "${HOME}/.ssh"/*