Skip to content

Docs: document CycloneDX component type / primaryPackagePurpose mapping in vg sbom #251

Closed

Description

@vibgrate-team

Context

Downstream SBOM tools care about CycloneDX component type and primaryPackagePurpose (application, library, operating-system, etc.). Contributors and integrators need a clear map of what vg sbom export --format cyclonedx emits for manifests vs containers vs IaC-derived components — without implying a compliance determination.

What to do

  • Document how vg sbom maps Vibgrate component kinds to CycloneDX type / primaryPackagePurpose (and note when a field is omitted).
  • Include 2–3 short examples (vg sbom export --format cyclonedx) for a library lockfile and an application root.
  • Cross-link existing SBOM/VEX docs; keep inventory-not-attestation wording.

Acceptance

  • Mapping table or equivalent in public docs
  • Examples use vg and local files only
  • Honest about unknowns / omitted fields
  • DCO sign-off (git commit -s)

Activity

  1. added
    documentation
    on Sep 22, 2026
  2. vibgrate-team commented on Oct 4, 2026

    @vibgrate-team
    ContributorAuthor

    Spec notes for implementers

    Goal. Document how vg sbom export --format cyclonedx maps Vibgrate component kinds to CycloneDX type / primaryPackagePurpose (application, library, operating-system, …) and when a field is omitted. Inventory wording only — no compliance claim.

    Docs shape.

    1. Mapping table (or equivalent) in public SBOM docs
    2. Two or three short examples: library lockfile vs application root (vg sbom export --format cyclonedx)
    3. Cross-link existing SBOM/VEX docs; keep “inventory not attestation” language

    Observe the exporter in src/reporting/commands/sbom.ts (and related formatters) before writing — match shipped behavior. DCO sign-off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions