From: Daniel Kirschten Date: Sun, 13 Sep 2020 17:43:23 +0000 (+0200) Subject: Access bits for id_rsa_deploy are now set before storing the privkey X-Git-Url: https://mograsim.net/gitweb/?p=Mograsim.git;a=commitdiff_plain;h=675de1ae079bfd56ea5751f8ae606df4bed65e05 Access bits for id_rsa_deploy are now set before storing the privkey --- diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 2256c31a..41df9749 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -34,7 +34,8 @@ jobs: MOGRASIM_NET_HOST_PUBKEY: ${{ secrets.MOGRASIM_NET_HOST_PUBKEY }} run: | mkdir -p ~/.ssh - printenv DEPLOY_KEY > ~/.ssh/id_rsa_deploy + touch ~/.ssh/id_rsa_deploy chmod 600 ~/.ssh/id_rsa_deploy + printenv DEPLOY_KEY > ~/.ssh/id_rsa_deploy printenv MOGRASIM_NET_HOST_PUBKEY >> ~/.ssh/known_hosts scp -i ~/.ssh/id_rsa_deploy -r releng/net.mograsim.plugin.updatesite/target/repository mgsdeploy@mograsim.net:/mograsim/testdeploy