Skip to content

Add repr() and %r sanitizers to py/log-injection query to reduce false positives#22038

Open
mrigankpawagi wants to merge 3 commits into
github:mainfrom
mrigankpawagi:mrigankpawagi/py-log-injection-fix
Open

Add repr() and %r sanitizers to py/log-injection query to reduce false positives#22038
mrigankpawagi wants to merge 3 commits into
github:mainfrom
mrigankpawagi:mrigankpawagi/py-log-injection-fix

Conversation

@mrigankpawagi

Copy link
Copy Markdown
Contributor

This PR improves the py/log-injection query by recognizing repr() and the %r format specifier as sanitizers for log injection. This is a very common false positive pattern for this query.

Copilot AI review requested due to automatic review settings June 23, 2026 10:44
@mrigankpawagi mrigankpawagi requested a review from a team as a code owner June 23, 2026 10:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants