From 1e499338cfcaa77dd81971d95f8736423a4f3d7d Mon Sep 17 00:00:00 2001 From: Kevin Stillhammer Date: Thu, 20 Feb 2025 20:43:42 +0100 Subject: [PATCH] Write the correct keyfile Overlooked in 66ebbda9d64cc56e265123f23591d6733f48b712 --- dist/index.js | 2 +- index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index a337ae1..6804cab 100644 --- a/dist/index.js +++ b/dist/index.js @@ -3746,7 +3746,7 @@ try { const ownerAndRepo = parts[1].replace(/\.git$/, ""); const keyFile = `${keyFilePrefix}-${sha256}`; - fs.writeFileSync(`${homeSsh}/key-${sha256}`, `${key}\n`, { mode: "600" }); + fs.writeFileSync(`${homeSsh}/${keyFile}`, `${key}\n`, { mode: "600" }); alterGitConfigWithRetry(() => { return child_process.execSync( diff --git a/index.js b/index.js index 5791781..0f3155f 100644 --- a/index.js +++ b/index.js @@ -78,7 +78,7 @@ try { const ownerAndRepo = parts[1].replace(/\.git$/, ""); const keyFile = `${keyFilePrefix}-${sha256}`; - fs.writeFileSync(`${homeSsh}/key-${sha256}`, `${key}\n`, { mode: "600" }); + fs.writeFileSync(`${homeSsh}/${keyFile}`, `${key}\n`, { mode: "600" }); alterGitConfigWithRetry(() => { return child_process.execSync(