Skip to content

Commit

Permalink
mount ssh/known_hosts like in webfactory/ssh-agent#11
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-hernandez-scopely committed Apr 26, 2021
1 parent 4f5f7c3 commit b690164
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/model/docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ class Docker {
--volume "${runnerTempPath}/_github_workflow":"/github/workflow" \
--volume "${workspace}":"/github/workspace" \
--volume "/home/runner/.ssh":"/root/.ssh" \
${image} /bin/bash -c "apt-get update && apt-get --assume-yes install ssh"`;
--volume "/home/runner/.ssh/known_hosts":"/root/.ssh/known_hosts" \
${image} /bin/bash -c "apt-get update && apt-get --assume-yes install ssh; ssh-add -l && ssh -T git@github.com"`;

await exec(command, undefined, { silent });
}
Expand Down

0 comments on commit b690164

Please sign in to comment.