File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,15 +43,16 @@ jobs:
4343 - name : Setup SSH for AUR
4444 run : |
4545 mkdir -p ~/.ssh
46+
4647 echo "${{ secrets.AUR_SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
4748 chmod 600 ~/.ssh/id_ed25519
4849
49- echo "SG9zdCBhdXIuYXJjaGxpbnV4Lm9yZwogICAgSG9zdE5hbWUgYXVyLmFyY2hsaW51eC5vcmcKICAgIFVzZXIgYXVyCiAgICBJZGVudGl0eUZpbGUgfi8uc3NoL2lkX2VkMjU1MTk=" \
50- | base64 -d > ~/.ssh/config
50+ printf "Host aur.archlinux.org\nHostName aur.archlinux.org\nUser aur\nIdentityFile ~/.ssh/id_ed25519\nStrictHostKeyChecking no\n" > ~/.ssh/config
5151
52- ssh-keyscan aur.archlinux.org >> ~/.ssh/known_hosts
53- chmod 644 ~/.ssh/known_hosts
52+ chmod 600 ~/.ssh/config
5453
54+ - name : Add AUR host key
55+ run : ssh-keyscan aur.archlinux.org >> ~/.ssh/known_hosts
5556
5657 - name : Clone AUR repository
5758 run : |
You can’t perform that action at this time.
0 commit comments