Protect what matters – even after you're gone. Make a plan for your digital legacy today.
Forum Discussion
Former Member
3 years agoAgent doesn't work with Git inside a Node.js script using a SSH + SSO key on GitHub
I've been trying to switch to using the 1P SSH Agent full-time and while it's working great for my regular servers' SSH and commit signing, the SSH Git(Hub) connections are giving me issues when git...
Former Member
3 years agoOkay so: regular git operations within the affected repos work fine with the default configuration but running git inside the provided simple Node script still fails randomly.
The deploy script we use at work basically does this
```ts
import {exec} from 'child_process';
(async () => {
exec('git rev-parse ....', {cwd: process.cwd()}, () => {
exec('git fetch ...', {cwd: process.cwd()}, () => {
exec('git log ...', {cwd: process.cwd()}, () => {
exec('git push origin foo:bar', {cwd: process.cwd()}, console.log);
});
});
});
})();
```
So I'll run into situations where the git fetch succeeds but not the final git push, or vice versa or sometimes everything will work or sometimes nothing will. I'm starting to think that when it works it's "by accident" because I can't figure out a clear pattern 😞
This is all while running 1Password for Mac 8.10.0 (81000012)