From de258cbd60e4b9a23babfc3002d3326a7e49f7fd Mon Sep 17 00:00:00 2001 From: Nils Pukropp Date: Sun, 4 Oct 2026 03:43:30 +0200 Subject: [PATCH] ci(aur): retry the AUR host key scan ssh-keyscan sometimes returns no key from the runner, which failed the AUR publish for 2.8.0 and 2.10.0 at the fingerprint check. Retry the scan up to five times with a longer timeout before checking the pin. --- .github/workflows/aur.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/aur.yml b/.github/workflows/aur.yml index 11cd85f..26c5414 100644 --- a/.github/workflows/aur.yml +++ b/.github/workflows/aur.yml @@ -67,7 +67,13 @@ jobs: User aur EOF # Pin the host key to the fingerprint published on aur.archlinux.org. - ssh-keyscan -t ed25519 aur.archlinux.org > "$HOME/.ssh/known_hosts" + # The scan sometimes returns nothing from the runner, so retry it. + for attempt in 1 2 3 4 5; do + ssh-keyscan -T 15 -t ed25519 aur.archlinux.org > "$HOME/.ssh/known_hosts" && + [ -s "$HOME/.ssh/known_hosts" ] && break + echo "ssh-keyscan attempt $attempt returned no key; retrying" + sleep 10 + done ssh-keygen -lf "$HOME/.ssh/known_hosts" | grep -q 'SHA256:RFzBCUItH9LZS0cKB5UE6ceAYhBD5C8GeOBip8Z11+4' chown -R builder: "$HOME/.ssh" chmod 600 "$HOME/.ssh/aur"