File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36644,7 +36644,7 @@ async function ssh() {
3664436644 if (getBooleanInput("skip-ssh-setup")) return;
3664536645 const sshHomeDir = `${process.env["HOME"]}/.ssh`;
3664636646 if (!fs.existsSync(sshHomeDir)) fs.mkdirSync(sshHomeDir);
36647- const authSock = " /tmp/ssh-auth. sock" ;
36647+ const authSock = `${process.env["RUNNER_TEMP"] ?? " /tmp"} /ssh-auth-${process.pid}. sock` ;
3664836648 await $`ssh-agent -a ${authSock}`;
3664936649 exportVariable("SSH_AUTH_SOCK", authSock);
3665036650 let privateKey = getInput("private-key");
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ async function ssh(): Promise<void> {
3333 fs . mkdirSync ( sshHomeDir )
3434 }
3535
36- const authSock = ' /tmp/ssh-auth. sock'
36+ const authSock = ` ${ process . env [ 'RUNNER_TEMP' ] ?? ' /tmp' } /ssh-auth- ${ process . pid } . sock`
3737 await $ `ssh-agent -a ${ authSock } `
3838 core . exportVariable ( 'SSH_AUTH_SOCK' , authSock )
3939
You can’t perform that action at this time.
0 commit comments