From 192951720e6d6f92d2c772e25a9ce46c9f6ebb59 Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Thu, 13 Jul 2017 22:51:01 +0100 Subject: .gitlab-ci.yml: Fix ssh private key permissions It's not really an issue on this private Docker runner, but SSH refuses to operate unless our private key is suitably protected. --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 20ca28a4..b5e0f1d9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,6 +26,7 @@ before_script: - | mkdir -p ~/.ssh echo $baserock_ostree_cache_private_key > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub # Enable push and pull for Baserock artifact cache -- cgit v1.2.1