feat: configure dedicated bot SSH key and non-interactive SSH for git operations.
This commit is contained in:
@@ -26,7 +26,11 @@ async function execWithTimeout(
|
||||
return new Promise((resolve, reject) => {
|
||||
const child = exec(cmd, {
|
||||
cwd: options.cwd,
|
||||
env: { ...process.env, GIT_TERMINAL_PROMPT: "0" }
|
||||
env: {
|
||||
...process.env,
|
||||
GIT_TERMINAL_PROMPT: "0",
|
||||
GIT_SSH_COMMAND: "ssh -o BatchMode=yes"
|
||||
}
|
||||
}, (error: ExecException | null, stdout: string, stderr: string) => {
|
||||
if (error) {
|
||||
reject(error);
|
||||
|
||||
Reference in New Issue
Block a user