-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add version range to mariner provider (#585)
* feat: add version range to mariner provider Previously, this provider could only include upper bounds on ranges. Signed-off-by: Will Murphy <[email protected]> * pin xsdata at 22.12 and re-generate models This keeps the mariner models being generated by the same code that generated them initially, which reduces the risk of an incompatible generated change. Signed-off-by: Will Murphy <[email protected]> --------- Signed-off-by: Will Murphy <[email protected]>
- Loading branch information
1 parent
a625772
commit 5beee99
Showing
15 changed files
with
344 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,186 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"type": "object", | ||
"title": "os-vulnerability", | ||
"description": "represents vulnerability records for common linux distributions", | ||
"properties": { | ||
"Vulnerability": { | ||
"type": "object", | ||
"properties": { | ||
"CVSS": { | ||
"type": "array", | ||
"items": [ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"base_metrics": { | ||
"type": "object", | ||
"properties": { | ||
"base_score": { | ||
"type": "number" | ||
}, | ||
"base_severity": { | ||
"type": "string" | ||
}, | ||
"exploitability_score": { | ||
"type": "number" | ||
}, | ||
"impact_score": { | ||
"type": "number" | ||
} | ||
}, | ||
"required": [ | ||
"base_score", | ||
"base_severity", | ||
"exploitability_score", | ||
"impact_score" | ||
] | ||
}, | ||
"status": { | ||
"type": "string" | ||
}, | ||
"vector_string": { | ||
"type": "string" | ||
}, | ||
"version": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"base_metrics", | ||
"status", | ||
"vector_string", | ||
"version" | ||
] | ||
} | ||
] | ||
}, | ||
"Description": { | ||
"type": "string" | ||
}, | ||
"FixedIn": { | ||
"type": "array", | ||
"items": [ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"Name": { | ||
"type": "string" | ||
}, | ||
"NamespaceName": { | ||
"type": "string" | ||
}, | ||
"VendorAdvisory": { | ||
"type": "object", | ||
"properties": { | ||
"AdvisorySummary": { | ||
"type": "array", | ||
"items": {} | ||
}, | ||
"NoAdvisory": { | ||
"type": "boolean" | ||
} | ||
}, | ||
"required": [ | ||
"NoAdvisory" | ||
] | ||
}, | ||
"Version": { | ||
"type": "string" | ||
}, | ||
"VersionFormat": { | ||
"type": "string" | ||
}, | ||
"VulnerableRange": { | ||
"type": ["string", "null"] | ||
}, | ||
"Module": { | ||
"type": ["string", "null"] | ||
} | ||
}, | ||
"required": [ | ||
"Name", | ||
"NamespaceName", | ||
"Version", | ||
"VersionFormat" | ||
] | ||
} | ||
] | ||
}, | ||
"Link": { | ||
"type": "string" | ||
}, | ||
"Metadata": { | ||
"type": "object", | ||
"properties": { | ||
"Issued": { | ||
"type": "string" | ||
}, | ||
"RefId": { | ||
"type": "string" | ||
}, | ||
"CVE": { | ||
"type": "array", | ||
"items": [ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"Name": { | ||
"type": "string" | ||
}, | ||
"Link": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"Name" | ||
] | ||
} | ||
] | ||
}, | ||
"NVD": { | ||
"type": "object", | ||
"properties": { | ||
"CVSSv2": { | ||
"type": "object", | ||
"properties": { | ||
"Score": { | ||
"type": "number" | ||
}, | ||
"Vectors": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"Score" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"Name": { | ||
"type": "string" | ||
}, | ||
"NamespaceName": { | ||
"type": "string" | ||
}, | ||
"Severity": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"Description", | ||
"FixedIn", | ||
"Link", | ||
"Metadata", | ||
"Name", | ||
"NamespaceName", | ||
"Severity" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"Vulnerability" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.