fix(gitleaks): honor lone string classifications as one label - #2070
seonghobae wants to merge 1 commit into
Conversation
|
Warning Review limit reachedNext included review available in 18 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Fresh admission correction: exact head |
Gap G-03 (security-gate accuracy):
result_classificationsiterated a lone string char-by-char, soclassifications: "test"never matched"test".Exact head
11a5aedb6on basef578d8d96(origin/main re-fetched, no drift).Change (minimal, isolated):
scripts/ci/filter_gitleaks_sarif.py+12/-3 via_classification_itemshelper; RED testtest_filter_accepts_string_classificationsintests/test_filter_gitleaks_sarif.py.Evidence (exact-head worktree /private/tmp/nextgap):
.venv/bin/python -m pytest tests/test_filter_gitleaks_sarif.py tests/test_codeql_sarif_gate.py -q→ 21 passedcoverage report→ filter_gitleaks 62/24 100%, codeql_gate 87/32 100%interrogate scripts/ci/filter_gitleaks_sarif.py→ 100.0%