diff --git a/dist/index.js b/dist/index.js index 20d4200..1161dc2 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2935,11 +2935,11 @@ try { console.log(`Added deploy-key mapping: Use identity '${homeSsh}/key-${sha256}' for GitHub repository ${ownerAndRepo}`); console.log(`exec: ${sshCmd} git@github.com`); - const ssh_github_output_1 = child_process.execSync(`${sshCmd} git@github.com`); + const ssh_github_output_1 = child_process.execFileSync(sshCmd, [`git@github.com`], { stdio: 'inherit' }).toString(); console.log(`ssh to git@github.com:\n${ssh_github_output_1}`); console.log(`exec: ${sshCmd} git@key-${sha256}.github.com`); - const ssh_github_output_2 = child_process.execSync(`${sshCmd} git@key-${sha256}.github.com`); + const ssh_github_output_2 = child_process.execFileSync(sshCmd, [`git@key-${sha256}.github.com`], { stdio: 'inherit' }).toString(); console.log(`ssh to git@key-${sha256}.github.com:\n${ssh_github_output_2}`); }); diff --git a/index.js b/index.js index 5e1ede5..c7f616b 100644 --- a/index.js +++ b/index.js @@ -98,11 +98,11 @@ try { console.log(`Added deploy-key mapping: Use identity '${homeSsh}/key-${sha256}' for GitHub repository ${ownerAndRepo}`); console.log(`exec: ${sshCmd} git@github.com`); - const ssh_github_output_1 = child_process.execSync(`${sshCmd} git@github.com`); + const ssh_github_output_1 = child_process.execFileSync(sshCmd, [`git@github.com`], { stdio: 'inherit' }).toString(); console.log(`ssh to git@github.com:\n${ssh_github_output_1}`); console.log(`exec: ${sshCmd} git@key-${sha256}.github.com`); - const ssh_github_output_2 = child_process.execSync(`${sshCmd} git@key-${sha256}.github.com`); + const ssh_github_output_2 = child_process.execFileSync(sshCmd, [`git@key-${sha256}.github.com`], { stdio: 'inherit' }).toString(); console.log(`ssh to git@key-${sha256}.github.com:\n${ssh_github_output_2}`); }); diff --git a/package.json b/package.json index 69ced4d..41bd735 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "cryptid-action-ssh-agent", "repository": "git@github.com:cryptidtech/ssh-agent.git", "description": "GitHub Action to set up ssh-agent with a private SSH key", - "version": "0.1.11", + "version": "0.1.12", "main": "index.js", "author": "webfactory GmbH ", "license": "MIT",