Skip to content

Commit

Permalink
fix: pass main thread's environment variables to worker threads
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio committed Jul 6, 2021
1 parent 1c46d4c commit bd294f5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/engine/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,11 @@ function scanRepository(
configurationLocation: resolveConfigurationLocation(),
},

// TODO: use worker.SHARE_ENV. Figure out how to combine it with GIT_TERMINAL_PROMPT
env: {
...process.env,

// Prevent git from prompting password. Instead just fail repository cloning.
GIT_TERMINAL_PROMPT: '0',

// Pass CI flag to worker_threads
CI: process.env.CI,
},
});

Expand Down

0 comments on commit bd294f5

Please sign in to comment.