Bug: emit ecosystem-correct PURLs in SBOM exports

オープン
#167 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
54/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
cli, security

調査の方向性

Start at the vg sbom export entry point and follow the SBOM export and lockfile component helpers to see where ecosystem metadata is lost or PURLs are formed. Add fixtures for npm and at least two non-npm ecosystems, then run the relevant tests for both SPDX and CycloneDX where available. Done means unknown ecosystems are represented honestly, outputs are deterministic, and the acceptance criteria—including DCO sign-off—are met.

索引モデルが issue の本文から書いたものです。

説明

bug help wanted

Context

vg sbom export should not claim an ecosystem Vibgrate did not detect. If SPDX/CycloneDX helpers hard-code pkg:npm/... for non-npm packages, supply-chain evidence is wrong.

Separate from #151 (docs/example) and the outputs-contract docs issue.

What to do

  • Preserve ecosystem metadata through SBOM export
  • Emit ecosystem-correct PURLs for supported package managers
  • Use the same identity in CycloneDX and SPDX where both exist
  • If ecosystem cannot be identified safely, omit/NOASSERTION rather than guessing npm
  • Add fixtures for npm plus at least two non-npm ecosystems
  • Keep ordering and generated identifiers deterministic

Do not fabricate dependency relationships from a flat list unless the parser already exposes them.

Acceptance

  • npm packages still emit valid npm PURLs
  • Non-npm packages do not emit npm PURLs
  • Unknown ecosystems degrade honestly
  • Tests cover both formats (or document if only one ships)
  • Repeated export of a fixed artifact is byte-stable; DCO sign-off

Mentoring notes

Start from SBOM export / lockfile component helpers. fix: or feat: Conventional Commit as appropriate.

主要言語
TypeScript
スター
4
フォーク
3
平均マージ
1日 22時間
マージ済み PR(30日)
76

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

vibgrate/cli のほかの issue

vibgrate/cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。