Commands that read cut-off output now fail instead of judging part of it (GST-3086) (#4492)

Commands that read large git or gh output, including the credential
pre-push hook, the pre-merge secret and literal scans and the
sealed-output guard, now fail when Bun cuts that output off, instead of
judging the part they got.

Why: Bun can report exit status 0 together with ENOBUFS and partial
stdout, so a push whose diff passed 64 MiB could get a credential past
the pre-push hook.

Nothing to do: the failure names `SPAWN_OUTPUT_INCOMPLETE` and links its
troubleshooting entry.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
Garry Tanandcapy-ai[bot] authored and GitHub committed 2026-11-18 17:00:18 +00:00
1 parent 2767d229fb
commit 36b349d660
137 files changed
+311 -134

No files matched your search

+1 -1
View File
@@ -26,7 +26,7 @@
//
// Adapted from Elaya's design-to-motion (MIT, (c) 2026 Elaya). See NOTICE.md.
import { spawnSync } from 'child_process';
import { spawnSync } from '../lib/spawn-sync';
import * as fs from 'fs';
import * as path from 'path';
import {