Skip to content

Commit

Permalink
[.github] Increase exec maxBuffer from 1 to 16 MB (#32908)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeharder authored Feb 28, 2025
1 parent f407c80 commit 4cab80a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/src/exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export async function execRoot(command, core) {
// TODO: Handle errors
const result = await exec(command, {
cwd: process.env.GITHUB_WORKSPACE,
// Default is 1024 * 1024, which is too small for some git commands returning many entities or large file content.
// To support "git show", should be larger than the largest swagger file in the repo (2.5 MB as of 2/28/2025).
maxBuffer: 16 * 1024 * 1024
});

core.debug(`stdout: '${result.stdout}'`);
Expand Down

0 comments on commit 4cab80a

Please sign in to comment.