File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed
tools/openchain_telco_sbom_validator
src/openchain_telco_sbom_validator Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 33A script to validate SBOMs against
44the [ OpenChain Telco SBOM Guide] ( https://github.com/OpenChain-Project/Telco-WG/blob/main/OpenChain-Telco-SBOM-Guide_EN.md ) .
55
6+ What is new in version 0.3.3:
7+ * fixed a bug when the CISA SBOM type was followed by another line of text in the comment.
8+
69What is new in version 0.3.2:
710* option ` --strict-url-check ` now also checks the value of the PackageChecksum if present.
811
Original file line number Diff line number Diff line change 11[metadata]
22name = openchain-telco-sbom-validator
3- version = 0.3.2
3+ version = 0.3.3
44author = Gergely Csatari, Marc-Etienne Vargenau
55author_email = gergely.csatari@nokia.com, marc-etienne.vargenau@nokia.com
66description = Validator against versions 1.0 and 1.1 of the OpenChain Telco SBOM Guide
Original file line number Diff line number Diff line change @@ -377,6 +377,8 @@ def validate(self,
377377 # Remove punctuation
378378 translator = str .maketrans ('' , '' , string .punctuation )
379379 creator_comment = creator_comment .translate (translator )
380+ # Replace carriage return and line feed by space
381+ creator_comment = creator_comment .replace ('\r ' , ' ' ).replace ('\n ' , ' ' )
380382 tokens = re .split (r'[ :]+' , creator_comment )
381383 logger .debug (f"Strict check is off. (CreatorComment words: { tokens } )" )
382384 if not any (sbom_type in tokens for sbom_type in cisaSBOMTypes ):
You can’t perform that action at this time.
0 commit comments