Repository navigation
Narrow WebApp.API server detection false positives - #660
Closed
Giulia Stocco (gfs) with Copilot wants to merge 8 commits into
Closed
Giulia Stocco (gfs) with Copilot wants to merge 8 commits into
Giulia Stocco (gfs) with Copilot wants to merge 8 commits into
Conversation
Allow explicitly targeted rules to report build-file findings while preserving suppression for universal rules. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: f0f9dbe0-e8ba-472b-b645-eda10038e683
Adds 34 rules under WebApp.API.* that identify when a repository exposes an HTTP, gRPC, or GraphQL API, covering Python, JavaScript/TypeScript, .NET, JVM, Go, Ruby, PHP, Rust, and OpenAPI/Swagger documents. Six rules whose patterns are inherently low precision (framework-agnostic route registration such as `@x.get(`, `app.get(`, `.MapGet(`) are gated behind a rule-level `same-file` condition requiring a matching framework import, so they only fire in files that actually use the framework. Also: - Adds an "Exposed web API" entry to the HTML report's Select Features group so WebApp.API findings are surfaced in generated reports. - Adds `.kt` to the kotlin entry in languages.json. Only `.kts` was listed, so ordinary Kotlin source files were never scanned. Builds on the parent commit, which stopped RuleProcessor from suppressing tags emitted by rules that explicitly target build-type files. Two rules here depend on that: AI090202 reads Azure Functions bindings from function.json, and AI090800 reads OpenAPI documents from json and yaml. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: cac8997c-55eb-4b89-aebd-6592d0525759
Co-authored-by: gfs <98900+gfs@users.noreply.github.com>
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Co-authored-by: gfs <98900+gfs@users.noreply.github.com>
Co-authored-by: gfs <98900+gfs@users.noreply.github.com>
…sues' into copilot/update-pr-651-resolve-issues Co-authored-by: gfs <98900+gfs@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Resolve issues from code review for PR #651
Narrow WebApp.API server detection false positives
Sep 10, 2026
Giulia Stocco (gfs)
deleted the
copilot/update-pr-651-resolve-issues
branch
September 14, 2026 19:28
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.
Addresses remaining review feedback where client-only or non-HTTP framework usage could be classified as exposed APIs. Tightens server signals while preserving real API detections and Kotlin source resolution.
Rule precision
rest_frameworkimport matching with API view/viewset/router signals.@nestjs/commonimport matching; uses controller decorators.Regression coverage
.ktwhile preserving.kts.Buildability
RuleProcessormerge artifact so sync/async analysis continues through the shared capture-filtering path.Example behavior: