mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Python: uncertainty is treated as a certificate :O
This commit is contained in:
@@ -56,6 +56,11 @@ getattr(foo, x) # $ SensitiveDataSource=password
|
||||
def my_func(password): # $ SensitiveDataSource=password
|
||||
print(password) # $ SensitiveUse=password
|
||||
|
||||
# FP where the `cert` in `uncertainty` makes us treat it like a certificate
|
||||
# https://github.com/github/codeql/issues/9632
|
||||
def my_other_func(uncertainty): # $ SPURIOUS: SensitiveDataSource=certificate
|
||||
print(uncertainty) # $ SPURIOUS: SensitiveUse=certificate
|
||||
|
||||
password = some_function() # $ SensitiveDataSource=password
|
||||
print(password) # $ SensitiveUse=password
|
||||
|
||||
|
||||
Reference in New Issue
Block a user