You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add cargo-auditable support for dependency SBOM embedding
Embeds cargo-auditable compatible dependency metadata (.dep-v0 section)
into Rust binaries and shared libraries. When enabled via
--@rules_rust//rust/settings:auditable=true, the build generates a JSON
dependency manifest, zlib-compresses it, and links it into the binary as
a .dep-v0 ELF section. This enables vulnerability scanning tools like
trivy/syft to extract dependency information from compiled binaries.
Key changes:
- New auditable_injector tool that generates platform-appropriate .dep-v0
object files from JSON dependency manifests
- CrateInfo provider extended with pkg_name, version, and source fields
- New bool_flag //rust/settings:auditable to control the feature
- rust_binary and rust_shared_library gain an auditable_injector attribute
- Analysis tests verify action graph correctness
0 commit comments