Skip to content

Commit 6781051

Browse files
Google APIscopybara-github
authored andcommitted
feat: A new field registry is added to message .grafeas.v1.BaseImage
feat: A new field `advisory_publish_time` is added to message `.grafeas.v1.VulnerabilityNote` PiperOrigin-RevId: 869922618
1 parent 055f92c commit 6781051

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

grafeas/v1/common.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ message BaseImage {
144144
string repository = 2;
145145
// The number of layers that the base image is composed of.
146146
int32 layer_count = 3;
147+
// The registry in which the base image is from.
148+
string registry = 4;
147149
}
148150

149151
// Details about the layer a package was found in.

grafeas/v1/swagger/grafeas.swagger.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2352,6 +2352,10 @@
23522352
"type": "integer",
23532353
"format": "int32",
23542354
"description": "The number of layers that the base image is composed of."
2355+
},
2356+
"registry": {
2357+
"type": "string",
2358+
"description": "The registry in which the base image is from."
23552359
}
23562360
},
23572361
"description": "BaseImage describes a base image of a container image."
@@ -4577,6 +4581,11 @@
45774581
"cvssV2": {
45784582
"$ref": "#/definitions/v1CVSS",
45794583
"description": "The full description of the v2 CVSS for this vulnerability."
4584+
},
4585+
"advisoryPublishTime": {
4586+
"type": "string",
4587+
"format": "date-time",
4588+
"description": "The time this advisory was published by the source."
45804589
}
45814590
},
45824591
"description": "A security vulnerability that can be found in resources."

grafeas/v1/vulnerability.proto

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,10 @@ message VulnerabilityNote {
157157
// The full description of the v2 CVSS for this vulnerability.
158158
CVSS cvss_v2 = 8;
159159

160-
// Next free ID is 9.
160+
// The time this advisory was published by the source.
161+
google.protobuf.Timestamp advisory_publish_time = 9;
162+
163+
// Next free ID is 10.
161164
}
162165

163166
// An occurrence of a severity vulnerability on a resource.

0 commit comments

Comments
 (0)