From 7faeafd21dff2d27c3b88902ba949cf7cdacab2e Mon Sep 17 00:00:00 2001
From: plup <plup@plup.io>
Date: Wed, 20 Nov 2019 22:05:53 +0100
Subject: [PATCH] cicd: restricted permission on key

---
 .gitlab-ci.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4c8e338c..d32934b2 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,6 +9,7 @@ deploy_staging:
   script:
     - echo $APP_CONFIG > config.json
     - echo $SSH_PRIVATE_KEY > gitlab.key
+    - chmod 600 gitlab.key
     - npm install
     - npm run build
     - scp -i gitlab.key -o StrictHostKeyChecking=no -r build/* test-paris@ssh-test-paris.happy-dev.fr:~/staging/www/
-- 
GitLab