You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ci): never trust audit output from a terminated run, narrow the skip
Two fail-opens in the audit gate.
A killed `bun audit` can flush parseable JSON before it dies. The empty-
stdout check ran first, so that partial output reached JSON.parse and was
reported as a complete verdict. Verified against the pre-fix script: a
process that writes {"advisories":{}} then hangs yields
"Summary: blocking=0 ... total=0" and exit 0. Termination is now decided
before stdout is looked at.
The outage skip also applied to any failure to run, so a bun crash or an
unreadable lockfile would silently skip the audit too. It is now gated on
an identified unreachable-service condition; every other failure to run
still exits non-zero.
Detect termination through signalCode / exitedDueToTimeout rather than
`exitCode === null`. The runtime does return null there on 1.3.12 and
1.3.14, but the declared type is `number`, so the comparison is not
expressible in typed code.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KUPpJPtxAaHWrBsjytRGyM
0 commit comments