Skip to content

oc aibomrun export

oc aibomrun export <name>                 # same as -o cyclonedx
oc aibomrun export <name> -o cyclonedx
oc aibomrun export <name> | jq '.components[] | select(.type == "library") | .purl'

Prints one AIBOM in another format on stdout. Nothing is written to the cluster or to disk. -o/--output picks the format; cyclonedx, the default, is the only one so far, and an unknown value fails with the list of supported ones.

cyclonedx

A CycloneDX 1.6 JSON document, for tools that read software and ML BOMs (Dependency-Track, GUAC, Lightwell).

The mapping follows aibom-webhook-service's CycloneDX mapping, which lists every record field with where it goes. Most fields have no native CycloneDX place and become aibomrun:* properties. The record itself stays the signed source; the document is derived from it and unsigned. It carries the record's signature and a SHA-256 of the record's canonical form in an attestation reference, so a reader can check it against the record.

The record's signature is checked first, as in describe. If it isn't verified, a warning goes to stderr and the document is still printed, so stdout is always just the JSON.