mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
22 lines
561 B
Python
22 lines
561 B
Python
def get_cert():
|
|
return "<CERT>"
|
|
|
|
|
|
def write_cert(filename):
|
|
cert = get_cert()
|
|
with open(filename, "w") as file:
|
|
file.write(cert) # NOT OK
|
|
lines = [cert + "\n"]
|
|
file.writelines(lines) # NOT OK
|
|
|
|
def FPs():
|
|
# just like for cleartext-logging see that file for more elaborate tests
|
|
#
|
|
# this part is just to make sure the two queries are in line with what is considered
|
|
# sensitive information.
|
|
|
|
with open(filename, "w") as file:
|
|
# Harmless UUIDs
|
|
x = generate_uuid4()
|
|
file.write(x) # OK
|