+
Skip to content

Add support for generating an SBOM documents #64

@sethmlarson

Description

@sethmlarson

Vendoring downloads Python packages for local bundling. For users of vendoring to easily take advantage of PEP 770 and ship SBOMs detailing bundled dependencies I propose adding a simple flag which writes dependency information into an SBOM document:

$ python -m vendoring ... --sbom=src/pip/_vendor/bom.cdx.json

Then projects can specify that same file for PEP 770 to automatically include the SBOM file describing bundled dependencies:

[project]
name = "pip"

[dist-info.files]
sboms = [
  "src/pip/_vendor/bom.cdx.json"
]

For simplicity I recommend using the CycloneDX 2.x SBOM format and only recording basic information (name, version, download location, etc). Additional information can be added later, if necessary.

I'm willing to create a patch for this feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载