Skip to content

Commit

Permalink
feat: add stats to report.json
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanrobert committed Jun 25, 2021
1 parent 71acf01 commit 65bf771
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions report/src/__snapshots__/generateUrlReport.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Object {
"nmap": null,
"nuclei": null,
"screenshot": false,
"stats": null,
"summary": Object {
"codescanCount": 42,
"codescanGrade": undefined,
Expand Down Expand Up @@ -56,6 +57,9 @@ Object {
},
],
"screenshot": false,
"stats": Object {
"report": "stats.json",
},
"summary": Object {
"codescanCount": 42,
"codescanGrade": undefined,
Expand Down
1 change: 1 addition & 0 deletions report/src/generateUrlReport.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ const tools = {
/** @param {string} basePath scan directory */
data: (basePath) => fs.existsSync(path.join(basePath, "screenshot.jpeg")),
},
stats: { data: requireToolData("stats.json") }
};

//@ts-expect-error
Expand Down

0 comments on commit 65bf771

Please sign in to comment.