Injection detection is too strict, and caused a false positive when I used "repeatable" in a PR description#32
Merged
dgageot merged 1 commit intodocker:mainfrom Feb 9, 2026
Conversation
Contributor
Author
|
/describe |
|
❌ Failed to generate PR description. Check workflow logs for details. |
Contributor
Author
|
/describe |
|
✅ PR description has been generated and updated! |
1e92629 to
d079cce
Compare
Contributor
Author
|
/describe |
|
✅ PR description has been generated and updated! |
trungutt
approved these changes
Feb 9, 2026
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.
Summary
Fixes overly aggressive injection detection patterns that were causing false positives in legitimate content. The security filter was incorrectly flagging content containing words like "system models" in release notes due to overly broad regex patterns. This update makes the patterns more specific while maintaining security effectiveness.
Changes
Modified
Technical Details
The injection detection system was using overly broad patterns that matched legitimate technical content:
Key changes:
system.*modepattern: Changed from"system.*mode"to"system.{0,20}mode([^a-z]|$)"to avoid matching compound words like "system models" while still catching actual "system mode" injection attemptsrepeat.*system.*promptpattern: Made more specific by requiring"repeat.*(your|the|back).*system.*prompt"to target actual prompt extraction attemptsshow.*system.*promptpattern: Similarly refined to"show.*(your|the).*system.*prompt"to be more targetedThe original patterns were causing false positives when legitimate technical documentation mentioned:
Testing
Test coverage:
Breaking Changes
None - this change only reduces false positives while maintaining the same security protection level.
Related Issues
Fixes the false positive issue where using "repeatable" in PR descriptions triggered injection detection warnings.
Checklist