Commit 0d7a83f
committed
fix(sdk): add universal post-scan exclude filter in engine
Only bandit read the exclude config — OSV, OpenGrep, and other
scanners ignored it, still reporting test fixture findings.
New approach: the engine applies exclude filtering AFTER parsing,
regardless of whether the tool supports it natively. Any finding
whose location contains an excluded path is dropped.
This is scanner-agnostic — works for all scanners universally.
The tool still scans everything (catches real issues in all paths),
but excluded findings are removed before reporting.1 parent a81d32c commit 0d7a83f
1 file changed
Lines changed: 42 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
69 | 83 | | |
70 | 84 | | |
71 | 85 | | |
| |||
418 | 432 | | |
419 | 433 | | |
420 | 434 | | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
421 | 463 | | |
422 | 464 | | |
423 | 465 | | |
| |||
0 commit comments