Skip to content

Commit 5df09bb

Browse files
authored
fix(core): Expression evaluation of process should respect N8N_BLOCK_ENV_ACCESS_IN_NODE (#4338)
1 parent c2e9a03 commit 5df09bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/workflow/src/Expression.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export class Expression {
104104
typeof process !== 'undefined'
105105
? {
106106
arch: process.arch,
107-
env: process.env,
107+
env: process.env.N8N_BLOCK_ENV_ACCESS_IN_NODE === 'true' ? {} : process.env,
108108
platform: process.platform,
109109
pid: process.pid,
110110
ppid: process.ppid,

0 commit comments

Comments
 (0)