Skip to content

Commit 17f98b6

Browse files
Merge branch 'v1.5-dev' into v1.5-dev-adversary-risk-extref
2 parents 41beb91 + 9847c91 commit 17f98b6

12 files changed

+1945
-59
lines changed

schema/bom-1.5.proto

Lines changed: 239 additions & 8 deletions
Large diffs are not rendered by default.

schema/bom-1.5.schema.json

Lines changed: 513 additions & 12 deletions
Large diffs are not rendered by default.

schema/bom-1.5.xsd

Lines changed: 847 additions & 38 deletions
Large diffs are not rendered by default.

tools/src/test/resources/1.5/valid-compositions-1.5.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,18 @@
4444
]
4545
}
4646
],
47+
"vulnerabilities": [
48+
{
49+
"bom-ref": "vulnerability-1",
50+
"id": "ACME-12345",
51+
"source": {
52+
"name": "Acme Inc"
53+
}
54+
}
55+
],
4756
"compositions": [
4857
{
58+
"bom-ref": "composition-1",
4959
"aggregate": "complete",
5060
"assemblies": [
5161
"pkg:maven/partner/[email protected]"
@@ -59,6 +69,12 @@
5969
"assemblies": [
6070
"pkg:maven/acme/[email protected]"
6171
]
72+
},
73+
{
74+
"aggregate": "incomplete_first_party_only",
75+
"vulnerabilities": [
76+
"vulnerability-1"
77+
]
6278
}
6379
]
6480
}

tools/src/test/resources/1.5/valid-compositions-1.5.textproto

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ dependencies {
3939
}
4040
}
4141
compositions {
42+
bom_ref: "composition-1"
4243
aggregate: AGGREGATE_COMPLETE
4344
assemblies: "pkg:maven/partner/[email protected]"
4445
dependencies: "acme-application-1.0"
@@ -47,3 +48,14 @@ compositions {
4748
aggregate: AGGREGATE_UNKNOWN
4849
assemblies: "pkg:maven/acme/[email protected]"
4950
}
51+
compositions {
52+
aggregate: AGGREGATE_INCOMPLETE_FIRST_PARTY_ONLY,
53+
vulnerabilities: "vulnerability-1"
54+
}
55+
vulnerabilities {
56+
bom_ref: "vulnerability-1"
57+
id: "ACME-12345"
58+
source: {
59+
name: "Acme Inc"
60+
}
61+
}

tools/src/test/resources/1.5/valid-compositions-1.5.xml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</dependency>
3333
</dependencies>
3434
<compositions>
35-
<composition>
35+
<composition bom-ref="composition-1">
3636
<aggregate>complete</aggregate>
3737
<assemblies>
3838
<assembly ref="pkg:maven/partner/[email protected]"/>
@@ -47,5 +47,19 @@
4747
<assembly ref="pkg:maven/acme/[email protected]"/>
4848
</assemblies>
4949
</composition>
50+
<composition>
51+
<aggregate>incomplete_first_party_only</aggregate>
52+
<assemblies>
53+
<assembly ref="vulnerability-1"/>
54+
</assemblies>
55+
</composition>
5056
</compositions>
57+
<vulnerabilities>
58+
<vulnerability bom-ref="vulnerability-1">
59+
<id>ACME-12345</id>
60+
<source>
61+
<name>Acme Inc</name>
62+
</source>
63+
</vulnerability>
64+
</vulnerabilities>
5165
</bom>

tools/src/test/resources/1.5/valid-machine-learning-1.5.json

Lines changed: 92 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
spec_version: "1.5"
2+
version: 1
3+
serial_number: "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79"
4+
components {
5+
type: CLASSIFICATION_MACHINE_LEARNING_MODEL
6+
bom_ref: "component-a"
7+
group: "CompVis"
8+
name: "stable-diffusion"
9+
version: "1.4"
10+
modelCard: {
11+
modelParameters: {
12+
approach: {
13+
type: MODEL_PARAMETER_APPROACH_TYPE_SUPERVISED
14+
}
15+
task: "task goes here"
16+
architectureFamily: "the architecture family goes here"
17+
modelArchitecture: "The architecture of the model."
18+
datasets: {
19+
dataset: {
20+
type: COMPONENT_DATA_TYPE_DATASET
21+
name: "Training Data"
22+
contents: {
23+
url: "https://example.com/path/to/dataset"
24+
}
25+
classification: "public"
26+
}
27+
}
28+
inputs: {
29+
format: "string"
30+
}
31+
outputs: {
32+
format: "string"
33+
}
34+
}
35+
quantitativeAnalysis: {
36+
performanceMetrics: {
37+
type: "The type of performance metric"
38+
value: "The value of the performance metric"
39+
slice: "The name of the slice this metric was computed on. By default, assume this metric is not sliced"
40+
confidenceInterval: {
41+
lowerBound: "The lower bound of the confidence interval"
42+
upperBound: "The upper bound of the confidence interval"
43+
}
44+
}
45+
}
46+
considerations: {
47+
users: "Who are the intended users of the model?"
48+
useCases: "Who are the intended users of the model?"
49+
technicalLimitations: "What are the known technical limitations of the model? E.g. What kind(s) of data should the model be expected not to perform well on? What are the factors that might degrade model performance?"
50+
performanceTradeoffs: "What are the known tradeoffs in accuracy/performance of the model?"
51+
ethicalConsiderations: {
52+
name: "The name of the risk"
53+
mitigationStrategy: "Strategy used to address this risk"
54+
}
55+
fairnessAssessments: {
56+
groupAtRisk: "The groups or individuals at risk of being systematically disadvantaged by the model"
57+
benefits: "Expected benefits to the identified groups"
58+
harms: "Expected harms to the identified groups"
59+
mitigationStrategy: "With respect to the benefits and harms outlined, please describe any mitigation strategy implemented."
60+
}
61+
}
62+
}
63+
}

tools/src/test/resources/1.5/valid-machine-learning-1.5.xml

Lines changed: 92 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"bomFormat": "CycloneDX",
3+
"specVersion": "1.5",
4+
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
5+
"version": 1,
6+
"metadata": {
7+
"lifecycles": [
8+
{
9+
"phase": "build"
10+
},
11+
{
12+
"phase": "post-build"
13+
},
14+
{
15+
"name": "platform-integration-testing",
16+
"description": "Integration testing specific to the runtime platform"
17+
}
18+
]
19+
},
20+
"components": []
21+
}

0 commit comments

Comments
 (0)