From 1d579800380b277afd5140100bc1d7ae8becfc8d Mon Sep 17 00:00:00 2001
From: Sydney Anne Erickson <sydney@elixxir.io>
Date: Mon, 3 Oct 2022 20:00:05 +0000
Subject: [PATCH] Update .gitlab-ci.yml

---
 .gitlab-ci.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index eb9f2bfd5..636b95257 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,9 +6,10 @@ before_script:
   - rm -rf ~/.ssh
   - eval $(ssh-agent -s)
   - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
-  - echo $SSH_PRIVATE_KEY > ~/.ssh/id_rsa
   - mkdir -p ~/.ssh
   - chmod 700 ~/.ssh
+  - echo $SSH_PRIVATE_KEY > ~/.ssh/id_rsa
+  - chmod 600 ~/.ssh/id_rsa
   - ssh-keyscan -t rsa $GITLAB_SERVER > ~/.ssh/known_hosts
   - rm -rf ~/.gitconfig
   - git config --global url."git@$GITLAB_SERVER:".insteadOf "https://gitlab.com/"
-- 
GitLab