mirror of
https://github.com/hohn/sarif-cli.git
synced 2025-12-16 09:13:04 +01:00
Add explicit column ordering to to_csv writes
in interfaces: sarif-pad-aggregates sarif-extract-scans
This commit is contained in:
62
sarif_cli/columns.py
Normal file
62
sarif_cli/columns.py
Normal file
@@ -0,0 +1,62 @@
|
||||
columns = {
|
||||
"scans" : [
|
||||
"id",
|
||||
"commit_id",
|
||||
"project_id",
|
||||
"db_create_start",
|
||||
"db_create_stop",
|
||||
"scan_start_date",
|
||||
"scan_stop_date",
|
||||
"tool_name" ,
|
||||
"tool_version" ,
|
||||
"tool_query_commit_id",
|
||||
"sarif_file_name" ,
|
||||
"results_count" ,
|
||||
"rules_count" ,
|
||||
],
|
||||
"results" : [
|
||||
'id',
|
||||
'scan_id',
|
||||
'query_id',
|
||||
'query_kind',
|
||||
'query_precision',
|
||||
'query_severity',
|
||||
'query_tags',
|
||||
'codeFlow_id',
|
||||
'message' ,
|
||||
'message_object' ,
|
||||
'location' ,
|
||||
'source_startLine',
|
||||
'source_startCol',
|
||||
'source_endLine' ,
|
||||
'source_endCol' ,
|
||||
'sink_startLine' ,
|
||||
'sink_startCol',
|
||||
'sink_endLine' ,
|
||||
'sink_endCol' ,
|
||||
'source_object' ,
|
||||
'sink_object'
|
||||
],
|
||||
"projects" : [
|
||||
"id" ,
|
||||
"project_name" ,
|
||||
"creation_date",
|
||||
"repo_url" ,
|
||||
"primary_language" ,
|
||||
"languages_analyzed"
|
||||
],
|
||||
"codeflows" : [
|
||||
"codeflow_id",
|
||||
"codeflow_index",
|
||||
"threadflow_index",
|
||||
"location_index",
|
||||
"endColumn",
|
||||
"endLine",
|
||||
"startColumn",
|
||||
"startLine",
|
||||
"artifact_index",
|
||||
"uri",
|
||||
"uriBaseId",
|
||||
"message"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user