-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(sbom): use
Annotation
instead of AttributionTexts
for SPDX
…
…formats (#7811)
- Loading branch information
1 parent
b661d68
commit f2bb9c6
Showing
6 changed files
with
316 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,10 +31,15 @@ | |
"referenceLocator": "pkg:conda/[email protected]" | ||
} | ||
], | ||
"attributionTexts": [ | ||
"PkgType: conda-pkg" | ||
], | ||
"primaryPackagePurpose": "LIBRARY" | ||
"primaryPackagePurpose": "LIBRARY", | ||
"annotations": [ | ||
{ | ||
"annotator": "Tool: trivy-dev", | ||
"annotationDate": "2021-08-25T12:20:30Z", | ||
"annotationType": "OTHER", | ||
"comment": "PkgType: conda-pkg" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "pip", | ||
|
@@ -55,20 +60,30 @@ | |
"referenceLocator": "pkg:conda/[email protected]" | ||
} | ||
], | ||
"attributionTexts": [ | ||
"PkgType: conda-pkg" | ||
], | ||
"primaryPackagePurpose": "LIBRARY" | ||
"primaryPackagePurpose": "LIBRARY", | ||
"annotations": [ | ||
{ | ||
"annotator": "Tool: trivy-dev", | ||
"annotationDate": "2021-08-25T12:20:30Z", | ||
"annotationType": "OTHER", | ||
"comment": "PkgType: conda-pkg" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "testdata/fixtures/repo/conda", | ||
"SPDXID": "SPDXRef-Filesystem-2e2426fd0f2580ef", | ||
"downloadLocation": "NONE", | ||
"filesAnalyzed": false, | ||
"attributionTexts": [ | ||
"SchemaVersion: 2" | ||
], | ||
"primaryPackagePurpose": "SOURCE" | ||
"primaryPackagePurpose": "SOURCE", | ||
"annotations": [ | ||
{ | ||
"annotator": "Tool: trivy-dev", | ||
"annotationDate": "2021-08-25T12:20:30Z", | ||
"annotationType": "OTHER", | ||
"comment": "SchemaVersion: 2" | ||
} | ||
] | ||
} | ||
], | ||
"files": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,11 +17,21 @@ | |
"SPDXID": "SPDXRef-Application-18fc3597717a3e56", | ||
"downloadLocation": "NONE", | ||
"filesAnalyzed": false, | ||
"attributionTexts": [ | ||
"Class: lang-pkgs", | ||
"Type: julia" | ||
], | ||
"primaryPackagePurpose": "APPLICATION" | ||
"primaryPackagePurpose": "APPLICATION", | ||
"annotations": [ | ||
{ | ||
"annotator": "Tool: trivy-dev", | ||
"annotationDate": "2021-08-25T12:20:30Z", | ||
"annotationType": "OTHER", | ||
"comment": "Class: lang-pkgs" | ||
}, | ||
{ | ||
"annotator": "Tool: trivy-dev", | ||
"annotationDate": "2021-08-25T12:20:30Z", | ||
"annotationType": "OTHER", | ||
"comment": "Type: julia" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "A", | ||
|
@@ -40,11 +50,21 @@ | |
"referenceLocator": "pkg:julia/[email protected]?uuid=ead4f63c-334e-11e9-00e6-e7f0a5f21b60" | ||
} | ||
], | ||
"attributionTexts": [ | ||
"PkgID: ead4f63c-334e-11e9-00e6-e7f0a5f21b60", | ||
"PkgType: julia" | ||
], | ||
"primaryPackagePurpose": "LIBRARY" | ||
"primaryPackagePurpose": "LIBRARY", | ||
"annotations": [ | ||
{ | ||
"annotator": "Tool: trivy-dev", | ||
"annotationDate": "2021-08-25T12:20:30Z", | ||
"annotationType": "OTHER", | ||
"comment": "PkgID: ead4f63c-334e-11e9-00e6-e7f0a5f21b60" | ||
}, | ||
{ | ||
"annotator": "Tool: trivy-dev", | ||
"annotationDate": "2021-08-25T12:20:30Z", | ||
"annotationType": "OTHER", | ||
"comment": "PkgType: julia" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "B", | ||
|
@@ -63,11 +83,21 @@ | |
"referenceLocator": "pkg:julia/[email protected]?uuid=f41f7b98-334e-11e9-1257-49272045fb24" | ||
} | ||
], | ||
"attributionTexts": [ | ||
"PkgID: f41f7b98-334e-11e9-1257-49272045fb24", | ||
"PkgType: julia" | ||
], | ||
"primaryPackagePurpose": "LIBRARY" | ||
"primaryPackagePurpose": "LIBRARY", | ||
"annotations": [ | ||
{ | ||
"annotator": "Tool: trivy-dev", | ||
"annotationDate": "2021-08-25T12:20:30Z", | ||
"annotationType": "OTHER", | ||
"comment": "PkgID: f41f7b98-334e-11e9-1257-49272045fb24" | ||
}, | ||
{ | ||
"annotator": "Tool: trivy-dev", | ||
"annotationDate": "2021-08-25T12:20:30Z", | ||
"annotationType": "OTHER", | ||
"comment": "PkgType: julia" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "B", | ||
|
@@ -86,21 +116,36 @@ | |
"referenceLocator": "pkg:julia/[email protected]?uuid=edca9bc6-334e-11e9-3554-9595dbb4349c" | ||
} | ||
], | ||
"attributionTexts": [ | ||
"PkgID: edca9bc6-334e-11e9-3554-9595dbb4349c", | ||
"PkgType: julia" | ||
], | ||
"primaryPackagePurpose": "LIBRARY" | ||
"primaryPackagePurpose": "LIBRARY", | ||
"annotations": [ | ||
{ | ||
"annotator": "Tool: trivy-dev", | ||
"annotationDate": "2021-08-25T12:20:30Z", | ||
"annotationType": "OTHER", | ||
"comment": "PkgID: edca9bc6-334e-11e9-3554-9595dbb4349c" | ||
}, | ||
{ | ||
"annotator": "Tool: trivy-dev", | ||
"annotationDate": "2021-08-25T12:20:30Z", | ||
"annotationType": "OTHER", | ||
"comment": "PkgType: julia" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "testdata/fixtures/repo/julia", | ||
"SPDXID": "SPDXRef-Filesystem-1be792dd0077c431", | ||
"downloadLocation": "NONE", | ||
"filesAnalyzed": false, | ||
"attributionTexts": [ | ||
"SchemaVersion: 2" | ||
], | ||
"primaryPackagePurpose": "SOURCE" | ||
"primaryPackagePurpose": "SOURCE", | ||
"annotations": [ | ||
{ | ||
"annotator": "Tool: trivy-dev", | ||
"annotationDate": "2021-08-25T12:20:30Z", | ||
"annotationType": "OTHER", | ||
"comment": "SchemaVersion: 2" | ||
} | ||
] | ||
} | ||
], | ||
"relationships": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.