diff --git a/x-pack/plugins/code/server/repository_service.ts b/x-pack/plugins/code/server/repository_service.ts index 8df80f6a3e7d9..7fffbfb1ae8e4 100644 --- a/x-pack/plugins/code/server/repository_service.ts +++ b/x-pack/plugins/code/server/repository_service.ts @@ -106,6 +106,10 @@ export class RepositoryService { callbacks: { credentials: this.credentialFunc(key), }, + certificateCheck: () => { + // Ignore cert check failures. + return 1; + }, }); // TODO(mengwei): deal with the case when the default branch has changed. const currentBranch = await repo.getCurrentBranch();