aboutcode-org / aboutcode-org/scancode-toolkit

Cannot output SBOM in cycloneDX format in tutorial

Ouverte
#3,784 6 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
bug
Langage dominant
Python
Étoiles
2.6k
Forks
791
Merge moyen
1 j 12 h
PR mergées (30 j)
5

Description

### Description

Tutorials are provided.
The command as in the tutorial outputs SBOM, but if I set output to --cyclonedx, it does not output the correct SBOM.

### How To Reproduce

tutorial command
` ./scancode -clpeui -n 2 --ignore "*.java" --json-pp sample.json samples `

Commands I have executed
` ./scancode -clpeui -n 2 --ignore "*.java" --cyclonedx sample.json samples `

output
```
{
"bomFormat": "CycloneDX",
"specVersion": "1.3",
"serialNumber": "urn:uuid:1a1b4416-ac60-4192-8743-e5297669c340",
"version": 1,
"metadata": {
"timestamp": "2024-05-21T09:53:32Z",
"tools": [
{
"vendor": "AboutCode.org",
"name": "scancode-toolkit",
"version": "32.1.0"
}
],
"properties": [
{
"name": "notice",
"value": "Generated with ScanCode and provided on an \"AS IS\" BASIS, WITHOUT WARRANTIES\nOR CONDITIONS OF ANY KIND, either express or implied. No content created from\nScanCode should be considered or used as legal advice. Consult an Attorney\nfor any legal advice.\nScanCode is a free software code scanning tool from nexB Inc. and others.\nVisit https://github.com/nexB/scancode-toolkit/ for support and download."
},
{
"name": "errors",
"value": []
},
{
"name": "warnings",
"value": []
},
{
"name": "message",
"value": null
},
{
"name": "system_environment",
"value": {
"operating_system": "linux",
"cpu_architecture": "64",
"platform": "Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35",
"platform_version": "#1 SMP Thu Jan 11 04:09:03 UTC 2024",
"python_version": "3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]"
}
},
{
"name": "spdx_license_list_version",
"value": "3.23"
}
]
},
"components": [],
"dependencies": []
}
```
this output do not write scan result.
And I need the Schema property and it is not included in the json file above.
If you already have a solution to these problems, please let me know.### System configuration.
Thank you!

> For bug reports, it really helps us to know:

* What OS are you running on? (Windows/MacOS/Linux)
wsl2 ubuntu
* What version of scancode-toolkit was used to generate the scan file?
version v32.1.0
* What installation method was used to install/run scancode? (pip/source download/other)
source download

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.