Read out HOME instead of the os query info
As when using the gitea-actions-runner on NixOS it is using systemd dynamic user
This commit is contained in:
parent
a6f90b1f12
commit
1903dde042
3 changed files with 27 additions and 30 deletions
4
dist/index.js
vendored
4
dist/index.js
vendored
|
@ -2898,9 +2898,7 @@ const os = __webpack_require__(87);
|
|||
const core = __webpack_require__(470);
|
||||
|
||||
const defaults = (process.env['OS'] != 'Windows_NT') ? {
|
||||
// Use getent() system call, since this is what ssh does; makes a difference in Docker-based
|
||||
// Action runs, where $HOME is different from the pwent
|
||||
homePath: os.userInfo().homedir,
|
||||
homePath: os.homedir(),
|
||||
sshAgentCmdDefault: 'ssh-agent',
|
||||
sshAddCmdDefault: 'ssh-add',
|
||||
gitCmdDefault: 'git'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue