From 490a9e7da143d923dce42a51561a431c4bd498a5 Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Mon, 26 Jul 2021 20:35:00 +0200 Subject: [PATCH] main: put ssh option in quotes --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index a7a8569..50fb45e 100644 --- a/main.js +++ b/main.js @@ -69,7 +69,7 @@ async function main() { const knownHostsFile = ".ansible_known_hosts" fs.writeFileSync(knownHostsFile, knownHosts, { mode: 0600 }) core.saveState("knownHostsFile", knownHostsFile) - cmd.push("--ssh-common-args", `-o UserKnownHostsFile=${knownHostsFile}`) + cmd.push("--ssh-common-args", `'-o UserKnownHostsFile=${knownHostsFile}'`) process.env.ANSIBLE_HOST_KEY_CHECKING = "True" } else { process.env.ANSIBLE_HOST_KEY_CHECKING = "False"