Should we have a separate "source" SBOM and "build" SBOM
Based on the Open SSF SBOM Naming recommendations (draft at this point), there should be separate SBOM's for the binary artifacts and the source artifacts.
We currently include the source information and the build information in the same SBOM as the source.
One thought is to have 3 SBOM - consolidated, source only, build only.
This would be nice, i have to delete the source type currently to get the build part only.
How about we add a parameter sbomType with the following options:
source- a source only SBOMbuild- a build only SBOMconsolidated- (default) both source and build in the same SBOM - same as current functionalityboth- create 2 separate SBOMs appending-sourceand-buildto the file names
@joerg1985 - Let me know any thoughts
It looks like it would be much easier to just have 3 options:
- build
- consolidated
- source
We could add the "both" or "separate" option later if there is interest.
@goneall I don't think both is needed, you could just add a second execution to your pom to get both files.
@joerg1985 Excellent point - I'll add a PR with the 3 options build, consolidated, source.