[BUGFIX] Not working properly on self-hosted runner

* remove fixed default auth socket path
* call `ssh-agent` with auth socket path, if not explicitly given,
  to let the system choose the path
* read SSH_AUTH_SOCKET and SSH_AGENT_PID from `ssh-agent` command output
  and add the as variables
This commit is contained in:
Thorben Nissen 2020-04-10 20:02:05 +02:00
parent 716fbacac2
commit 36fd7e1343
2 changed files with 15 additions and 3 deletions

View file

@ -6,7 +6,6 @@ inputs:
required: true
ssh-auth-sock:
description: 'Where to place the SSH Agent auth socket'
default: /tmp/ssh-auth.sock
runs:
using: 'node12'
main: 'dist/index.js'