diff --git a/dist/index.js b/dist/index.js index 7af821c2..b3016a26 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2636,7 +2636,11 @@ function run(cmd, options) { core.debug(cmd); try { - const stdout = execSync(cmd, { encoding: "utf8", cwd: optionsWithDefaults.dir }); + const stdout = execSync(cmd, { + encoding: "utf8", + cwd: optionsWithDefaults.dir, + maxBuffer: 20 * 1024 * 1024, + }); const output = { status: 0, stdout: stdout.trim(), diff --git a/src/utils/action.js b/src/utils/action.js index d605a3c8..4807170d 100644 --- a/src/utils/action.js +++ b/src/utils/action.js @@ -40,7 +40,11 @@ function run(cmd, options) { core.debug(cmd); try { - const stdout = execSync(cmd, { encoding: "utf8", cwd: optionsWithDefaults.dir }); + const stdout = execSync(cmd, { + encoding: "utf8", + cwd: optionsWithDefaults.dir, + maxBuffer: 20 * 1024 * 1024, + }); const output = { status: 0, stdout: stdout.trim(),