From 0a2e0f4c6d225829969297e8c8756d141bf4b12b Mon Sep 17 00:00:00 2001 From: Simon Erhardt Date: Sun, 24 Jan 2021 11:57:52 +0100 Subject: [PATCH] Fix #1 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')