Nest alertCounts object in event_report.properties (#1770)

This commit is contained in:
Angela P Wen 2023-07-11 18:20:29 +02:00 committed by GitHub
parent d6c8719550
commit 863a05b28b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 16 additions and 4 deletions

4
lib/analyze.js generated
View file

@ -223,7 +223,9 @@ async function runQueries(sarifFolder, memoryFlag, addSnippetsFlag, threadsFlag,
completed_at: endTimeInterpretResults.toISOString(),
exit_status: "success",
language,
properties: perQueryAlertCounts,
properties: {
alertCounts: perQueryAlertCounts,
},
};
if (statusReport["event_reports"] === undefined) {
statusReport["event_reports"] = [];