mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
Python: Model sensitive data based on parameter names
This commit is contained in:
@@ -29,7 +29,10 @@ foo = ObjectFromDatabase()
|
||||
foo.secret # $ SensitiveDataSource=secret
|
||||
foo.username # $ SensitiveDataSource=id
|
||||
|
||||
# plain variables
|
||||
# based on variable/parameter names
|
||||
def my_func(password): # $ SensitiveDataSource=password
|
||||
print(password) # $ SensitiveUse=password
|
||||
|
||||
password = some_function()
|
||||
print(password) # $ MISSING: SensitiveUse=password
|
||||
|
||||
|
||||
Reference in New Issue
Block a user