Skip to content

Commit b7c5988

Browse files
mount ssh/known_hosts like in webfactory/ssh-agent#11
1 parent 3379f68 commit b7c5988

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

action/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/model/docker.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,10 @@ class Docker {
6262
--volume "/home/runner/work/_temp/_github_workflow":"/github/workflow" \
6363
--volume "${workspace}":"/github/workspace" \
6464
--volume "/home/runner/.ssh":"/root/.ssh" \
65+
--volume "/home/runner/.ssh/known_hosts":"/root/.ssh/known_hosts" \
6566
${useHostNetwork ? '--net=host' : ''} \
6667
${githubToken ? '--env USE_EXIT_CODE=false' : '--env USE_EXIT_CODE=true'} \
67-
${image} /bin/bash -c "apt-get update && apt-get --assume-yes install ssh"`;
68+
${image} /bin/bash -c "apt-get update && apt-get --assume-yes install ssh; ssh-add -l && ssh -T git@github.com"`;
6869

6970
await exec(command, undefined, { silent });
7071
}

0 commit comments

Comments
 (0)