Skip to content

Commit

Permalink
fix exec
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Grantham <dwg@linuxprogrammer.org>
  • Loading branch information
Dave Grantham committed Apr 28, 2024
1 parent c38e28b commit 3163aa9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
});

Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 <info@webfactory.de>",
"license": "MIT",
Expand Down

0 comments on commit 3163aa9

Please sign in to comment.