Rules/setup-ssh.sh

7 lines
110 B
Bash

#!/usr/bin/env sh
set -eu
mkdir ~/.ssh
echo "$INPUT_SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa