ci: scanner ignore entries carry review dates that have passed, and nothing checks them

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

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

@Wikid82 đang làm issue này rồi.

Từ ngày 1/12/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

ci-cd low

What

.grype.yaml ignore entries carry expiry: dates and .trivyignore entries carry "Review by" comments, but no script or workflow reads them, so entries stay active after their review date. On development (2026-12-01) many entries are past due, for example .grype.yaml lines 103 and 112 (go-jose v3, 2026-11-29), 137 (2026-11-28), 159/217/276/558/620/642 (2026-08-01), 343/418/497/787 (2026-09-01), 1073 (2026-10-18), 1082 (2026-11-23); .trivyignore has "Review by: 2026-08-01" / "2026-09-01" entries (lines 17-117).

Where

.grype.yaml, .trivyignore; no reader under scripts/ or .github/workflows/ (grep -rln expiry scripts .github/workflows finds only an unrelated test).

Evidence

Grype's ignore rules have no expiry field of their own, so the dates are comments in effect. Related: #1979 (the two lists drift apart).

Severity

Low (scanner hygiene; accepted findings are never re-reviewed).

Suggested approach

Review every past-due entry (remove the ones that upstream fixed, re-date the rest with a reason), keep .grype.yaml and .trivyignore in step (#1979), and add a small CI check that fails when an entry's review date has passed, with a message naming the entry.

Found while planning the next backlog batch.

Ngôn ngữ chính
Go
Star
17
Fork
2
Merge trung bình
1 giờ 42 phút
Pull request đã merge (30 ngày)
173

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 Wikid82/Charon

Tất cả issue của Wikid82/Charon

Issue tương tự

Thêm issue về Go

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.