mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2025-04-10 20:48:36 +00:00
Ignore some security warnings
This commit is contained in:
parent
aabe00fd11
commit
6f9b2984ba
2 changed files with 5 additions and 5 deletions
advlabdb/scripts
|
@ -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
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue