Repository navigation
docs: map vg sbom export component type to CycloneDX and SPDX - #368
Merged
Merged
Conversation
Document how vg sbom export sets CycloneDX type, and that SPDX primaryPackagePurpose is omitted, for the scan root, lockfile packages, containers, and IaC rows. Signed-off-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: vibgrate-team <vibgrate-team@users.noreply.github.com>
Keep the Component type section from this branch and the SBOM, scan, and CI docs that landed on main. Unmapped project types no longer receive an npm purl; the component-type gap notes follow that exporter. Signed-off-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: vibgrate-team <vibgrate-team@users.noreply.github.com>
vibgrate-team
marked this pull request as ready for review
October 6, 2026 12:59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
vg sbom exportnever said how CycloneDXtypewas chosen, or that SPDXprimaryPackagePurposeis left off. Readers could not tell a lockfile library from the scan root, or whether a container image, Helm chart, or Terraform provider was typed ascontainer/operating-systemor something else.This is documentation only. Emitter behavior is unchanged from current
main.origin/mainis merged in with an ordinary merge commit (no rebase, no force-push). The Component type section from this branch stays. Docs that already landed on main stay too, including component identity, production / development / optional scope, Go pseudo-versions,.tf/.tofuselection, and the CycloneDX type section.One gap note was updated to match the exporter on
main: an unmapped project type (Docker, Compose, Helm, Terraform) no longer receives an npm purl. The component stays, the purl is omitted, and the warning says the ecosystem could not be determined. A Helm dependency such asnginxat15.4.0istypelibrarywith nopkg:npm/nginx@15.4.0.DOCS.md(vg sbom) keeps a Component type section: a mapping table (scan root, manifest/lockfile packages, container images, Helm dependencies, Terraform providers and modules, OS packages), when a field is omitted, and the gaps that remain.vg sbom export: the metadata component (application, name = directory basename), lockfile rowsleft-padandonce(library), and the SPDX package forleft-padwith noprimaryPackagePurpose.Related issues
Closes #251
Checklist
pnpm testpasses (477 files, 5053 tests)pnpm lintis clean (exit 0; 5 pre-existing warnings insrc/codeandsrc/engine, none in this diff)pnpm typecheckis cleangit commit -s, DCO)Notes for reviewers
Merge commit
09e3180c9550481611288b988fa63f22588b3ef8(parents86f5d09anded25717, which is currentorigin/main, including #367). Diff againstmainisDOCS.mdandREADME.mdonly.No emitter change in this branch. Types are still
metadata.component.typeapplicationand everycomponentsentrylibrary.toSpdxnever setsprimaryPackagePurpose.Please leave this PR as a draft. Squash-merge when you are ready.