Skip to content

Commit 31b12c6

Browse files
Piliiiclaude
andcommitted
fix: use GIT_SSH_COMMAND to bypass ssh known_hosts check for AUR in CI
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 5a52ef4 commit 31b12c6

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,16 +120,13 @@ jobs:
120120

121121
- name: Set up SSH
122122
run: |
123-
mkdir -p ~/.ssh
124-
chmod 700 ~/.ssh
123+
mkdir -p ~/.ssh && chmod 700 ~/.ssh
125124
echo "${{ secrets.AUR_SSH_KEY }}" > ~/.ssh/id_rsa
126125
chmod 600 ~/.ssh/id_rsa
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
131126
132127
- name: Update PKGBUILD and push to AUR
128+
env:
129+
GIT_SSH_COMMAND: ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i ~/.ssh/id_rsa
133130
run: |
134131
VERSION=$(grep '^version:' clients/app/pubspec.yaml | sed 's/version: //;s/+.*//')
135132
TARBALL_URL="https://github.com/${{ github.repository }}/releases/download/v${VERSION}/LibreNotes-${VERSION}-linux-x86_64.tar.gz"

0 commit comments

Comments
 (0)