Bug: surface actionable errors when CVSS/severity vectors fail to parse

Đang mở
#240 2 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.

  • #325 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ệ
typescript
Lĩnh vực
cli, security

Hướng nghiên cứu

Start by reproducing the issue with a fixture advisory or stub containing a malformed CVSS/severity vector, then trace the vg scan --vulns and report paths for human- and machine-readable output. Add fixture and test coverage showing a deterministic, actionable warning or explicit error, with no credential-looking metadata in logs; verify the same fixture produces the same message on repeated runs.

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

Mô tả

bug

Context

If an advisory’s CVSS or severity vector string cannot be parsed, silently dropping severity (or inventing a default) misleads CI gates and reports. Users need an actionable warning/finding: what failed and what to do next — consistent with local-first, no-secrets error style and determinism.

What to do

  1. Reproduce with a fixture advisory (or stub) whose CVSS/severity vector is malformed.
  2. Ensure human and machine-readable vg scan --vulns / report paths either attach a structured warning or clear stderr — never quiet omission of severity with no trace.
  3. Keep determinism: same fixture → same warning code/text every run.
  4. Never log tokens or raw credential-looking fields from advisory metadata.

Acceptance

  • Malformed vector is visible as warning/finding or explicit error
  • Message is actionable (parse failure + next step)
  • Fixture + test cover the path
  • DCO sign-off

Refs: #233 (SPDX license parse) · #150 · roadmap #144

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.