mirror of
https://github.com/github/codeql.git
synced 2026-05-03 20:58:03 +02:00
18 lines
533 B
Plaintext
18 lines
533 B
Plaintext
/**
|
|
* @name Supported sinks in external libraries
|
|
* @description A list of 3rd party APIs detected as sinks. Excludes APIs exposed by test libraries.
|
|
* @kind metric
|
|
* @tags summary telemetry
|
|
* @id cs/telemetry/supported-external-api-sinks
|
|
*/
|
|
|
|
private import csharp
|
|
private import semmle.code.csharp.dispatch.Dispatch
|
|
private import ExternalApi
|
|
|
|
private predicate relevant(ExternalApi api) { api.isSink() }
|
|
|
|
from string info, int usages
|
|
where Results<relevant/1>::restrict(info, usages)
|
|
select info, usages order by usages desc
|