clangsa-sast: add mapping fields for report conversion
Problem to solve
GLAS reports contain both CWE and OWASP identifiers according to rule configuration. The mappings file for clangsa enables configuration of a checker to CWE mapping, but doesn't implement the corresponding mapping for OWASP.
Report "description" and "message" text should also be overridable.
Related
Proposal
-
add keys to the mapping structure -
owasp identifiers - with entries analogous to the CWE entries -
attack-type - a string -
short-description - a string -
full-description - a string
-
-
update the schema -
update convert.go-
add OWASP identifiers to the reportsVulnerability.Identifiers -
if short-description is set,assignitcwe.NametoVulnerability.Message -
if full-description is set, assign it to Vulnerability.Description -
addattack-type(where does this go in the report?Vulnerability.Description?) -
TBD
-
-
add unit tests
Edited by Jason Leasure