Vulnerability auditing practice

Updated Jul 27, 2026

Supply-chain changes must include a vulnerability scan pass before merge:

  • Run bun install first, so audit output reflects the current lockfile and postinstall build graph.
  • Generate a human-readable advisory report with bun audit.
  • Verify there are no critical, high, or moderate advisories with bun audit --audit-level=moderate.
  • Produce machine-readable evidence with bun audit --json --audit-level=moderate when logs or follow-up automation require it.

Roadmap item 1.4.2 is satisfied only when the moderate-threshold audit run is clean. If remediation requires dependency overrides, keep overrides in package.json and re-run the full gate sequence before marking work complete. For the current Electron 40 toolchain ([email protected]), keep ajv aligned with @develar/schema-utils and ajv-keywords@3 by pinning it to 6.14.0; moving back to Ajv 8 without upgrading that stack will break bun install during postinstall. Follow the Electron runtime alignment section above for the canonical packaged dependency mirror command: node bin/copy-node-modules.mjs.