-
Notifications
You must be signed in to change notification settings - Fork 29
Description
Hello,
I using sbomqs to validate an SBOM template (CycloneDX v1.6 JSON) against the BSI v2.1.0 standard.
While sbomqs only supports BSI v2.0 the changelog in v2.1.0 does not list anything significant differences.
But I noticed that the source code URL and source code hash are not detected by sbomqs, while the input SBOM complies to the BSI format.
BSI format:
"components": [{
"externalReferences": [{
"type": "source-distribution",
"url": "..."
}]
}]
In file:
"externalReferences":[
{
"type": "source-distribution",
"url": "https://svn.ACME.com/..../Measure.c",
"hashes": [
{
"alg": "SHA-512",
"content": "25bce836d2eac1faa04bb4160c23434b855db09da0be765b95e21e0ba0ab822fec28463bfac147267b89ce343a5d3195a58fd9c7f6a95b41780c24cb522739ef"
}
]
}
]
The same is true for the hash, but sbomqs picksup a hash at this level:
"components": [{
"hashes": {...}
}]
and interprets this as being under the
"components": [{
"externalReferences": [{
"type": "source-distribution",
"hashes": [{
"alg": "SHA-512",
"content": "..."
}]
}]
}]
I have attached the sbom test file.
Hope it can be fixed
Best Regards,
Robin