Supply-chain changes must include a vulnerability scan pass before merge:
- Run
bun installfirst, 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, ormoderateadvisories withbun audit --audit-level=moderate. - Produce machine-readable evidence with
bun audit --json --audit-level=moderatewhen 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.