From 68ce4ab5aa9f07ad6c9edb2d68408a7efc446315 Mon Sep 17 00:00:00 2001 From: Michael Hohn Date: Mon, 21 Aug 2023 12:58:35 -0700 Subject: [PATCH] Update README with timestamp description --- README.md | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8a0a188..8a022b6 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ Set up the virtual environment and install the packages: `results-log.scanlog` contains a raw log of any errors encountered while parsing the sarif and `results-log.csv` contains a summary of the scanlog contents. - ### sample usage: +### Sample usage 1 -- no separate timestamps file ``` python bin/sarif-extract-scans-runner sarif-files.txt -o ``` @@ -97,6 +97,39 @@ Set up the virtual environment and install the packages: data/torvalds_linux__2021-10-21_10_07_00__export.sarif ``` + + When called this way, `sarif-pad-aggregate` *should* be used because it + will overwrite single-date timestamps with a random 1-year range. + +### Sample usage 2 -- with separate timestamps file +When a separate `timestamps.json` file is available and has the form + + timestamps = { + "db_create_start" : "2023-07-03T00:56:15.576222", + "db_create_stop" : ..., + "scan_start_date" : ..., + "scan_stop_date" : ..., + } + +or + + { + "db_create_start": ..., + "db_create_stop": ..., + "scan_start": ... + "scan_stop": ... + } + +the runner can be called via e.g., + +```sh +sarif-extract-scans-runner --input-signature CLI --with-timestamps - < ```