diff --git a/cron/format/json.raw.schema b/cron/format/json.raw.schema index 5e67289bcd3..847fb127871 100644 --- a/cron/format/json.raw.schema +++ b/cron/format/json.raw.schema @@ -116,12 +116,12 @@ "items": { "type": "object", "properties": { - "ID": { + "id": { "type": "string" } }, "required": [ - "ID" + "id" ] } }, diff --git a/pkg/json.raw.schema b/pkg/json.raw.schema index 5e67289bcd3..847fb127871 100644 --- a/pkg/json.raw.schema +++ b/pkg/json.raw.schema @@ -116,12 +116,12 @@ "items": { "type": "object", "properties": { - "ID": { + "id": { "type": "string" } }, "required": [ - "ID" + "id" ] } }, diff --git a/pkg/json_raw_results.go b/pkg/json_raw_results.go index 6744f896a26..25420a4d9c5 100644 --- a/pkg/json_raw_results.go +++ b/pkg/json_raw_results.go @@ -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{}