Repository navigation
comp_with_valid_licenses in score 0/10 but with list --missing no finding #658
Replies: 2 comments 1 reply
|
List command basically lists all those components containing the field with the corresponding values. https://github.com/interlynk-io/sbomqs/blob/main/docs/commands/list.md. Whereas adding Score command overall checks how many components have the corresponding fields values out of total components, and score it on the basis of that. Here, in your case, it looks for valid license, if so, then add it into score list, and then calculate the score. Can you provide SBOM file. |
|
Hello, the sbom was created by the cyclonedx maven plugin. According to the fact that the sbom is more that 12000 lines long , I posted only one component. What must be chaged in order to satisfy the comp_with_valid_licenses score category ? {
"type" : "library",
"bom-ref" : "pkg:maven/org.slf4j/slf4j-api@2.0.17?type=jar",
"publisher" : "QOS.ch",
"group" : "org.slf4j",
"name" : "slf4j-api",
"version" : "2.0.17",
"description" : "The slf4j API",
"scope" : "required",
"hashes" : [
{
"alg" : "MD5",
"content" : "b6480d114a23683498ac3f746f959d2f"
},
{
"alg" : "SHA-1",
"content" : "d9e58ac9c7779ba3bf8142aff6c830617a7fe60f"
},
{
"alg" : "SHA-256",
"content" : "7b751d952061954d5abfed7181c1f645d336091b679891591d63329c622eb832"
},
{
"alg" : "SHA-512",
"content" : "9a3e79db6666a6096a3021bb2e1d918f30f589d8de51d6b600f8ebd92515a510ae2d8f87919cc2dfa8365d64f10194cac8dfa0fb950160eef0e9da06f6caaeb9"
},
{
"alg" : "SHA-384",
"content" : "6ea24f814a9b6ece428cfd0535e2f3b8927005745ef61006b50fdb5a90126ee5ea05650155382b3b755c5bce38ef3944"
},
{
"alg" : "SHA3-384",
"content" : "9b1015052f0ec43f9be09764e131834157599611cb52f6fe591c4ac6a8ab4817518f2a4b8871e5e738c8678e93af5557"
},
{
"alg" : "SHA3-256",
"content" : "00559b4f4066b4917ba4fe2a6f23111eaeada321112d030910d218ced9084b5e"
},
{
"alg" : "SHA3-512",
"content" : "9579c2f7e7516e177c2d493ccc9eb8150978cf19f6f09b28d116f6935239fd56dc6af2b62b3336f79b0b462445550cd1fb5377a07001a6f44aaab6a32fa2fa47"
}
],
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FUkNIQU5UQUJJTElUWSwgRklUTkVTUyBGT1IgQSBQQVJUSUNVTEFSIFBVUlBPU0UgQU5EIE5PTklORlJJTkdFTUVOVC4gSU4gTk8gRVZFTlQgU0hBTEwgVEhFIEFVVEhPUlMgT1IgQ09QWVJJR0hUIEhPTERFUlMgQkUgTElBQkxFIEZPUiBBTlkgQ0xBSU0sIERBTUFHRVMgT1IgT1RIRVIgTElBQklMSVRZLCBXSEVUSEVSIElOIEFOIEFDVElPTiBPRiBDT05UUkFDVCwgVE9SVCBPUiBPVEhFUldJU0UsIEFSSVNJTkcgRlJPTSwgT1VUIE9GIE9SIElOIENPTk5FQ1RJT04gV0lUSCBUSEUgU09GVFdBUkUgT1IgVEhFIFVTRSBPUiBPVEhFUiBERUFMSU5HUyBJTiBUSEUgU09GVFdBUkUuCg=="
},
"url" : "https://opensource.org/license/mit/"
}
}
],
"purl" : "pkg:maven/org.slf4j/slf4j-api@2.0.17?type=jar",
"externalReferences" : [
{
"type" : "website",
"url" : "http://www.slf4j.org"
},
{
"type" : "distribution-intake",
"url" : "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
},
{
"type" : "vcs",
"url" : "https://github.com/qos-ch/slf4j/slf4j-parent/slf4j-api"
}
]
}
` |
Uh oh!
There was an error while loading. Please reload this page.
When I put score data.sbom.cdx.json I get the following result
`
| comp_with_licenses (3.7%) | 0.0/10.0 | add to 167 components |
When I enter list data.sbom.cdx.json --feature comp_with_valid_licenses --missing
I get "No components found"
Could you please explain to me the difference between list and score regarding this feature ?
All reactions