Commit 0035083
authored
fix: filter known CodeQL false positives in SARIF checker (#122)
CodeQL query-filters in config YAML doesn't reliably suppress specific
rules from SARIF output. Add a _FALSE_POSITIVE_RULES frozenset to the
SARIF checker script to skip known intentional patterns:
- py/weak-sensitive-data-hashing: SHA-1 used for feature hashing (the
hashing trick) in embedder_deterministic.py, not for security. Code
sets usedforsecurity=False.1 parent 5de5937 commit 0035083
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
55 | 61 | | |
56 | 62 | | |
57 | 63 | | |
| |||
60 | 66 | | |
61 | 67 | | |
62 | 68 | | |
| 69 | + | |
| 70 | + | |
63 | 71 | | |
64 | 72 | | |
65 | 73 | | |
| |||
0 commit comments