Skip to content

Commit

Permalink
fix: reuse parent process env vars (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
tembleking authored Dec 16, 2024
1 parent fd8ea33 commit 9706dba
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/scanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,12 @@ export async function executeScan(scanFlags: ComposeFlags): Promise<ScanExecutio


const scanOptions: exec.ExecOptions = {
env: envvars,
env: {
...Object.fromEntries(
Object.entries(process.env).map(([key, value]) => [key, value ?? ""])
),
...envvars,
},
silent: true,
ignoreReturnCode: true,
listeners: {
Expand Down

0 comments on commit 9706dba

Please sign in to comment.