checkmate5 4.1.0.dev36__py3-none-any.whl → 4.1.0.dev38__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checkmate/contrib/plugins/all/{gptanalyzer → aigraphcodescan}/analyzer.py +2 -2
- checkmate/contrib/plugins/all/aigraphcodescan/setup.py +13 -0
- checkmate/lib/code/environment.py +2 -2
- checkmate/management/helpers.py +2 -3
- checkmate/settings/defaults.py +1 -1
- {checkmate5-4.1.0.dev36.dist-info → checkmate5-4.1.0.dev38.dist-info}/METADATA +1 -1
- {checkmate5-4.1.0.dev36.dist-info → checkmate5-4.1.0.dev38.dist-info}/RECORD +13 -13
- checkmate/contrib/plugins/all/gptanalyzer/setup.py +0 -13
- /checkmate/contrib/plugins/all/{gptanalyzer → aigraphcodescan}/__init__.py +0 -0
- /checkmate/contrib/plugins/all/{gptanalyzer → aigraphcodescan}/issues_data.py +0 -0
- {checkmate5-4.1.0.dev36.dist-info → checkmate5-4.1.0.dev38.dist-info}/WHEEL +0 -0
- {checkmate5-4.1.0.dev36.dist-info → checkmate5-4.1.0.dev38.dist-info}/entry_points.txt +0 -0
- {checkmate5-4.1.0.dev36.dist-info → checkmate5-4.1.0.dev38.dist-info}/licenses/LICENSE.txt +0 -0
- {checkmate5-4.1.0.dev36.dist-info → checkmate5-4.1.0.dev38.dist-info}/top_level.txt +0 -0
|
@@ -14,10 +14,10 @@ import re
|
|
|
14
14
|
logger = logging.getLogger(__name__)
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
class
|
|
17
|
+
class AiGraphCodeScanAnalyzer(BaseAnalyzer):
|
|
18
18
|
|
|
19
19
|
def __init__(self, *args, **kwargs):
|
|
20
|
-
super(
|
|
20
|
+
super(AiGraphCodeScanAnalyzer, self).__init__(*args, **kwargs)
|
|
21
21
|
|
|
22
22
|
def summarize(self, items):
|
|
23
23
|
pass
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from .analyzer import AiGraphCodeScanAnalyzer
|
|
2
|
+
from .issues_data import issues_data
|
|
3
|
+
|
|
4
|
+
analyzers = {
|
|
5
|
+
'aigraphcodescan':
|
|
6
|
+
{
|
|
7
|
+
'name': 'aigraphcodescan',
|
|
8
|
+
'title': 'aigraphcodescan',
|
|
9
|
+
'class': AiGraphCodeScanAnalyzer,
|
|
10
|
+
'language': 'all',
|
|
11
|
+
'issues_data': issues_data,
|
|
12
|
+
},
|
|
13
|
+
}
|
|
@@ -550,8 +550,8 @@ class CodeEnvironment(object):
|
|
|
550
550
|
three = self.analyze_file_revision(file_revision, {"trufflehog3": analyzer_params})
|
|
551
551
|
if analyzer_name == "yara":
|
|
552
552
|
four = self.analyze_file_revision(file_revision, {"yara": analyzer_params})
|
|
553
|
-
if analyzer_name == "
|
|
554
|
-
five = self.analyze_file_revision(file_revision, {"
|
|
553
|
+
if analyzer_name == "aigraphcodescan":
|
|
554
|
+
five = self.analyze_file_revision(file_revision, {"aigraphcodescan": analyzer_params})
|
|
555
555
|
if analyzer_name == "privategptanalyzer":
|
|
556
556
|
six = self.analyze_file_revision(file_revision, {"privategptanalyzer": analyzer_params})
|
|
557
557
|
|
checkmate/management/helpers.py
CHANGED
|
@@ -106,8 +106,8 @@ def get_project(project_path, project_config, settings, backend):
|
|
|
106
106
|
project_class = project_config.get('project_class', 'Project')
|
|
107
107
|
ProjectClass = settings.models[project_class]
|
|
108
108
|
|
|
109
|
-
project
|
|
110
|
-
|
|
109
|
+
# Attempt to find the project by project_id
|
|
110
|
+
project = backend.filter(ProjectClass, {'pk': project_config['project_id']}).first()
|
|
111
111
|
|
|
112
112
|
# If the project doesn't exist, create a new one
|
|
113
113
|
if project is None:
|
|
@@ -117,4 +117,3 @@ def get_project(project_path, project_config, settings, backend):
|
|
|
117
117
|
backend.commit() # If your backend requires an explicit commit
|
|
118
118
|
|
|
119
119
|
return project
|
|
120
|
-
|
checkmate/settings/defaults.py
CHANGED
|
@@ -17,7 +17,7 @@ plugins = {
|
|
|
17
17
|
'git': 'checkmate.contrib.plugins.git',
|
|
18
18
|
'bandit': 'checkmate.contrib.plugins.python.bandit',
|
|
19
19
|
'gostaticcheck': 'checkmate.contrib.plugins.golang.gostaticcheck',
|
|
20
|
-
'
|
|
20
|
+
'aigraphcodescan': 'checkmate.contrib.plugins.all.aigraphcodescan',
|
|
21
21
|
'brakeman': 'checkmate.contrib.plugins.ruby.brakeman',
|
|
22
22
|
'tfsec': 'checkmate.contrib.plugins.iac.tfsec',
|
|
23
23
|
'kubescape': 'checkmate.contrib.plugins.iac.kubescape',
|
|
@@ -2,10 +2,10 @@ checkmate/__init__.py,sha256=h0A5VNAgY_KCei1186pBJXycyUYDdeInykmh26yrxOM,1121
|
|
|
2
2
|
checkmate/__main__.py,sha256=f39qxz9fNWmRBKiqJij6cYBO-ekZghr7dDOqAF6xvjU,1182
|
|
3
3
|
checkmate/contrib/__init__.py,sha256=h0A5VNAgY_KCei1186pBJXycyUYDdeInykmh26yrxOM,1121
|
|
4
4
|
checkmate/contrib/plugins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
-
checkmate/contrib/plugins/all/
|
|
6
|
-
checkmate/contrib/plugins/all/
|
|
7
|
-
checkmate/contrib/plugins/all/
|
|
8
|
-
checkmate/contrib/plugins/all/
|
|
5
|
+
checkmate/contrib/plugins/all/aigraphcodescan/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
+
checkmate/contrib/plugins/all/aigraphcodescan/analyzer.py,sha256=5CLYKjtKqxmtq5s9PYYrW8qnSN6eG55HoqWHQ4Kf7Nc,3189
|
|
7
|
+
checkmate/contrib/plugins/all/aigraphcodescan/issues_data.py,sha256=pUC6pC33TEpgRProHoAJPvEr7wYaWgQvDXruWCTO_NE,252
|
|
8
|
+
checkmate/contrib/plugins/all/aigraphcodescan/setup.py,sha256=ojrkDPRHVOC3mK34alu1d994uc0VpixFXsOJuZmr0pY,340
|
|
9
9
|
checkmate/contrib/plugins/cve/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
10
|
checkmate/contrib/plugins/cve/text4shell/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
11
|
checkmate/contrib/plugins/cve/text4shell/analyzer.py,sha256=RgYq1dIGLLRdn8GeehXbjmyaE5nJDh0qRfeI22xTO2g,1850
|
|
@@ -77,13 +77,13 @@ checkmate/lib/models.py,sha256=bmS_QDDBEMaqC0TiKNaoRBCHuVUK9S-TSBB7BYYJz7Q,7404
|
|
|
77
77
|
checkmate/lib/analysis/__init__.py,sha256=_JpM1GkChWCfLKqPqEz3-8DCPwNe7lPwQDMoF_6Ore0,45
|
|
78
78
|
checkmate/lib/analysis/base.py,sha256=R9Zy6rKKCw1LSAsBBBaBbgFEo6Fkdx8DTtp7bsYoywE,3309
|
|
79
79
|
checkmate/lib/code/__init__.py,sha256=a_z91IbpJCeWSjv4Qh2NAlcLhSfesGJ_fFXiz7i5JGI,84
|
|
80
|
-
checkmate/lib/code/environment.py,sha256=
|
|
80
|
+
checkmate/lib/code/environment.py,sha256=znU37Zh7DNRNkzycUGFO7c8INKjWZipAIpXN_THQAaY,34592
|
|
81
81
|
checkmate/lib/stats/__init__.py,sha256=iwhKnzeBJLKxpRVjvzwiRE63_zNpIBfaKLITauVph-0,24
|
|
82
82
|
checkmate/lib/stats/helpers.py,sha256=X21Pb7dz3PWubDRoqUjbxwonl43TRxqKEcwyM80tS6U,535
|
|
83
83
|
checkmate/lib/stats/mapreduce.py,sha256=rGdA_HninEZSeowtBn5R02c6wyT5dxcu-0T2ftlMnY0,782
|
|
84
84
|
checkmate/management/__init__.py,sha256=iwhKnzeBJLKxpRVjvzwiRE63_zNpIBfaKLITauVph-0,24
|
|
85
85
|
checkmate/management/decorators.py,sha256=iwhKnzeBJLKxpRVjvzwiRE63_zNpIBfaKLITauVph-0,24
|
|
86
|
-
checkmate/management/helpers.py,sha256=
|
|
86
|
+
checkmate/management/helpers.py,sha256=hZsewUdxm78VjLUJ1BfGUGmPvsbVOHqDfv534pvV3xI,4632
|
|
87
87
|
checkmate/management/commands/__init__.py,sha256=XAi0y8z1NviyGvLB68Oxnzr6Nw5AP8xgbcSSnc1Zcvw,766
|
|
88
88
|
checkmate/management/commands/alembic.py,sha256=DTWH8hcY6UmWDo0wMwcID_wQIa-es7nyJHV6p1_T4FQ,718
|
|
89
89
|
checkmate/management/commands/analyze.py,sha256=J1rawVEGjbrXT9ArfUVpfoLNs2JaFkV4mCrBnEIrXaw,1159
|
|
@@ -110,10 +110,10 @@ checkmate/scripts/__init__.py,sha256=XAi0y8z1NviyGvLB68Oxnzr6Nw5AP8xgbcSSnc1Zcvw
|
|
|
110
110
|
checkmate/scripts/manage.py,sha256=mpioBaxzirAKXZtbxO-y4dbOcc6UoP0MaAMsNuKHbz0,4253
|
|
111
111
|
checkmate/settings/__init__.py,sha256=z32hPz-kGS-tTGa6dWCFjrrrbS_eagLd-YrqBP3gjWI,33
|
|
112
112
|
checkmate/settings/base.py,sha256=3WBXZITqoWepIja96bo5JTi-TDpQALPTCugL0E8z-yE,4551
|
|
113
|
-
checkmate/settings/defaults.py,sha256=
|
|
114
|
-
checkmate5-4.1.0.
|
|
115
|
-
checkmate5-4.1.0.
|
|
116
|
-
checkmate5-4.1.0.
|
|
117
|
-
checkmate5-4.1.0.
|
|
118
|
-
checkmate5-4.1.0.
|
|
119
|
-
checkmate5-4.1.0.
|
|
113
|
+
checkmate/settings/defaults.py,sha256=JaR9H5fciWy4PMX3oqIeaui7HDzjWSIhsXZD3tj4mSc,2736
|
|
114
|
+
checkmate5-4.1.0.dev38.dist-info/licenses/LICENSE.txt,sha256=SGQTFjJQjkYGoK1PCFfMKpfgRLm3yL0h9Mq2o26sm2E,151451
|
|
115
|
+
checkmate5-4.1.0.dev38.dist-info/METADATA,sha256=Ujic6ikp2eP3e_E5kPwAhXJO-89ncByRsmmeAzYiACM,1262
|
|
116
|
+
checkmate5-4.1.0.dev38.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
117
|
+
checkmate5-4.1.0.dev38.dist-info/entry_points.txt,sha256=FbGnau5C4z98WmBYpMJqUzobQEr1AIi9aZApSavNojQ,60
|
|
118
|
+
checkmate5-4.1.0.dev38.dist-info/top_level.txt,sha256=tl6eIJXedpLZbcbmYEwlhEzuTaSt0TvIRUesOb8gtng,10
|
|
119
|
+
checkmate5-4.1.0.dev38.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|