fix(sast): run only our own semgrep rules, no registry rules or metrics (#441)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
This commit was merged in pull request #441.
This commit is contained in:
1 parent
260d07c783
commit
a66b7a5991
61 files changed
+417
-319
No files matched your search
@@ -292,8 +292,8 @@ mod tests {
|
||||
let s = ControlMap::cra().unwrap().summary();
|
||||
assert!(s.covered > 0);
|
||||
assert!(s.not_code_checkable > 0);
|
||||
// needs_tooling is now empty: every code-checkable control is either
|
||||
// tool-covered or covered by the grounded surface pass.
|
||||
// needs_tooling is empty: every code-checkable control is either
|
||||
// covered by our own rules and tools or by the grounded surface pass.
|
||||
assert_eq!(s.needs_tooling, 0);
|
||||
}
|
||||
|
||||
@@ -329,8 +329,9 @@ mod tests {
|
||||
#[test]
|
||||
fn coverage_after_grounded_promotion() {
|
||||
let s = ControlMap::cra().unwrap().summary();
|
||||
// 9 off-the-shelf + 4 custom-semgrep + 8 grounded surface controls (promoted
|
||||
// after the grounded path was validated live).
|
||||
// Our own semgrep rules, gitleaks, cppcheck, syft/OSV and 8 grounded
|
||||
// surface controls (promoted after the grounded path was validated
|
||||
// live).
|
||||
assert_eq!(s.covered, 21);
|
||||
// Nothing left as needs_tooling — every code-checkable control is covered.
|
||||
assert_eq!(s.needs_tooling, 0);
|
||||
|
||||
Reference in new issue
Block a user