use php to do the webhook of github, as follows:
$cmd = "eval `ssh-agent -s` && ssh-add && cd $target && git pull 2>&1";
$res = shell_exec($cmd);
ssh key (no password) has been added, no error returned, but not successful.
$cmd = "cd $target & & git pull 2 > & 1"; prompts you that there is no permission because key should not be loaded.