Fix SSH key permissions

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2023-12-25 13:41:30 +01:00
parent d170e28aeb
commit 537850157f
+2
View File
@@ -57,7 +57,9 @@ jobs:
shell: bash shell: bash
run: | run: |
mkdir $HOME/.ssh mkdir $HOME/.ssh
chmod u=rwx,go= $HOME/.ssh
echo "${{ secrets.SSHKEY }}" | base64 -d > $HOME/.ssh/id_ed25519 echo "${{ secrets.SSHKEY }}" | base64 -d > $HOME/.ssh/id_ed25519
chmod u=rw,go= $HOME/.ssh/id_ed25519
echo "Host xaymar.com" >> $HOME/.ssh/config echo "Host xaymar.com" >> $HOME/.ssh/config
echo " StrictHostKeyChecking no" >> $HOME/.ssh/config echo " StrictHostKeyChecking no" >> $HOME/.ssh/config
- name: "Publish" - name: "Publish"