Bug: actionable error when --package-manifest path is missing or unreadable

Đang mở
#283 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

  • #328 của @vibgrate-team — đã đóng, không merge

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
node.js, typescript
Lĩnh vực
cli, security

Hướng nghiên cứu

Start by tracing how vg scan --vulns --package-manifest <path> loads the manifest, focusing on paths that fail or return empty data. Add focused coverage for missing and unreadable paths; done means a deterministic error names the path and gives a hint, exits non-zero, and reveals no secret material.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug

Context

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

  1. Find load paths for --package-manifest that dump stacks or succeed with empty data on bad paths.
  2. Emit a deterministic user-facing error (path + hint); never echo secret material from nearby env/files.
  3. Add a focused test for missing and unreadable cases.

Acceptance

  • Missing/unreadable manifest → actionable error + non-zero exit
  • No secret material in the message
  • Test coverage; DCO
Ngôn ngữ chính
TypeScript
Star
4
Fork
3
Merge trung bình
1 ngày 22 giờ
Pull request đã merge (30 ngày)
76

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của vibgrate/cli

Tất cả issue của vibgrate/cli

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.