Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] 扫描Jar包,生成的CycloneDX格式有误 #306

Open
yangyang-zhang opened this issue Jan 9, 2025 · 0 comments
Open

[Bug] 扫描Jar包,生成的CycloneDX格式有误 #306

yangyang-zhang opened this issue Jan 9, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@yangyang-zhang
Copy link

使用最新版本, 扫描spring boot打包成的jar包,生成cdx.json,metadata内容如下,其中多了一个purl内容,其他项目使用这个文件会解析出错,删除metadata里的purl内容即可
{ "$schema": "http://cyclonedx.org/schema/bom-1.5.schema.json", "bomFormat": "CycloneDX", "specVersion": "1.5", "version": 1, "metadata": { "component": { "bom-ref": "pkg:/@", "type": "application", "name": "", "purl": "pkg:/@" } },

使用go解析出错如下

failed to parse sbom: failed to parse root component: failed to parse metadata component: failed to parse PURL: purl is missing type or name

@yangyang-zhang yangyang-zhang added the bug Something isn't working label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants