Python: ignore common words (certain/concert) as sensitive source

This commit is contained in:
Rasmus Wriedt Larsen
2022-06-22 11:02:00 +02:00
parent abdcfd55c3
commit 5dc2bb717a
2 changed files with 7 additions and 3 deletions

View File

@@ -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