release skill: add an npm audit step to the v1 procedure

Đang mở Phù hợp với người mới
#3,139 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.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
documentation, release

Hướng nghiên cứu

Bắt đầu với .claude/skills/release/SKILL.md, so sánh các bước v1 với quy trình kiểm tra của v2 PR 1, sau đó xem checklist issue release của v1 và phần mô tả ledger. Thêm quy trình kiểm tra theo thứ tự được chỉ định so với v1-1 và v1-2, ghi lại báo cáo và các quyết định về khả năng truy cập, rồi chạy npm run verify:skills; hoàn tất khi quy trình v1, checklist và phần mô tả ledger đáp ứng các tiêu chí chấp nhận.

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

Mô tả

documentation v2

Problem

The v1 release procedure (.claude/skills/release/SKILL.md, "The v1 line", steps v1-1 to v1-7) has no npm audit step. The v2 procedure runs one in PR 1 on every release: it audits each install, reports only (never npm audit fix), and fixes deliberately before the bump.

On v1, findings show up only incidentally. Releasing 1.0.8 (#3122), npm ci on the bump branch printed 34 vulnerabilities (16 moderate, 13 high, 5 critical). The procedure had no step to triage them, so they were neither looked at nor recorded anywhere durable.

Proposed change

Add an audit step to the v1 procedure, before or alongside v1-1, mirroring v2's PR 1:

  • Run npm audit --audit-level=high on v1/main (one install: v1 is a single npm workspace with one lockfile) and record the report in the v1 release ledger.
  • Same rules as v2: report only. Never run npm audit fix (it downgrades silently), with or without --force. Fix deliberately with a direct bump or an overrides entry, each as its own PR against v1/main, merged before the bump (v1-2).
  • v1 takes security fixes only, so a finding needs a reachability call: fix one that is reachable from a shipped package; for one that is not (dev-only, or never on a shipped code path), record why in the ledger rather than fix it. This follows the precedent of #2074 and #2938.
  • Add the step to the v1 release issue's checklist, so it can't be skipped silently.

Acceptance

  • release skill's v1 section has the audit step, with its place in the order relative to v1-1 / v1-2 stated.
  • The v1 ledger description names the audit report as one of the things it records.
  • npm run verify:skills passes.
Ngôn ngữ chính
TypeScript
Star
11.4k
Fork
1.6k
Merge trung bình
2 giờ 27 phút
Pull request đã merge (30 ngày)
121

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 modelcontextprotocol/inspector

Tất cả issue của modelcontextprotocol/inspector

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.