From 00fe328a8d4288078ffc3f4e58dc118ef6bdb1b9 Mon Sep 17 00:00:00 2001 From: Lubos Racansky Date: Tue, 5 Dec 2023 11:39:36 +0100 Subject: [PATCH] chmod --- .github/workflows/scp-deploy.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/scp-deploy.yml b/.github/workflows/scp-deploy.yml index 58008871..9682df0a 100644 --- a/.github/workflows/scp-deploy.yml +++ b/.github/workflows/scp-deploy.yml @@ -27,7 +27,8 @@ jobs: run: | eval $(ssh-agent -s) ssh-add - <<< "${{ secrets.SCP_CERTIFICATE }}" - mkdir -p ~/.ssh/ && touch ~/.ssh/known_hosts + mkdir -p ~/.ssh/ + chmod 600 ~/.ssh ssh-keyscan -t rsa ${{ secrets.SCP_HOST }} >> ~/.ssh/known_hosts - name: Deploy enrollment-server.war shell: bash