CI: Add GitHub to known_hosts
parent
81811be1b7
commit
226b834faf
|
@ -54,6 +54,7 @@ function cleanup() {
|
||||||
# clear the known_host file (~/.ssh/known_hosts)
|
# clear the known_host file (~/.ssh/known_hosts)
|
||||||
if test -f /home/${user}/.ssh/known_hosts; then
|
if test -f /home/${user}/.ssh/known_hosts; then
|
||||||
sudo echo "" > /home/${user}/.ssh/known_hosts
|
sudo echo "" > /home/${user}/.ssh/known_hosts
|
||||||
|
ssh-keyscan github.com >>~/.ssh/known_hosts
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
# clean docker left overs
|
# clean docker left overs
|
||||||
|
|
Loading…
Reference in New Issue