diff --git a/bbuilder/lib/worker.py b/bbuilder/lib/worker.py index 9f1dac9..bd8d775 100644 --- a/bbuilder/lib/worker.py +++ b/bbuilder/lib/worker.py @@ -99,7 +99,7 @@ def clone_repository(clone_url, config): print(f"Cloning repository...") if config['ssh_key'] is not None: ssh_key_file = config['ssh_key'] - os.environ['GIT_SSH_COMMAND'] = f'ssh -i {ssh_key_file} -o IdentitiesOnly=yes' + os.environ['GIT_SSH_COMMAND'] = f'ssh -i {ssh_key_file} -o IdentitiesOnly=yes -o StrictHostKeyChecking=accept-new -o VerifyHostKeyDNS=yes' os.system(f'git clone {clone_url} repo')