Skip to content

Commit 7f39eb6

Browse files
authored
feat(osv): add Unbuntu severity type to proto (google#3584)
ossf/osv-schema#337 introduces Ubuntu severity type to the schema and this PR adds this severity type to `vulnerability.proto`.
1 parent 30f8c32 commit 7f39eb6

File tree

4 files changed

+18
-15
lines changed

4 files changed

+18
-15
lines changed

gcp/api/v1/api_descriptor.pb

59 Bytes
Binary file not shown.

osv/vulnerability.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ message Severity {
119119
CVSS_V3 = 1;
120120
CVSS_V2 = 2;
121121
CVSS_V4 = 3;
122+
UBUNTU = 4;
122123
}
123124
// The type of this severity entry.
124125
Type type = 1;

osv/vulnerability_pb2.py

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

osv/vulnerability_pb2.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ class Severity(google.protobuf.message.Message):
274274
CVSS_V3: Severity._Type.ValueType # 1
275275
CVSS_V2: Severity._Type.ValueType # 2
276276
CVSS_V4: Severity._Type.ValueType # 3
277+
UBUNTU: Severity._Type.ValueType # 4
277278

278279
class Type(_Type, metaclass=_TypeEnumTypeWrapper):
279280
"""Type of the severity."""
@@ -282,6 +283,7 @@ class Severity(google.protobuf.message.Message):
282283
CVSS_V3: Severity.Type.ValueType # 1
283284
CVSS_V2: Severity.Type.ValueType # 2
284285
CVSS_V4: Severity.Type.ValueType # 3
286+
UBUNTU: Severity.Type.ValueType # 4
285287

286288
TYPE_FIELD_NUMBER: builtins.int
287289
SCORE_FIELD_NUMBER: builtins.int

0 commit comments

Comments
 (0)