Skip to content

Commit

Permalink
feat: Import of Grafeas from Github
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 513603965
  • Loading branch information
Google APIs authored and Copybara-Service committed Mar 2, 2023
1 parent 4f7c037 commit 7044962
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
8 changes: 8 additions & 0 deletions grafeas/v1/swagger/grafeas.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -3128,6 +3128,10 @@
"cvssVersion": {
"$ref": "#/definitions/v1CVSSVersion",
"description": "CVSS version used to populate cvss_score and severity."
},
"cvssV2": {
"$ref": "#/definitions/v1CVSS",
"description": "The full description of the v2 CVSS for this vulnerability."
}
},
"description": "A security vulnerability that can be found in resources."
Expand Down Expand Up @@ -3192,6 +3196,10 @@
"$ref": "#/definitions/v1CVSSVersion",
"description": "Output only. CVSS version used to populate cvss_score and severity.",
"readOnly": true
},
"cvssV2": {
"$ref": "#/definitions/v1CVSS",
"description": "The cvss v2 score for the vulnerability."
}
},
"description": "An occurrence of a severity vulnerability on a resource."
Expand Down
10 changes: 8 additions & 2 deletions grafeas/v1/vulnerability.proto
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,10 @@ message VulnerabilityNote {
// CVSS version used to populate cvss_score and severity.
grafeas.v1.CVSSVersion cvss_version = 7;

// Next free ID is 8.
// The full description of the v2 CVSS for this vulnerability.
CVSS cvss_v2 = 8;

// Next free ID is 9.
}

// An occurrence of a severity vulnerability on a resource.
Expand Down Expand Up @@ -247,5 +250,8 @@ message VulnerabilityOccurrence {
// Output only. CVSS version used to populate cvss_score and severity.
grafeas.v1.CVSSVersion cvss_version = 11;

// Next free ID is 12.
// The cvss v2 score for the vulnerability.
CVSS cvss_v2 = 12;

// Next free ID is 13.
}

0 comments on commit 7044962

Please sign in to comment.