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
bundle the SBOM inside the springboot executable jar
make the SBOM a Bazel output (or a separate rule), such that input into other rules, such as custom validation rules. "scan the SBOM and look for xyz and fail my build if it is found"
sprintboot(
...
sbom_generate = True, # default True as of 2.4.0
sbom_format = "cyclonedx", # only supported value as of 2.4.0
)
Implemenation:
I learned at BazelCon rules_license has apparently gotten support from rules_jvm_external to populate the sbom provider. Look into rules_license as the primary means for generating the sbom. Balance the benefits of that against taking a hard dependency on another project.
The text was updated successfully, but these errors were encountered:
plaird
changed the title
Provide a list of packaged files (BOM) as an output
Provide a list of packaged files (SBOM, CycloneDX) as an output
Oct 29, 2024
In addition to the executable jar, the rule should produce a Bill of Materials that lists everything packaged in the jar.
The Maven plugin beat us to this. I like their solution, so look at what they are doing:
https://spring.io/blog/2024/05/24/sbom-support-in-spring-boot-3-3
Two outputs:
Implemenation:
I learned at BazelCon rules_license has apparently gotten support from rules_jvm_external to populate the sbom provider. Look into rules_license as the primary means for generating the sbom. Balance the benefits of that against taking a hard dependency on another project.
The text was updated successfully, but these errors were encountered: