Files
ruflo/v3/@claude-flow/cli/src/funnel
martinvladandClaude Opus 5.5 ef14b161e1 fix(security): report "could not scan" instead of a clean tree when npm audit fails (#4124)
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
2026-10-13 07:54:46 -07:00
..