From 6f9b2984ba8644f3ffedc5b654367c55ceb6dee0 Mon Sep 17 00:00:00 2001 From: Mo8it Date: Sun, 3 Jul 2022 17:45:24 +0200 Subject: [PATCH] Ignore some security warnings --- advlabdb/scripts/terminal_utils.py | 6 +++--- advlabdb/scripts/test/test_container.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/advlabdb/scripts/terminal_utils.py b/advlabdb/scripts/terminal_utils.py index a66982b..f2d93b6 100644 --- a/advlabdb/scripts/terminal_utils.py +++ b/advlabdb/scripts/terminal_utils.py @@ -1,11 +1,11 @@ # 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 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): @@ -80,7 +80,7 @@ def validating_input( ans = input(prompt) try: ans = format_function(ans) - except Exception: + except Exception: # nosec B112 continue else: done_validation = True diff --git a/advlabdb/scripts/test/test_container.py b/advlabdb/scripts/test/test_container.py index afbc6c7..c700232 100644 --- a/advlabdb/scripts/test/test_container.py +++ b/advlabdb/scripts/test/test_container.py @@ -30,11 +30,11 @@ If you want to clean up after testing with the container, run the following: `podman rmi systemd_debian` """ -import subprocess +import subprocess # nosec 404 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):