mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 06:21:59 +09:00
In a pnpm/yarn/bun project there is no package-lock.json, so `npm audit
--json` prints {"error":{"code":"ENOLOCK"}} with no `vulnerabilities` key.
`security scan` (deps) and `security cve` read that as zero findings and
exited 0, and the persisted record made the statusline CLEAN.
Only a report with a `vulnerabilities` object now counts as a scan. Anything
else exits 2 with the reason and a package-manager hint (pnpm audit, yarn npm
audit, bun audit); the scan record is marked incomplete and getSecurityStatus
reports PENDING for it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RMjr52YGVk9fkqtNvb5jg2