Bug: surface actionable errors when license IDs fail SPDX-style parse (no silent drop)

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

  • #326 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
52/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
node.js, typescript
Lĩnh vực
cli, security

Hướng nghiên cứu

Start by reproducing the malformed-license case with a fixture package, then trace the vg scan, report, and SBOM paths that parse license identifiers; the issue does not name specific files or tests. Add coverage for deterministic, actionable output that does not expose secrets, and verify the warning or finding is visible in human or machine-readable output.

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

Mô tả

bug

Context

If a package license string cannot be parsed into an SPDX-style identifier, silently omitting it from vg scan / report / SBOM paths hides data quality problems. Users should see an actionable message (what failed + what to do), consistent with local-first, no-secrets error style.

What to do

  1. Reproduce with a fixture package whose license field is malformed / non-SPDX.
  2. Ensure machine-readable and human output either include a structured warning/finding or a clear stderr note — never a quiet omission with no trace.
  3. Keep determinism: same fixture → same warning text/code every run.
  4. Never log registry tokens or file contents that look like secrets.

Acceptance

  • Malformed license is visible in output or as an explicit warning/finding
  • Message is actionable (failed parse + suggested next step)
  • Fixture + test cover the path
  • DCO sign-off

Refs: #213 (license source path) · #150 (actionable failures)

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.