Skip to content

Conversation

jiparis
Copy link
Member

@jiparis jiparis commented Jun 30, 2025

This PR includes a new annotation to signal when a CycloneDX report contains a vulnerabilities list, so that it can be used as a vulnerabilities report.

This PR also fixes some CycloneDX schema incompatibilities found in some Xray reports. In particular:

  • null CWE list in vulnerabilities. "cwes": null is not a valid value
  • legacy tools format (pre-v1.5) for v1.6 reports. The standard discourages it (deprecated), but it's still supported
┌────────────────────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Name               │ material-1751293484978299000                                                                                                     │
├────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Type               │ SBOM_CYCLONEDX_JSON                                                                                                              │
├────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Required           │ No                                                                                                                               │
├────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Value              │ jfrog-xray-report.json                                                                                                           │
├────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Digest             │ sha256:051a9a7dbb6a2f050967578a9ca12d9e44802fc66276218e1152057a4e401cb8                                                          │
├────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Annotations        │ ------                                                                                                                           │
├────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│                    │ chainloop.material.tool.version: 3.123.4                                                                                         │
├────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│                    │ chainloop.material.sbom.vulnerabilities_report: true                                                                             │
├────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│                    │ chainloop.material.tool.name: Xray                                                                                               │
├────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Policy evaluations │ ------                                                                                                                           │
├────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤

Signed-off-by: Jose I. Paris <jiparis@chainloop.dev>
@jiparis jiparis requested review from migmartri and javirln June 30, 2025 14:31
jiparis added 2 commits June 30, 2025 16:40
Signed-off-by: Jose I. Paris <jiparis@chainloop.dev>
Signed-off-by: Jose I. Paris <jiparis@chainloop.dev>
@jiparis jiparis merged commit b8a1646 into chainloop-dev:main Jun 30, 2025
13 checks passed
@jiparis jiparis deleted the PFM-3225-cdxannotations branch June 30, 2025 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants