fix: CI security — bandit B112 sur search_shared_notes (nosec, continue délibéré)
This commit is contained in:
@@ -80,7 +80,7 @@ def _shared_results(username: str, q: str, vault: str) -> list[dict[str, Any]]:
|
||||
if not fp.exists() or fp.suffix.lower() != ".md":
|
||||
continue
|
||||
raw = fp.read_text(encoding="utf-8", errors="replace")
|
||||
except Exception:
|
||||
except Exception: # nosec B112 — partage illisible : ignoré, on continue
|
||||
continue
|
||||
title = fp.stem
|
||||
occurrences = raw.lower().count(q_lower)
|
||||
|
||||
Reference in New Issue
Block a user