Skip to content

Commit ce60e8d

Browse files
committed
fix(ci): use explicit SSH config for AUR sync
1 parent a2d0300 commit ce60e8d

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/aur-taskers-bin.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,15 @@ jobs:
7373
install -dm700 ~/.ssh
7474
printf '%s\n' "$AUR_SSH_PRIVATE_KEY" > ~/.ssh/id_ed25519
7575
chmod 600 ~/.ssh/id_ed25519
76-
ssh-keyscan aur.archlinux.org >> ~/.ssh/known_hosts
76+
ssh-keyscan -H aur.archlinux.org >> ~/.ssh/known_hosts
77+
cat > ~/.ssh/config <<CFG
78+
Host aur.archlinux.org
79+
IdentityFile ~/.ssh/id_ed25519
80+
IdentitiesOnly yes
81+
StrictHostKeyChecking accept-new
82+
UserKnownHostsFile ~/.ssh/known_hosts
83+
CFG
84+
chmod 600 ~/.ssh/config
7785
7886
- name: Clone AUR package repo
7987
shell: bash

0 commit comments

Comments
 (0)