mirror of
https://github.com/ossf/scorecard.git
synced 2024-09-11 08:55:27 +03:00
✨ Make Vuln ID field lower case in raw results (#1761)
* case sensitive ID * updates
This commit is contained in:
parent
2bbbce75b3
commit
8150ab0f88
@ -116,12 +116,12 @@
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"ID": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"ID"
|
||||
"id"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -116,12 +116,12 @@
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"ID": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"ID"
|
||||
"id"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -91,6 +91,13 @@ type jsonDefaultBranchCommit struct {
|
||||
// TODO: check runs, etc.
|
||||
}
|
||||
|
||||
type jsonDatabaseVulnerability struct {
|
||||
// For OSV: OSV-2020-484
|
||||
// For CVE: CVE-2022-23945
|
||||
ID string `json:"id"`
|
||||
// TODO: additional information
|
||||
}
|
||||
|
||||
type jsonRawResults struct {
|
||||
DatabaseVulnerabilities []jsonDatabaseVulnerability `json:"database-vulnerabilities"`
|
||||
// List of binaries found in the repo.
|
||||
@ -151,13 +158,6 @@ func (r *jsonScorecardRawResult) addCodeReviewRawResults(cr *checker.CodeReviewD
|
||||
return nil
|
||||
}
|
||||
|
||||
type jsonDatabaseVulnerability struct {
|
||||
// For OSV: OSV-2020-484
|
||||
// For CVE: CVE-2022-23945
|
||||
ID string
|
||||
// TODO: additional information
|
||||
}
|
||||
|
||||
//nolint:unparam
|
||||
func (r *jsonScorecardRawResult) addVulnerbilitiesRawResults(vd *checker.VulnerabilitiesData) error {
|
||||
r.Results.DatabaseVulnerabilities = []jsonDatabaseVulnerability{}
|
||||
|
Loading…
Reference in New Issue
Block a user