Goal: non-interactively pull a github repo with a nodejs script using the child-process module
Setup: On my linux box I've set up github to work with ssh to the point were I can pull and push without entering passwords using ssh agent
Issue: When my nodejs script tries to pull, it ask for the passphrase for my private key. Not helpful given I want it to run on its own. I was under the impression that the agent would act on by behalf here. Particularly given the script is running as my user. Obviously I'm wrong about that. Keep in mind "git pull" just pulls interactively without a passphrase normally with my set up via ssh
Question: This part of the script works with https setup, but I'm interested, what do I need to change to run this script hands off whilst I've got ssh going on?
Sorry, I'm sure this has been asked in some form before now, but its a bit hard to search this one without getting issues of not being able to set ssh up