diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 40a8acd4f54ca62ad4d990eeeea7f1383d15e402..07deaab3ee10a00f6a3674710f216eb66a7cea9a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -59,6 +59,9 @@ github: - mkdir -p ~/.ssh - chmod 700 ~/.ssh + ## Add Github to known hosts (https://stackoverflow.com/a/29380672) + - ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts + ## ## Optionally, if you will be using any Git commands, set the user name and ## and email.