Skip to content

Commit 888c1de

Browse files
Merge pull request #181 from CycloneDX/v1.5-dev-vuln-rejected
Adding support vulnerability rejected timestamp along with unit tests
2 parents 168e4ac + cfa01b5 commit 888c1de

6 files changed

Lines changed: 19 additions & 0 deletions

File tree

schema/bom-1.5.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,8 @@ message Vulnerability {
602602
repeated VulnerabilityAffects affects = 17;
603603
// Specifies optional, custom, properties
604604
repeated Property properties = 18;
605+
// The date and time (timestamp) when the vulnerability record was rejected (if applicable).
606+
optional google.protobuf.Timestamp rejected = 19;
605607
}
606608

607609
message VulnerabilityReference {

schema/bom-1.5.schema.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1702,6 +1702,12 @@
17021702
"title": "Updated",
17031703
"description": "The date and time (timestamp) when the vulnerability record was last updated."
17041704
},
1705+
"rejected": {
1706+
"type": "string",
1707+
"format": "date-time",
1708+
"title": "Rejected",
1709+
"description": "The date and time (timestamp) when the vulnerability record was rejected (if applicable)."
1710+
},
17051711
"credits": {
17061712
"type": "object",
17071713
"title": "Credits",

schema/bom-1.5.xsd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2130,6 +2130,11 @@ limitations under the License.
21302130
<xs:documentation>The date and time (timestamp) when the vulnerability record was last updated.</xs:documentation>
21312131
</xs:annotation>
21322132
</xs:element>
2133+
<xs:element name="rejected" type="xs:dateTime" minOccurs="0" maxOccurs="1">
2134+
<xs:annotation>
2135+
<xs:documentation>The date and time (timestamp) when the vulnerability record was rejected (if applicable).</xs:documentation>
2136+
</xs:annotation>
2137+
</xs:element>
21332138
<xs:element name="credits" minOccurs="0" maxOccurs="1">
21342139
<xs:annotation>
21352140
<xs:documentation>Individuals or organizations credited with the discovery of the vulnerability.</xs:documentation>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
"created": "2021-01-01T00:00:00.000Z",
6464
"published": "2021-01-01T00:00:00.000Z",
6565
"updated": "2021-01-01T00:00:00.000Z",
66+
"rejected": "2022-01-01T00:00:00.000Z",
6667
"credits": {
6768
"organizations": [
6869
{

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ vulnerabilities {
5959
seconds: 3173618478
6060
nanos: 3
6161
}
62+
rejected: {
63+
seconds: 3173618478
64+
nanos: 3
65+
}
6266
credits: {
6367
organizations: {
6468
name: "Acme, Inc."

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
<created>2021-01-01T00:00:00.000Z</created>
6565
<published>2021-01-01T00:00:00.000Z</published>
6666
<updated>2021-01-01T00:00:00.000Z</updated>
67+
<rejected>2022-01-01T00:00:00.000Z</rejected>
6768
<credits>
6869
<organizations>
6970
<organization>

0 commit comments

Comments
 (0)