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
{{ message }}
Repository navigation
Bug: actionable error when --package-manifest path is missing or unreadable #283
Offline vg scan --vulns --package-manifest <path> (see #239 for docs) should fail closed with an actionable error when the path is missing, unreadable, or not a usable manifest — not a cryptic stack or empty success. CI and assistants need a stable message + non-zero exit.
What to do
Find load paths for --package-manifest that dump stacks or succeed with empty data on bad paths.
Emit a deterministic user-facing error (path + hint); never echo secret material from nearby env/files.
Add a focused test for missing and unreadable cases.
Loader:src/reporting/package-version-manifest.ts — PackageManifestError with stable not_found / unreadable / unusable messages that name the resolved path and never echo file/env secrets.
CLI fail-closed:src/reporting/commands/scan.ts loads --package-manifestbefore scan work and throws CliError + non-zero exit (no stack dump).
Tests:src/reporting/package-version-manifest.test.ts covers missing, unreadable, directory, invalid JSON, and bad ZIP cases with secret-sentinel assertions.
If anything remains, it would be a thin CLI e2e (vg scan --offline --package-manifest /no/such.json asserts exit + stderr). Otherwise this issue can be closed as done — no new fix PR needed from this pass.
Activity
vibgrate-team commentedon Oct 9, 2026
Status on
mainThis looks already implemented on current
main:src/reporting/package-version-manifest.ts—PackageManifestErrorwith stablenot_found/unreadable/unusablemessages that name the resolved path and never echo file/env secrets.src/reporting/commands/scan.tsloads--package-manifestbefore scan work and throwsCliError+ non-zero exit (no stack dump).src/reporting/package-version-manifest.test.tscovers missing, unreadable, directory, invalid JSON, and bad ZIP cases with secret-sentinel assertions.Acceptance checklist (for whoever closes)
If anything remains, it would be a thin CLI e2e (
vg scan --offline --package-manifest /no/such.jsonasserts exit + stderr). Otherwise this issue can be closed as done — no new fix PR needed from this pass.