Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply ruff format #3925

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Apply ruff format #3925

wants to merge 1 commit into from

Conversation

plettich
Copy link
Member

@plettich plettich commented May 2, 2024

No description provided.

@@ -154,8 +171,7 @@
sqlfile = None
enckey_contained = False

p = subprocess.run(["tar", "-ztf", backup_file], capture_output=True,
text=True)
p = subprocess.run(["tar", "-ztf", backup_file], capture_output=True, text=True)

Check notice

Code scanning / Bandit

Starting a process with a partial executable path Note

Starting a process with a partial executable path
@@ -154,8 +171,7 @@
sqlfile = None
enckey_contained = False

p = subprocess.run(["tar", "-ztf", backup_file], capture_output=True,
text=True)
p = subprocess.run(["tar", "-ztf", backup_file], capture_output=True, text=True)

Check notice

Code scanning / Bandit

subprocess call - check for execution of untrusted input. Note

subprocess call - check for execution of untrusted input.
pi_cfg = instance / "pi.cfg"
with open(pi_cfg, "w") as f:
f.write(
PI_CFG_TEMPLATE.format(secret_key=secret_key_hex, pi_pepper=pi_pepper)

Check failure

Code scanning / CodeQL

Clear-text storage of sensitive information High

This expression stores
sensitive data (secret)
as clear text.
This expression stores
sensitive data (secret)
as clear text.
Comment on lines +314 to +316
"A CA connector with the name {0!s} could not be found!".format(
connector_name
)

Check failure

Code scanning / CodeQL

Clear-text logging of sensitive information High

This expression logs
sensitive data (certificate)
as clear text.
Comment on lines +1715 to +1716
"Should we not verify the attestation certificate? "
"Policies: {0!s}".format(do_not_verify_the_cert)

Check failure

Code scanning / CodeQL

Clear-text logging of sensitive information High

This expression logs
sensitive data (certificate)
as clear text.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant