KyZN: fix HIGH+MEDIUM+LOW findings (20260327-035304-599dbbd1)#2
Merged
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Analysis Fixes
Applied fixes for findings at severity LOW and above.
Run ID:
20260327-035304-599dbbd1Cost: $3.98
Batches: 3 applied (HIGH → MEDIUM → LOW), 0 failed, 0 skipped
Diff: 337 lines
Changes
What Was Fixed
MEDIUM: All 10 fixes applied. All 66 tests pass.
Summary
_is_allowed_pathnow checksPath.parent.partsfor exact component match instead of substring containmenthook.py:35-48timeout=120to gitleaks subprocess +timeout=30to_scan_staged, both catchTimeoutExpiredscanner.py:60,engine.py:330_should_skip_pathnow checkspath.parent.partsonly —.envfiles no longer silently skippedengine.py:72create_github_issuebody now generic (count + rule types only) — no file paths or line numbers leakednotifier.py:129-155uninstall_hookusessetdefaultfor defensive write — no moreKeyErrorif settings modified externallyclaude.py:95-101os.chmod(tmp_dir, 0o700)+os.chmod(report_path, 0o600)after mkdtempscanner.py:40-67scan_directorynow acceptsscan_testsparam (defaultTrue); wired throughscan_pathand CLIengine.py:240,287except Exceptionfrompatrol; narrowedclone_and_scantoexcept (OSError, ValueError)cli.py:280-282,monitor.py:180-181scan_filenow reads file once inrbmode — binary check + decode in single syscallengine.py:207-222_compile_gitignore_patternspre-compiles viare.compile(fnmatch.translate(...))once per scan;_matches_any_globuseslru_cacheengine.py:101-122,config.py:209-215Approach
Findings were batched by severity tier (CRITICAL → HIGH → MEDIUM → LOW).
Each batch was verified and committed independently — if a batch broke tests,
self-repair was attempted. Failed batches were reverted to protect passing code.
Diff budget was tracked incrementally to prevent waste.
Generated by KyZN — autonomous code improvement