You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dad83d3
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: security/opengrep/README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
`precise.yml` is the compiled output of the GHSA detector-review pipeline. Each rule corresponds to a specific GitHub Security Advisory for `openclaw/openclaw` and is intended to have concrete coverage of the original vulnerable line.
4
4
5
-
`compile-manifest.json` is a per-rule provenance map for traceability.
5
+
Rule provenance lives in each compiled rule's metadata. `compile-manifest.json` is written into the detector-review run directory as a local audit/debug artifact, not as a committed source of truth.
6
6
7
7
Noisy exploratory rules are intentionally kept out of the tracked repo. Anything appended to `precise.yml` must be low-noise enough to run as a blocking PR-diff check and as a manual full-repository audit.
8
8
@@ -15,7 +15,7 @@ will be lost the next time `scripts/compile-opengrep-rules.mjs` runs.
15
15
## Rule naming and metadata
16
16
17
17
Every rule's id is rewritten to `ghsa-detector.<ghsa-lower>.<original-id>`.
18
-
Every rule's `metadata` block is augmented with:
18
+
Every rule's `metadata` block is augmented with source fields enforced by `pnpm check:opengrep-rule-metadata`:
4. Appends only new precise rule ids to the existing `precise.yml` by default; pass `--replace-precise` to rebuild it from just the supplied run
42
42
5. Runs `opengrep scan --no-strict` against an empty target to identify schema-invalid or parser-invalid rules and drops mapped bad rules so the published super-config loads cleanly
43
-
6. Writes `precise.yml` and `compile-manifest.json`
43
+
6. Writes `precise.yml` and `<run-dir>/compile-manifest.json`
44
44
45
-
Anything skipped (YAML parse error, duplicate generated rule id, or schema/parser-invalid) is recorded under `preciseInvalid` / `preciseDuplicateSkipped` in `compile-manifest.json` for follow-up.
45
+
Anything skipped (YAML parse error, duplicate generated rule id, or schema/parser-invalid) is recorded under `preciseInvalid` / `preciseDuplicateSkipped` in the run-local `compile-manifest.json` for follow-up.
0 commit comments