Skip to content

Commit d557f6f

Browse files
authored
Merge pull request #7101 from RasmusWL/python-ids
Python: Fix some query-ids
2 parents 41b7922 + b11d11c commit d557f6f

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
lgtm,codescanning
2+
Fixed the query ids of two queries that are meant for manual exploration: `python/count-untrusted-data-external-api` and `python/untrusted-data-to-external-api` have been changed to `py/count-untrusted-data-external-api` and `py/untrusted-data-to-external-api`.

python/ql/src/Security/CWE-020-ExternalAPIs/ExternalAPIsUsedWithUntrustedData.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @description This reports the external APIs that are used with untrusted data, along with how
44
* frequently the API is called, and how many unique sources of untrusted data flow
55
* to it.
6-
* @id python/count-untrusted-data-external-api
6+
* @id py/count-untrusted-data-external-api
77
* @kind table
88
* @tags security external/cwe/cwe-20
99
*/

python/ql/src/Security/CWE-020-ExternalAPIs/UntrustedDataToExternalAPI.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @name Untrusted data passed to external API
33
* @description Data provided remotely is used in this external API without sanitization, which could be a security risk.
4-
* @id python/untrusted-data-to-external-api
4+
* @id py/untrusted-data-to-external-api
55
* @kind path-problem
66
* @precision low
77
* @problem.severity error

python/ql/src/analysis/LocalDefinitions.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @description Generates use-definition pairs that provide the data
44
* for jump-to-definition in the code viewer.
55
* @kind definitions
6-
* @id python/ide-jump-to-definition
6+
* @id py/ide-jump-to-definition
77
* @tags ide-contextual-queries/local-definitions
88
*/
99

python/ql/src/analysis/LocalReferences.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @description Generates use-definition pairs that provide the data
44
* for find-references in the code viewer.
55
* @kind definitions
6-
* @id python/ide-find-references
6+
* @id py/ide-find-references
77
* @tags ide-contextual-queries/local-references
88
*/
99

0 commit comments

Comments
 (0)