Skip to content

Pull webhook stucked, waiting for input (due to known hosts) #101

Open
@fpytloun

Description

@fpytloun

If I call webhook via curl -X POST http://waliki.ifrit.eu/wiki/_hooks/pull/origin it get's stucked and will timeout.

If run manually as given user, I get following:

%{%}$%{%} /usr/bin/git --no-pager pull -s recursive -X ours origin HEAD
The authenticity of host 'git.ifrit.eu (2a01:430:17:1::ffff:177)' can't be established.
RSA key fingerprint is ea:93:0b:d2:8f:2d:58:c6:e4:61:cf:cf:34:49:05:5d.
Are you sure you want to continue connecting (yes/no)?

IMHO working with git should be done some better way than calling subprocess or this issue should be solved by -o StrictHostKeyChecking=no or calling ssh-keyscan and adding remote host before pulling. Or at least mention this in docs (I am going to write a blog post about seting up and using Waliki soon).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions