-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstallation.py
More file actions
24 lines (21 loc) · 790 Bytes
/
installation.py
File metadata and controls
24 lines (21 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import subprocess
"""
This file will install all of the integrated tools and packages to ensure everything that is supported is installed in
the system.
"""
def requirements():
"""
This function is used to install the required python packages on the target system
"""
subprocess.run(["pip3", "-r", "install", "requirements.txt"], shell=False)
def install_bandit():
"""
This function is used to install bandit tool on the target system
"""
subprocess.run(["pip3", "install", "bandit"], shell=False)
def install_gosec():
"""
This function is used to install bandit tool on the target system
"""
subprocess.run(["curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s v2.14.0"],
shell=False)