sbom

package
v0.1.0-rc.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package sbom turns the top-level elements of an SBOM into attestation subjects. The SBOM is located and fetched with the carabiner collector (so it can live on a filesystem, a release, an OCI registry, etc — anywhere a collector driver reaches) and parsed with protobom, so both SPDX and CycloneDX documents work, bare or wrapped in an attestation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectSubjects

func CollectSubjects(ctx context.Context, init string, filter []string) ([]*intoto.ResourceDescriptor, error)

CollectSubjects fetches the SBOM(s) reachable through the collector init string (eg "fs:sboms/", "release:owner/repo@v1.0.0", "jsonl:atts.jsonl") and returns their top-level elements as attestation subjects. The filter globs, when given, are matched against the top-level node names. Because the subjects go into an attestation, every collected node must carry at least one digest in an algorithm in-toto recognizes.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL