add begin/end to the ssh key

This commit is contained in:
Dominic 2024-11-25 22:32:30 +01:00
parent 0175ec4feb
commit 54598a126a
Signed by: msrd0
GPG key ID: AAF7C8430CA3345D

View file

@ -40,7 +40,9 @@ runs:
- name: Mirror to the AUR
run: |
mkdir -p ~/.ssh
printf '%s' '${{inputs.ssh_key}}' >~/.ssh/ssh_key
echo "-----BEGIN OPENSSH PRIVATE KEY-----" >~/.ssh/ssh_key
echo '${{inputs.ssh_key}}' >>~/.ssh/ssh_key
echo "-----END OPENSSH PRIVATE KEY-----" >>~/.ssh/ssh_key
echo 'aur.archlinux.org ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEuBKrPzbawxA/k2g6NcyV5jmqwJ2s+zpgZGZ7tpLIcN' >>~/.ssh/known_hosts
chmod 700 ~/.ssh
chmod 600 ~/.ssh/*