To load these rules, add this to the top of your BUILD file:
load("@rules_syft//syft:defs.bzl", ...)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" |