-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't work for self-hosted runners that are nobodies (no passwd
entry)
#188
Comments
I'm working on a PR to handle this issue, will link when ready. |
I made a PR, and it solves the immediate failure case. However, I'm now seeing the following error:
(Edited slightly for clarity and confidentiality. Namely condensed list of private repositories to the single I've added the GitHub host key to my ssh known hosts before running this step, so I think that should be good. - run: >
echo github.com
ssh-ed25519
AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl
>> "$HOME/.ssh/known_hosts" I only set ED25519 deploy keys so I didn't add the other host keys. Any idea what's going on? Name resolution seems fine when I ping Seems to be caused by this: Lines 71 to 73 in d4b9b8f
|
Never mind, I missed this important section right after! Lines 71 to 78 in d4b9b8f
I see what's going on now, and am trying to figure out why |
Resolution was to manually set the Git SSH command to reference the config file that was generated. I'll add this to my PR. git config --global core.sshCommand "ssh -F $HOME/.ssh//config" |
The use of
os.userInfo().homedir
depends on a/etc/passwd
entry, which in some hardened setups may not exist.os.homedir()
, which just depends on$HOME
, is more more likely to be right.For example, it thinks my user's home is
/
which is breaking things when my runtime home is actually/run/github-runner/runner-2
.The text was updated successfully, but these errors were encountered: