Skip to content

Commit cf231a9

Browse files
docs: add example sboms (fixes #26)
1 parent 329fcbc commit cf231a9

File tree

7 files changed

+2381
-0
lines changed

7 files changed

+2381
-0
lines changed

examples/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Examples
2+
3+
Various examples of SBOMs generated by sbom4python.

examples/pip.cdx.json

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
{
2+
"$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
3+
"bomFormat": "CycloneDX",
4+
"specVersion": "1.6",
5+
"serialNumber": "urn:uuid:c62c4124-f89f-44eb-9d50-28e904f52864",
6+
"version": 1,
7+
"metadata": {
8+
"timestamp": "2024-12-01T22:11:45Z",
9+
"lifecycles": [
10+
{
11+
"phase": "build"
12+
}
13+
],
14+
"tools": {
15+
"components": [
16+
{
17+
"name": "sbom4python",
18+
"version": "0.12.0",
19+
"type": "application"
20+
}
21+
]
22+
},
23+
"component": {
24+
"type": "application",
25+
"bom-ref": "CDXRef-DOCUMENT",
26+
"name": "Python-pip"
27+
}
28+
},
29+
"components": [
30+
{
31+
"type": "application",
32+
"bom-ref": "1-pip",
33+
"name": "pip",
34+
"version": "22.3",
35+
"supplier": {
36+
"name": "The pip developers",
37+
"contact": [
38+
{
39+
"email": "[email protected]"
40+
}
41+
]
42+
},
43+
"cpe": "cpe:2.3:a:the_pip_developers:pip:22.3:*:*:*:*:*:*:*",
44+
"description": "The PyPA recommended tool for installing Python packages.",
45+
"hashes": [
46+
{
47+
"alg": "SHA-256",
48+
"content": "1daab4b8d3b97d1d763caeb01a4640a2250a0ea899e257b1e44b9eded91e15ab"
49+
}
50+
],
51+
"licenses": [
52+
{
53+
"license": {
54+
"id": "MIT",
55+
"url": "https://opensource.org/license/mit/",
56+
"acknowledgement": "concluded"
57+
}
58+
}
59+
],
60+
"externalReferences": [
61+
{
62+
"url": "https://pip.pypa.io/",
63+
"type": "website",
64+
"comment": "Home page for project"
65+
},
66+
{
67+
"url": "https://pypi.org/project/pip/22.3/#files",
68+
"type": "distribution",
69+
"comment": "Download location for component"
70+
},
71+
{
72+
"url": "https://pip.pypa.io",
73+
"type": "documentation"
74+
},
75+
{
76+
"url": "https://github.com/pypa/pip",
77+
"type": "vcs"
78+
},
79+
{
80+
"url": "https://pip.pypa.io/en/stable/news/",
81+
"type": "log"
82+
}
83+
],
84+
"purl": "pkg:pypi/[email protected]",
85+
"properties": [
86+
{
87+
"name": "release_date",
88+
"value": "2022-10-15T11:41:14.000Z"
89+
},
90+
{
91+
"name": "language",
92+
"value": "Python"
93+
},
94+
{
95+
"name": "python_version",
96+
"value": "3.10.8"
97+
}
98+
]
99+
}
100+
],
101+
"dependencies": [
102+
{
103+
"ref": "CDXRef-DOCUMENT",
104+
"dependsOn": [
105+
"1-pip"
106+
]
107+
}
108+
]
109+
}

examples/pip.spdx

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
SPDXVersion: SPDX-2.3
2+
DataLicense: CC0-1.0
3+
SPDXID: SPDXRef-DOCUMENT
4+
DocumentName: Python-pip
5+
DocumentNamespace: http://spdx.org/spdxdocs/Python-pip-e95b8c00-863d-4be7-ae23-9ce6d78d96ba
6+
LicenseListVersion: 3.25.0
7+
Creator: Tool: sbom4python-0.12.0
8+
Created: 2024-12-01T22:12:06Z
9+
CreatorComment: <text>This document has been automatically generated.</text>
10+
#####
11+
12+
PackageName: pip
13+
SPDXID: SPDXRef-1-pip
14+
PackageVersion: 22.3
15+
PrimaryPackagePurpose: APPLICATION
16+
PackageSupplier: Organization: The pip developers ([email protected])
17+
PackageDownloadLocation: https://pypi.org/project/pip/22.3/#files
18+
FilesAnalyzed: false
19+
PackageHomePage: https://pip.pypa.io/
20+
PackageChecksum: SHA256: 1daab4b8d3b97d1d763caeb01a4640a2250a0ea899e257b1e44b9eded91e15ab
21+
PackageLicenseDeclared: MIT
22+
PackageLicenseConcluded: MIT
23+
PackageCopyrightText: NOASSERTION
24+
PackageSummary: <text>The PyPA recommended tool for installing Python packages.</text>
25+
BuiltDate: 2022-10-15T11:41:14.000Z
26+
ExternalRef: OTHER documentation https://pip.pypa.io
27+
ExternalRef: OTHER vcs https://github.com/pypa/pip
28+
ExternalRef: OTHER log https://pip.pypa.io/en/stable/news/
29+
ExternalRef: PACKAGE_MANAGER purl pkg:pypi/[email protected]
30+
ExternalRef: SECURITY cpe23Type cpe:2.3:a:the_pip_developers:pip:22.3:*:*:*:*:*:*:*
31+
#####
32+
33+
Relationship: SPDXRef-DOCUMENT DESCRIBES SPDXRef-1-pip

0 commit comments

Comments
 (0)