CycloneDX / CycloneDX/specification
Dedicated node for licenses
- Lingua principale
- XSLT
- Stelle
- 551
- Fork
- 93
- Merge medio
- 4h 45m
- PR unite (30g)
- 43
Descrizione
Currently with the current spec if we have n dependencies with the same license and if we need to include the license text this leads to a lot of duplicated text and huge increase on the file size.
As an example on the files we are generating if we do not include the license text the file is around 5MB, if we include the text we have more than 500MB per file.
Ideally we should have a dedicated node that could contain the details, so the dependencies contain the ID and this dedicated node could contain the details like the license text.
```json5
{
// ...
"components": [
// ...
{
"type": "library",
"bom-ref": "pkg:xxx",
"publisher": "xxxx",
"group": "com.xxx",
"name": "xxx",
"version": "x.x.x",
// ....
"licenses": [
{
"license": {
"id": "Apache-2.0"
}
}
],
}
],
licenses: {
"Apache-2.0": {
"text" : "licence text",
}
},
}
```
----
see also: https://cyclonedx.slack.com/archives/CVA0G10FN/p1688979060505779
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Esamina l’attuale rappresentazione delle licenze CycloneDX nella specifica e nell’esempio di BOM generato, quindi leggi la discussione Slack collegata per il contesto precedente. Il lavoro è completato quando la specifica definisce un nodo license-details condiviso, i componenti lo referenziano tramite il relativo ID e i file generati non duplicano più lo stesso testo della licenza.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Ambito
- documentation
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 25/100