Skip to content

Commit

Permalink
more debugging
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 db41762 commit 9bf2781
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
8 changes: 5 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2932,10 +2932,12 @@ try {
fs.appendFileSync(`${homeSsh}/config`, sshConfig);

console.log(`Added deploy-key mapping: Use identity '${homeSsh}/key-${sha256}' for GitHub repository ${ownerAndRepo}`);
});

const ssh_github_output = child_process.execSync(`${sshCmd} git@github.com`);
console.log(`ssh to github:\n${ssh_github_output}`);
const ssh_github_output_1 = child_process.execSync(`${sshCmd} git@github.com`);
console.log(`ssh to git@github.com:\n${ssh_github_output_1}`);
const ssh_github_output_2 = child_process.execSync(`${sshCmd} git@key-${sha256}.github.com`);
console.log(`ssh to git@key-${sha256}.github.com:\n${ssh_github_output_2}`);
});

} catch (error) {

Expand Down
8 changes: 5 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,12 @@ try {
fs.appendFileSync(`${homeSsh}/config`, sshConfig);

console.log(`Added deploy-key mapping: Use identity '${homeSsh}/key-${sha256}' for GitHub repository ${ownerAndRepo}`);
});

const ssh_github_output = child_process.execSync(`${sshCmd} git@github.com`);
console.log(`ssh to github:\n${ssh_github_output}`);
const ssh_github_output_1 = child_process.execSync(`${sshCmd} git@github.com`);
console.log(`ssh to git@github.com:\n${ssh_github_output_1}`);
const ssh_github_output_2 = child_process.execSync(`${sshCmd} git@key-${sha256}.github.com`);
console.log(`ssh to git@key-${sha256}.github.com:\n${ssh_github_output_2}`);
});

} catch (error) {

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.8",
"version": "0.1.9",
"main": "index.js",
"author": "webfactory GmbH <info@webfactory.de>",
"license": "MIT",
Expand Down

0 comments on commit 9bf2781

Please sign in to comment.