Skip to content

Commit cf3d149

Browse files
committed
Actions (Tangled Mirror): More robust setup for SSH known_hosts
1 parent 90b36c0 commit cf3d149

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/tangled-mirror.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,14 @@ jobs:
3131
echo $TANGLED_SSH_KEY | base64 --decode > "$RUNNER_TEMP/ssh.key"
3232
chmod 600 "$RUNNER_TEMP/ssh.key"
3333
34-
- name: Push Repo to Mirror
34+
- name: Setup SSH known_hosts
3535
run: |
36+
mkdir -p ~/.ssh
3637
ssh-keyscan -t rsa tangled.sh >> ~/.ssh/known_hosts
38+
chmod -R 600 ~/.ssh
39+
40+
- name: Push Repo to Mirror
41+
run: |
3742
eval `ssh-agent`
3843
ssh-add "$RUNNER_TEMP/ssh.key"
3944
git push --mirror --force tangled

0 commit comments

Comments
 (0)