From 8079fe35861a4b88efb363cf746c9e33ebd238ca Mon Sep 17 00:00:00 2001 From: Yair Zohar Date: Wed, 17 Aug 2022 17:57:36 +0300 Subject: [PATCH] fix: increase buffer size --- src/lib/iac/test/v2/scan/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/iac/test/v2/scan/index.ts b/src/lib/iac/test/v2/scan/index.ts index 94917ee4ea..2ff6d9020c 100644 --- a/src/lib/iac/test/v2/scan/index.ts +++ b/src/lib/iac/test/v2/scan/index.ts @@ -53,6 +53,7 @@ function scanWithConfig( const process = childProcess.spawnSync(policyEnginePath, args, { encoding: 'utf-8', stdio: 'pipe', + maxBuffer: 1024 * 1024 * 10, // The default value is 1024 * 1024, if we see in the future that multiplying it by 10 is not enough we can increase it further. }); debug('policy engine standard error:\n%s', '\n' + process.stderr);