1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-09-19 18:31:16 +00:00

Ignore some security warnings

This commit is contained in:
Mo 2022-07-03 17:45:24 +02:00
parent aabe00fd11
commit 6f9b2984ba
2 changed files with 5 additions and 5 deletions

View file

@ -1,11 +1,11 @@
# No relative imports allowed in this file to be able to run server_setup.py without packages # No relative imports allowed in this file to be able to run server_setup.py without packages
import subprocess import subprocess # nosec 404
from getpass import getpass from getpass import getpass
def run(command, **kwargs): def run(command, **kwargs):
return subprocess.run(command, shell=True, **kwargs) return subprocess.run(command, shell=True, **kwargs) # nosec B602
def box(message, context=None): def box(message, context=None):
@ -80,7 +80,7 @@ def validating_input(
ans = input(prompt) ans = input(prompt)
try: try:
ans = format_function(ans) ans = format_function(ans)
except Exception: except Exception: # nosec B112
continue continue
else: else:
done_validation = True done_validation = True

View file

@ -30,11 +30,11 @@ If you want to clean up after testing with the container, run the following:
`podman rmi systemd_debian` `podman rmi systemd_debian`
""" """
import subprocess import subprocess # nosec 404
def run(command, **kwargs): def run(command, **kwargs):
return subprocess.run(command, shell=True, **kwargs) return subprocess.run(command, shell=True, **kwargs) # nosec B602
def update_system(container_name): def update_system(container_name):