Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1.09 KB

syft_sbom.md

File metadata and controls

39 lines (26 loc) · 1.09 KB

To load these rules, add this to the top of your BUILD file:

load("@rules_syft//syft:defs.bzl", ...)

syft_sbom

syft_sbom(name, image, scope)

Generate SBOM for an oci_image using syft binary that is pulled as a toolchain.

oci_image(
    name = "image"
)

syft_sbom(
    name = "generate_sbom",
    image = ":image"
)

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
image Label to an oci_image directory Label required
scope selection of layers to catalog String optional "squashed"