feat(pre-push-safety-net): exclude the memory family explicitly and document the scope line

- advisory-scope.json names the taxonomy family memory as excluded, with
  the registry-grounded reason and what a run does not tell
- docs/scanning.md shows the Scope line exactly as the hook prints it
- the loaded-scope guard moves into a helper, so __post_init__ keeps its
  complexity of 14
This commit is contained in:
Marius Ciepluch
2026-11-23 13:45:27 +01:00
parent 364b4c0777
commit d9b7aaa6ac
4 changed files with 18 additions and 2 deletions
+5
View File
@@ -204,9 +204,14 @@ Skipped: the changed code has no counterpart in the base revision to compare aga
Skipped: engine did not run: the code graph could not be built (is Joern installed? ...)
Skipped: no base revision was analysed, so no engine finding can be called new or worsened
Notice: Engine checks did not run. Install Joern, or run the hook through ops/ousast-docker. Review the details.
Scope: provisional, not yet in effect: no family is qualified for alerts yet. Intended v1 advisory scope: injection, untrusted destination, configuration. Not reported as defects: access control, output encoding, path, prototype, deserialization, memory, or any other family outside the scope. Listing a family does not mean the repository was found free of defects in it.
Details: /home/you/.cache/openultrasast/push/push-12345.json
```
The `Scope:` line states which families this tool does not turn into defect alerts while the
scope is provisional, and that listing a family is not a claim that the repository is free of
defects in it.
The hook reads these settings from the environment of `git push`:
| Variable | Default | Effect |