From 938f1ee6ef2f2cdfe9c3485c320b02b7d166a062 Mon Sep 17 00:00:00 2001 From: Simon Erhardt Date: Sun, 24 Jan 2021 15:07:41 +0100 Subject: [PATCH] Fix #1 (#5) This should fix the EACCESS issue. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 7401e9e..9978612 100644 --- a/index.js +++ b/index.js @@ -25,7 +25,7 @@ function ssh() { let knownHosts = core.getInput('known-hosts') if (knownHosts === '') { - fs.appendFileSync(`/etc/ssh/ssh_config`, `StrictHostKeyChecking no`) + fs.appendFileSync(`${ssh}/config`, `StrictHostKeyChecking no`) } else { fs.appendFileSync(`${ssh}/known_hosts`, knownHosts) fs.chmodSync(`${ssh}/known_hosts`, '644')