Skip to content

Commit

Permalink
remove git requirement from launching the web version
Browse files Browse the repository at this point in the history
  • Loading branch information
northdpole committed Jul 29, 2024
1 parent 84c7221 commit 6a2b2c4
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions application/cmd/cre_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,6 @@
from application.utils import redis
from application.utils import spreadsheet_parsers
from alive_progress import alive_bar
from application.utils.external_project_parsers.parsers import (
capec_parser,
cwe,
ccmv4,
cheatsheets_parser,
misc_tools_parser,
zap_alerts_parser,
iso27001,
secure_headers,
pci_dss,
juiceshop,
dsomm,
cloud_native_security_controls,
)
from application.prompt_client import prompt_client as prompt_client
from application.utils import gap_analysis

Expand Down Expand Up @@ -556,46 +542,58 @@ def run(args: argparse.Namespace) -> None: # pragma: no cover

# individual resource importing
if args.zap_in:
from application.utils.external_project_parsers.parsers import zap_alerts_parser
BaseParser().register_resource(
zap_alerts_parser.ZAP, db_connection_str=args.cache_file
)
if args.cheatsheets_in:
from application.utils.external_project_parsers.parsers import cheatsheets_parser
BaseParser().register_resource(
cheatsheets_parser.Cheatsheets, db_connection_str=args.cache_file
)
if args.github_tools_in:
from application.utils.external_project_parsers.parsers import misc_tools_parser
BaseParser().register_resource(
misc_tools_parser.MiscTools, db_connection_str=args.cache_file
)
if args.capec_in:
from application.utils.external_project_parsers.parsers import capec_parser
BaseParser().register_resource(
capec_parser.Capec, db_connection_str=args.cache_file
)
if args.cwe_in:
from application.utils.external_project_parsers.parsers import cwe
BaseParser().register_resource(cwe.CWE, db_connection_str=args.cache_file)
if args.csa_ccm_v4_in:
from application.utils.external_project_parsers.parsers import ccmv4
BaseParser().register_resource(
ccmv4.CloudControlsMatrix, db_connection_str=args.cache_file
)
if args.iso_27001_in:
from application.utils.external_project_parsers.parsers import iso27001
BaseParser().register_resource(
iso27001.ISO27001, db_connection_str=args.cache_file
)
if args.owasp_secure_headers_in:
from application.utils.external_project_parsers.parsers import secure_headers
BaseParser().register_resource(
secure_headers.SecureHeaders, db_connection_str=args.cache_file
)
if args.pci_dss_4_in:
from application.utils.external_project_parsers.parsers import pci_dss
BaseParser().register_resource(
pci_dss.PciDss, db_connection_str=args.cache_file
)
if args.juiceshop_in:
from application.utils.external_project_parsers.parsers import juiceshop
BaseParser().register_resource(
juiceshop.JuiceShop, db_connection_str=args.cache_file
)
if args.dsomm_in:
from application.utils.external_project_parsers.parsers import dsomm
BaseParser().register_resource(dsomm.DSOMM, db_connection_str=args.cache_file)
if args.cloud_native_security_controls_in:
from application.utils.external_project_parsers.parsers import cloud_native_security_controls
BaseParser().register_resource(
cloud_native_security_controls.CloudNativeSecurityControls,
db_connection_str=args.cache_file,
Expand Down

0 comments on commit 6a2b2c4

Please sign in to comment.