Skip to content

Commit

Permalink
feat: add enum for grafeas v1 cvss to support both cvss v2 and v3
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 523785347
  • Loading branch information
Google APIs authored and Copybara-Service committed Apr 12, 2023
1 parent e6fe8db commit 4e8d390
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions grafeas/v1/cvss.proto
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ message CVSS {
ATTACK_COMPLEXITY_UNSPECIFIED = 0;
ATTACK_COMPLEXITY_LOW = 1;
ATTACK_COMPLEXITY_HIGH = 2;
ATTACK_COMPLEXITY_MEDIUM = 3;
}

enum Authentication {
Expand Down Expand Up @@ -155,6 +156,8 @@ message CVSS {
IMPACT_HIGH = 1;
IMPACT_LOW = 2;
IMPACT_NONE = 3;
IMPACT_PARTIAL = 4;
IMPACT_COMPLETE = 5;
}
}

Expand Down
7 changes: 5 additions & 2 deletions grafeas/v1/swagger/grafeas.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1716,7 +1716,8 @@
"enum": [
"ATTACK_COMPLEXITY_UNSPECIFIED",
"ATTACK_COMPLEXITY_LOW",
"ATTACK_COMPLEXITY_HIGH"
"ATTACK_COMPLEXITY_HIGH",
"ATTACK_COMPLEXITY_MEDIUM"
],
"default": "ATTACK_COMPLEXITY_UNSPECIFIED"
},
Expand All @@ -1737,7 +1738,9 @@
"IMPACT_UNSPECIFIED",
"IMPACT_HIGH",
"IMPACT_LOW",
"IMPACT_NONE"
"IMPACT_NONE",
"IMPACT_PARTIAL",
"IMPACT_COMPLETE"
],
"default": "IMPACT_UNSPECIFIED"
},
Expand Down

0 comments on commit 4e8d390

Please sign in to comment.