fix(cli): exclude AI agent config directories from scanning (#75)#76
Merged
Conversation
Adds and to in . These directories contain AI agent runtime configuration and plugins (e.g. ), not user application code. Without this exclusion, the native SQL injection rule produces a false positive because it matches the word "create" (from natural language text "create a feature branch first") combined with template literal interpolation in agent plugin source. The false positive currently breaks the self-scan binding gate on every PR after #73 introduced the directory.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
🛡️ OWASP.WTF self-scanTotal findings: 0 • Risk score: 100
|
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.
Problem
After PR #73 introduced the
.opencode/directory, the dogfood self-scan binding gate fails on every PR with a critical false positive:native:A03-SQL-INJECTION.opencode/plugins/xcoder.ts:127${...}on the same line, flagging it as SQL injection.This breaks the self-scan on every PR.
Fix
Adds
.opencode/and.claude/toSKIP_DIRSinpackages/cli/src/scanner.ts. These directories contain AI agent runtime configuration and plugins, not user application code. They belong in the same category asnode_modules/,.git/, and__pycache__— directories that should never be scanned for application vulnerabilities.Verification
pnpm lintpassespnpm typecheckpassespnpm buildpassespnpm testpasses (28/28)Closes #75