mirror of
https://github.com/narrrl/proton-drive-linux.git
synced 2026-11-18 17:55:03 +01:00
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.
This commit is contained in:
1 parent
4ea18e9187
commit
de258cbd60
1 file changed
+7
-1
@@ -67,7 +67,13 @@ jobs:
|
|||||||
User aur
|
User aur
|
||||||
EOF
|
EOF
|
||||||
# Pin the host key to the fingerprint published on aur.archlinux.org.
|
# 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'
|
ssh-keygen -lf "$HOME/.ssh/known_hosts" | grep -q 'SHA256:RFzBCUItH9LZS0cKB5UE6ceAYhBD5C8GeOBip8Z11+4'
|
||||||
chown -R builder: "$HOME/.ssh"
|
chown -R builder: "$HOME/.ssh"
|
||||||
chmod 600 "$HOME/.ssh/aur"
|
chmod 600 "$HOME/.ssh/aur"
|
||||||
|
|||||||
Reference in new issue
Block a user