Bug: import and round-trip existing OpenVEX statements with vg vex --from

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

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

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

評価

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

調査の方向性

Verify the current vg vex --from CLI behavior, then read the VEX load/validate helpers and existing tests. Add coverage for bare statement arrays and objects with statements, including malformed entries and timestamp/id overrides. Done means valid OpenVEX fixtures import and export, invalid entries identify their statement, fixed overrides produce byte-stable output, and the change has DCO sign-off.

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

説明

bug help wanted

Context

If vg vex --from advertises support for an existing OpenVEX document, it must accept common OpenVEX shapes (object-form vulnerability/products), not only bare internal string statements — otherwise round-trip fails.

What to do

Normalize imported input before validation (verify current CLI first):

  • accept string or { "name": string } vulnerability values
  • accept string product refs or { "@id": string } product objects
  • preserve status, justification, impact/action statements
  • support bare statement arrays and objects with statements
  • reject malformed entries with statement index + actionable message
  • retain explicit timestamp/id overrides for reproducible output

Do not silently discard unknown security-relevant fields without documenting behaviour.

Acceptance

  • A valid OpenVEX fixture imports and exports
  • Bare internal statements still work
  • Invalid entries identify the failing statement
  • Fixed timestamp/id → byte-stable output
  • Tests cover both input shapes; DCO sign-off

Mentoring notes

Start from VEX load/validate helpers and existing tests. fix: Conventional Commit.

主要言語
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 を短くまとめたダイジェスト。