Auto-Annotations of SBOMs by Editing Tools #45
riteshnoronha
started this conversation in
General
Replies: 1 comment 1 reply
-
Generally speaking, I like this. Will raise it in today's call. My biggest concern would be lack support of this across tools. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As SBOMs move through a pipeline, it would be highly beneficial to track how and what changes are made. Currently, I don’t believe any open-source tools automatically add annotations when they modify an SBOM, even though both major SBOM specifications (SPDX, CycloneDX) treat annotations as first-class objects, which can be used for exactly this purpose.
Minimum Annotation Guidelines:
Tool Identification: If a tool edits an SBOM, it should first add itself to the list of creators.
Detailed Change Tracking: Any changes to a component, dependency, or document should be annotated at the most granular level possible.
For example, if a supplier is added or removed for a component, the component itself should have an annotation noting this change.
Fallback to Document-Level Annotations: If specific details of a change cannot be captured at the component level, the annotation should be applied at the document level.
SBOMASM Approach:
In SBOMASM, we are implementing automatic annotations for every edit made. We are also introducing a new feature that allows for manual annotations, in case an editing tool does not natively support auto-annotations.
Example Annotation:
The following command in SBOMASM demonstrates how an edit would be tracked:
This would produce an SBOM with the following annotation:
This ensures that every change is traceable, making the SBOM evolution transparent throughout the pipeline.
Would love your thoughts on this topic.
Beta Was this translation helpful? Give feedback.
All reactions