From 88bcf9af86e47178a467fae508513ef9bd663522 Mon Sep 17 00:00:00 2001 From: Matthias Pigulla Date: Mon, 1 Mar 2021 10:53:18 +0000 Subject: [PATCH] Use IdentitiesOnly=no --- .github/workflows/demo.yml | 1 + dist/index.js | 2 +- index.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml index e177a4f..9ebbbe0 100644 --- a/.github/workflows/demo.yml +++ b/.github/workflows/demo.yml @@ -58,6 +58,7 @@ jobs: ${{ secrets.MPDUDE_TEST_1_DEPLOY_KEY }} ${{ secrets.MPDUDE_TEST_2_DEPLOY_KEY }} - run: | + ssh-add -l cat ~/.ssh/config ls -alh ~/.ssh git clone git@github.com:mpdude/test-2.git test-2-git diff --git a/dist/index.js b/dist/index.js index 4fbfee6..d4db8a9 100644 --- a/dist/index.js +++ b/dist/index.js @@ -215,7 +215,7 @@ try { let sshConfig = `\nHost key-${keyNumber}\n` + ` HostName github.com\n` + ` User git\n` - + ` IdentitiesOnly yes\n` + + ` IdentitiesOnly no\n` + ` IdentityFile ${keyFile}\n`; fs.appendFileSync(`${homeSsh}/config`, sshConfig); diff --git a/index.js b/index.js index a08eb47..f10b034 100644 --- a/index.js +++ b/index.js @@ -98,7 +98,7 @@ try { let sshConfig = `\nHost key-${keyNumber}\n` + ` HostName github.com\n` + ` User git\n` - + ` IdentitiesOnly yes\n` + + ` IdentitiesOnly no\n` + ` IdentityFile ${keyFile}\n`; fs.appendFileSync(`${homeSsh}/config`, sshConfig);