add begin/end to the ssh key
This commit is contained in:
parent
0175ec4feb
commit
54598a126a
1 changed files with 3 additions and 1 deletions
|
@ -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/*
|
||||
|
|
Loading…
Add table
Reference in a new issue