mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Python: ignore common words (certain/concert) as sensitive source
This commit is contained in:
@@ -58,8 +58,8 @@ def my_func(password): # $ SensitiveDataSource=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
|
||||
def my_other_func(uncertainty):
|
||||
print(uncertainty)
|
||||
|
||||
password = some_function() # $ SensitiveDataSource=password
|
||||
print(password) # $ SensitiveUse=password
|
||||
|
||||
Reference in New Issue
Block a user