mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-12-03 02:08:18 +00:00
docs(contributor-scan): the user docs name the skipped runs directory and its notice (3.1, follow-up)
By the maintainer's decision of 2026-11-25, as the handover records it: "One sentence in README.md and docs/examples.md, in its own docs commit: a scan does not read the files under its runs directory when it lies inside the scanned path. A notice chosen above would be documented in the same place." The sentence, the same in both files: "A scan does not read the files under its runs directory when that directory lies inside the scanned path; when this leaves source files out of the scan, `ousast` prints one `notice:` line naming the directory and how many." It closes the run-location paragraph of README.md and sits in the first paragraph of docs/examples.md, before the benchmark sentence. "when this leaves source files out of the scan" is the exact promise of `52c9afb`: the notice counts what the skip took out of the scan, so a source file that the target's root `.gitignore` or an ignored directory already keeps out brings none. "`ousast` prints" matches the retention sentence two lines up; `ousast scan` and `ousast benchmark` print the line, and the `openultrasast.scan` and `openultrasast.benchmark` tools return the same text among their notices instead (the independent reviewer's probes). The first clause keeps the maintainer's words: nothing under the runs directory becomes a file target, while the other readers of a scanned tree stay as they are by the decision "No, leave them"; a route manifest under the runs directory is still read. No code changes. The two documentation test files pass (8 passed). An independent reviewer approved the change in two rounds; its first round found that the first wording, "when source files are left out there", promised a notice for files the scan was not going to read anyway, which this wording closes.
This commit is contained in:
+6
-3
@@ -8,9 +8,12 @@ the current working directory, never against the target. Once a scan has written
|
||||
default location, with no `OPENULTRASAST_RUNS_DIR` set, the runs there that are older than 30 days
|
||||
are removed, and `ousast` prints one `notice:` line when it removes any;
|
||||
`OPENULTRASAST_RUNS_RETENTION_DAYS` sets the number of days (`0` keeps every run), and nothing is
|
||||
ever removed from a location chosen with `OPENULTRASAST_RUNS_DIR`. `ousast benchmark` writes its
|
||||
run to the same directory, as `<runs_dir>/<benchmark-run-id>/` beside the scan runs, and prints
|
||||
that path (`benchmark_run_dir=<path>`); run retention removes it like a scan run.
|
||||
ever removed from a location chosen with `OPENULTRASAST_RUNS_DIR`. A scan does not read the files
|
||||
under its runs directory when that directory lies inside the scanned path; when this leaves source
|
||||
files out of the scan, `ousast` prints one `notice:` line naming the directory and how many.
|
||||
`ousast benchmark` writes its run to the same directory, as `<runs_dir>/<benchmark-run-id>/` beside
|
||||
the scan runs, and prints that path (`benchmark_run_dir=<path>`); run retention removes it like a
|
||||
scan run.
|
||||
|
||||
A scan that rejects or holds a finding writes one file into the scanned tree, and only when that
|
||||
file's content would change:
|
||||
|
||||
Reference in New Issue
Block a user