mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
16 lines
270 B
Python
16 lines
270 B
Python
import pathlib
|
|
|
|
|
|
def get_cert():
|
|
return "<CERT>"
|
|
|
|
|
|
def write_password(filename):
|
|
cert = get_cert()
|
|
|
|
path = pathlib.Path(filename)
|
|
path.write_text(cert) # NOT OK
|
|
path.write_bytes(cert.encode("utf-8")) # NOT OK
|
|
|
|
path.open("w").write(cert) # NOT OK
|