-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(spec1-5): add support for additional compositions and compositio…
…n identity Signed-off-by: nscuro <[email protected]>
- Loading branch information
Showing
6 changed files
with
104 additions
and
11 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
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
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 |
---|---|---|
|
@@ -46,6 +46,7 @@ | |
], | ||
"compositions": [ | ||
{ | ||
"bom-ref": "composition-1", | ||
"aggregate": "complete", | ||
"assemblies": [ | ||
"pkg:maven/partner/[email protected]" | ||
|
@@ -59,6 +60,21 @@ | |
"assemblies": [ | ||
"pkg:maven/acme/[email protected]" | ||
] | ||
}, | ||
{ | ||
"aggregate": "incomplete_first_party_only", | ||
"vulnerabilities": [ | ||
"vulnerability-1" | ||
] | ||
} | ||
], | ||
"vulnerabilities": [ | ||
{ | ||
"bom-ref": "vulnerability-1", | ||
"id": "ACME-12345", | ||
"source": { | ||
"name": "Acme Inc" | ||
} | ||
} | ||
] | ||
} | ||
|
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 |
---|---|---|
|
@@ -32,7 +32,7 @@ | |
</dependency> | ||
</dependencies> | ||
<compositions> | ||
<composition> | ||
<composition bom-ref="composition-1"> | ||
<aggregate>complete</aggregate> | ||
<assemblies> | ||
<assembly ref="pkg:maven/partner/[email protected]"></assembly> | ||
|
@@ -47,5 +47,19 @@ | |
<assembly ref="pkg:maven/acme/[email protected]"></assembly> | ||
</assemblies> | ||
</composition> | ||
<composition> | ||
<aggregate>incomplete_first_party_only</aggregate> | ||
<assemblies> | ||
<assembly ref="vulnerability-1"></assembly> | ||
</assemblies> | ||
</composition> | ||
</compositions> | ||
<vulnerabilities> | ||
<vulnerability bom-ref="vulnerability-1"> | ||
<id>ACME-12345</id> | ||
<source> | ||
<name>Acme Inc</name> | ||
</source> | ||
</vulnerability> | ||
</vulnerabilities> | ||
</bom> |
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 |
---|---|---|
|
@@ -44,8 +44,18 @@ | |
] | ||
} | ||
], | ||
"vulnerabilities": [ | ||
{ | ||
"bom-ref": "vulnerability-1", | ||
"id": "ACME-12345", | ||
"source": { | ||
"name": "Acme Inc" | ||
} | ||
} | ||
], | ||
"compositions": [ | ||
{ | ||
"bom-ref": "composition-1", | ||
"aggregate": "complete", | ||
"assemblies": [ | ||
"pkg:maven/partner/[email protected]" | ||
|
@@ -59,6 +69,12 @@ | |
"assemblies": [ | ||
"pkg:maven/acme/[email protected]" | ||
] | ||
}, | ||
{ | ||
"aggregate": "incomplete_first_party_only", | ||
"vulnerabilities": [ | ||
"vulnerability-1" | ||
] | ||
} | ||
] | ||
} |
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,8 +31,16 @@ | |
<dependency ref="pkg:maven/acme/[email protected]"/> | ||
</dependency> | ||
</dependencies> | ||
<vulnerabilities> | ||
<vulnerability bom-ref="vulnerability-1"> | ||
<id>ACME-12345</id> | ||
<source> | ||
<name>Acme Inc</name> | ||
</source> | ||
</vulnerability> | ||
</vulnerabilities> | ||
<compositions> | ||
<composition> | ||
<composition bom-ref="composition-1"> | ||
<aggregate>complete</aggregate> | ||
<assemblies> | ||
<assembly ref="pkg:maven/partner/[email protected]"/> | ||
|
@@ -47,5 +55,11 @@ | |
<assembly ref="pkg:maven/acme/[email protected]"/> | ||
</assemblies> | ||
</composition> | ||
<composition> | ||
<aggregate>incomplete_first_party_only</aggregate> | ||
<assemblies> | ||
<assembly ref="vulnerability-1"/> | ||
</assemblies> | ||
</composition> | ||
</compositions> | ||
</bom> |