Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,44 @@ filegroup(
srcs = ["README.md"],
visibility = ["//visibility:public"],
)

# ============================================================================
# SBOM Generation Targets
# ============================================================================
load("@score_tooling//sbom:defs.bzl", "sbom")

# SBOM for orchestrator + persistency example
sbom(
name = "sbom_orch_per",
targets = ["//feature_showcase/rust:orch_per_example"],
cargo_lockfile = "@score_orchestrator//:Cargo.lock",
component_name = "orch_per_example",
component_version = "0.5.0-beta",
auto_crates_cache = True,
auto_cdxgen = True, # Uses system-installed npm/cdxgen from PATH
)

# SBOM for kyron example
sbom(
name = "sbom_kyron",
targets = ["//feature_showcase/rust:kyron_example"],
cargo_lockfile = "@score_orchestrator//:Cargo.lock",
component_name = "kyron_example",
component_version = "0.5.0-beta",
auto_crates_cache = True,
auto_cdxgen = True, # Uses system-installed npm/cdxgen from PATH
)

# Combined SBOM for all public targets
sbom(
name = "sbom_all",
targets = [
"//feature_showcase/rust:orch_per_example",
"//feature_showcase/rust:kyron_example",
],
cargo_lockfile = "@score_orchestrator//:Cargo.lock",
component_name = "score_reference_integration",
component_version = "0.5.0-beta",
auto_crates_cache = True,
auto_cdxgen = True, # Uses system-installed npm/cdxgen from PATH
)
10 changes: 10 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,13 @@ git_override(
bazel_dep(name = "rules_rust", version = "0.67.0")
bazel_dep(name = "score_itf", version = "0.1.0")
bazel_dep(name = "score_crates", version = "0.0.6")

# ============================================================================
# SBOM Metadata Collection
# ============================================================================
# Enable SBOM metadata collection from all modules in the dependency graph
sbom_ext = use_extension(
"@score_tooling//sbom:extensions.bzl",
"sbom_metadata",
)
use_repo(sbom_ext, "sbom_metadata")
Loading