Skip to content

fix(audit): honor Git ignore rules when scanning personal paths - #1250

Open
debugmcpdev wants to merge 1 commit into
mainfrom
fix/audit-git-candidates
Open

debugmcpdev wants to merge 1 commit into
mainfrom
fix/audit-git-candidates

Conversation

@debugmcpdev

Copy link
Copy Markdown
Collaborator

Closes #1245.

The full personal-path audit used its own directory walker and visited ignored files in the installed Windows CodeLLDB payload. Two URLs in Python's standard library were enough to fail the check.

Ask Git for tracked files plus untracked, nonignored candidates, using NUL-delimited paths. Both full and staged audits now use the same file scanner. A tracked file stays in scope even when it matches an ignore rule.

Verified that the old audit reported both false positives with the payload installed and the new audit passed on that checkout. A CLI regression test checks an ignored payload, a force-tracked file inside that payload, and an untracked source file with a space in its name. All nine focused tests passed.

Signed-off-by: Codex <noreply@openai.com>
@codecov

codecov Bot commented Nov 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Full personal-path audit flags two documentation URLs in the installed Windows CodeLLDB payload

1 participant