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