fix: Host key verification
This commit is contained in:
		
							parent
							
								
									f71b54deb2
								
							
						
					
					
						commit
						a1a9f1531e
					
				| @ -49,7 +49,7 @@ export default async function ({ | ||||
| 		applicationId | ||||
| 	}); | ||||
| 	await asyncExecShell( | ||||
| 		`git clone -q -b ${branch} https://x-access-token:${token}@${url}/${repository}.git ${workdir}/ && cd ${workdir} && git submodule update --init --recursive && git lfs pull && cd .. ` | ||||
| 		`GIT_SSH_COMMAND='ssh -o StrictHostKeyChecking=no' git clone -q -b ${branch} https://x-access-token:${token}@${url}/${repository}.git ${workdir}/ && cd ${workdir} && git submodule update --init --recursive && git lfs pull && cd .. ` | ||||
| 	); | ||||
| 	const { stdout: commit } = await asyncExecShell(`cd ${workdir}/ && git rev-parse HEAD`); | ||||
| 	return commit.replace('\n', ''); | ||||
|  | ||||
| @ -31,7 +31,7 @@ export default async function ({ | ||||
| 	}); | ||||
| 
 | ||||
| 	await asyncExecShell( | ||||
| 		`git clone -q -b ${branch} git@${url}:${repository}.git --config core.sshCommand="ssh -q -i ${repodir}id.rsa -o StrictHostKeyChecking=no" ${workdir}/ && cd ${workdir}/ && git submodule update --init --recursive && git lfs pull && cd .. ` | ||||
| 		`GIT_SSH_COMMAND='ssh -o StrictHostKeyChecking=no' git clone -q -b ${branch} git@${url}:${repository}.git --config core.sshCommand="ssh -q -i ${repodir}id.rsa -o StrictHostKeyChecking=no" ${workdir}/ && cd ${workdir}/ && git submodule update --init --recursive && git lfs pull && cd .. ` | ||||
| 	); | ||||
| 	const { stdout: commit } = await asyncExecShell(`cd ${workdir}/ && git rev-parse HEAD`); | ||||
| 	return commit.replace('\n', ''); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user