Skip to content

Commit 5a52ef4

Browse files
Piliiiclaude
andcommitted
fix: harden AUR SSH setup — explicit permissions, -H keyscan, StrictHostKeyChecking accept-new
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent f02b393 commit 5a52ef4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎.github/workflows/release.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,13 @@ jobs:
121121
- name: Set up SSH
122122
run: |
123123
mkdir -p ~/.ssh
124+
chmod 700 ~/.ssh
124125
echo "${{ secrets.AUR_SSH_KEY }}" > ~/.ssh/id_rsa
125126
chmod 600 ~/.ssh/id_rsa
126-
ssh-keyscan aur.archlinux.org >> ~/.ssh/known_hosts
127+
ssh-keyscan -H aur.archlinux.org > ~/.ssh/known_hosts
128+
chmod 644 ~/.ssh/known_hosts
129+
printf 'Host aur.archlinux.org\n IdentityFile ~/.ssh/id_rsa\n StrictHostKeyChecking accept-new\n' > ~/.ssh/config
130+
chmod 600 ~/.ssh/config
127131
128132
- name: Update PKGBUILD and push to AUR
129133
run: |

0 commit comments

Comments
 (0)