Skip to content

Commit 226b834

Browse files
committed
CI: Add GitHub to known_hosts
1 parent 81811be commit 226b834

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hack/jenkins/cron/cleanup_and_reboot_Linux.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ function cleanup() {
5454
# clear the known_host file (~/.ssh/known_hosts)
5555
if test -f /home/${user}/.ssh/known_hosts; then
5656
sudo echo "" > /home/${user}/.ssh/known_hosts
57+
ssh-keyscan github.com >>~/.ssh/known_hosts
5758
fi
5859
done
5960
# clean docker left overs

0 commit comments

Comments
 (0)