CheckmarxPythonSDK 1.9.1__py3-none-any.whl → 1.9.2__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.
- CheckmarxPythonSDK/CxODataApiSDK/Utilities.py +10 -12
- CheckmarxPythonSDK/CxODataApiSDK/config.py +1 -1
- CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientsApi.py +2 -2
- CheckmarxPythonSDK/CxOne/__init__.py +4 -4
- CheckmarxPythonSDK/CxOne/byorResultsHandlerAPI.py +3 -3
- CheckmarxPythonSDK/CxOne/dastResultsAPI.py +3 -3
- CheckmarxPythonSDK/CxOne/dastScanAPI.py +9 -3
- CheckmarxPythonSDK/CxOne/dto/DastResultsSortBy.py +1 -1
- CheckmarxPythonSDK/CxOne/queryEditorAPI.py +6 -6
- CheckmarxPythonSDK/CxOne/repoManagerAPI.py +1 -1
- CheckmarxPythonSDK/CxOne/reportAPI.py +9 -7
- CheckmarxPythonSDK/CxOne/scansAPI.py +4 -4
- CheckmarxPythonSDK/CxOne/uploadsAPI.py +3 -1
- CheckmarxPythonSDK/CxPortalSoapApiSDK/CxAuditWebService.py +3 -1
- CheckmarxPythonSDK/CxPortalSoapApiSDK/CxPortalWebService.py +4 -2
- CheckmarxPythonSDK/CxPortalSoapApiSDK/config.py +1 -1
- CheckmarxPythonSDK/CxReporting/api.py +4 -2
- CheckmarxPythonSDK/CxReporting/config.py +1 -1
- CheckmarxPythonSDK/CxRestAPISDK/ScansAPI.py +3 -3
- CheckmarxPythonSDK/CxRestAPISDK/config.py +1 -1
- CheckmarxPythonSDK/CxScaApiSDK/config.py +1 -1
- CheckmarxPythonSDK/__version__.py +1 -1
- CheckmarxPythonSDK/api_client.py +65 -31
- CheckmarxPythonSDK/rate_limiter.py +3 -3
- CheckmarxPythonSDK/utilities/configUtility.py +2 -2
- {checkmarxpythonsdk-1.9.1.dist-info → checkmarxpythonsdk-1.9.2.dist-info}/METADATA +16 -1
- {checkmarxpythonsdk-1.9.1.dist-info → checkmarxpythonsdk-1.9.2.dist-info}/RECORD +30 -30
- {checkmarxpythonsdk-1.9.1.dist-info → checkmarxpythonsdk-1.9.2.dist-info}/WHEEL +1 -1
- {checkmarxpythonsdk-1.9.1.dist-info → checkmarxpythonsdk-1.9.2.dist-info}/licenses/LICENSE +0 -0
- {checkmarxpythonsdk-1.9.1.dist-info → checkmarxpythonsdk-1.9.2.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import csv
|
|
2
2
|
from itertools import groupby
|
|
3
3
|
from copy import deepcopy
|
|
4
|
+
import logging
|
|
5
|
+
logger = logging.getLogger(__name__)
|
|
4
6
|
|
|
5
7
|
from .ProjectsODataAPI import (
|
|
6
8
|
get_all_projects_id_name,
|
|
@@ -105,8 +107,8 @@ def get_all_results_with_count_for_each_project_json_format(
|
|
|
105
107
|
{"ScanId": scan_id, "ResultsWithQuery": results_with_query}
|
|
106
108
|
)
|
|
107
109
|
except ValueError as e:
|
|
108
|
-
|
|
109
|
-
|
|
110
|
+
logger.info(e)
|
|
111
|
+
logger.error("Fail to fetch data for scan id: {id} ".format(id=scan_id))
|
|
110
112
|
|
|
111
113
|
project.update({"Scans": results_list})
|
|
112
114
|
|
|
@@ -167,11 +169,9 @@ def get_result(project, filter_false_positive=False, threshold=0):
|
|
|
167
169
|
|
|
168
170
|
last_scan_id = get_last_scan_id_of_a_project(project_id=project_id)
|
|
169
171
|
if not last_scan_id:
|
|
170
|
-
|
|
171
|
-
"Project name: {name}, id : {id} has no scans".format(
|
|
172
|
+
logger.info("Project name: {name}, id : {id} has no scans".format(
|
|
172
173
|
name=project_name, id=project_id
|
|
173
|
-
)
|
|
174
|
-
)
|
|
174
|
+
))
|
|
175
175
|
return None
|
|
176
176
|
|
|
177
177
|
last_full_scan_id = get_last_full_scan_id_of_a_project(project_id=project_id)
|
|
@@ -181,8 +181,8 @@ def get_result(project, filter_false_positive=False, threshold=0):
|
|
|
181
181
|
scan_id=last_scan_id
|
|
182
182
|
)
|
|
183
183
|
except ValueError as e:
|
|
184
|
-
|
|
185
|
-
|
|
184
|
+
logger.error("Fail to get scan result for scan id: {id}".format(id=last_scan_id))
|
|
185
|
+
logger.error("Exception: {error} ".format(error=e))
|
|
186
186
|
return None
|
|
187
187
|
|
|
188
188
|
if last_scan_id != last_full_scan_id:
|
|
@@ -193,10 +193,8 @@ def get_result(project, filter_false_positive=False, threshold=0):
|
|
|
193
193
|
)
|
|
194
194
|
)
|
|
195
195
|
except Exception as e:
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
)
|
|
199
|
-
print("Exception: {error} ".format(error=e))
|
|
196
|
+
logger.error("Fail to get scan result for scan id: {id}".format(id=last_full_scan_id))
|
|
197
|
+
logger.error("Exception: {error} ".format(error=e))
|
|
200
198
|
return None
|
|
201
199
|
|
|
202
200
|
result_list = merge_results_by_similarity_id(result_list, last_full_scan_result)
|
|
@@ -42,7 +42,7 @@ def construct_configuration() -> Configuration:
|
|
|
42
42
|
scope="access_control_api sast_api",
|
|
43
43
|
client_id="resource_owner_sast_client",
|
|
44
44
|
client_secret="014DF517-39D1-4453-B7B3-9930C563627C",
|
|
45
|
-
timeout=config.get("timeout"),
|
|
45
|
+
timeout=int(config.get("timeout")),
|
|
46
46
|
verify=config.get("verify"),
|
|
47
47
|
cert=config.get("cert"),
|
|
48
48
|
proxy=config.get("proxy"),
|
|
@@ -86,8 +86,8 @@ class ClientsApi:
|
|
|
86
86
|
Relative path: /{realm}/clients
|
|
87
87
|
"""
|
|
88
88
|
url = f"{self.base_url}/{realm}/clients"
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
logger.info(f"Post request to {url}")
|
|
90
|
+
logger.info(f"Request body: {client_representation.to_dict()}")
|
|
91
91
|
response = self.api_client.call_api("POST", url, json=client_representation.to_dict())
|
|
92
92
|
return response.status_code == 201
|
|
93
93
|
|
|
@@ -148,7 +148,7 @@ from .auditTrailAPI import (
|
|
|
148
148
|
)
|
|
149
149
|
from .byorResultsHandlerAPI import (
|
|
150
150
|
ByorResultsHandlerAPI,
|
|
151
|
-
|
|
151
|
+
create_byor_import_v1,
|
|
152
152
|
save_triage,
|
|
153
153
|
get_triage,
|
|
154
154
|
)
|
|
@@ -238,7 +238,7 @@ from .dastScanAPI import (
|
|
|
238
238
|
)
|
|
239
239
|
from .dastResultsAPI import (
|
|
240
240
|
DastResultsAPI,
|
|
241
|
-
|
|
241
|
+
dast_get_results,
|
|
242
242
|
update_results,
|
|
243
243
|
get_result_info,
|
|
244
244
|
get_results_count_by_group,
|
|
@@ -401,10 +401,10 @@ from .queryEditorAPI import (
|
|
|
401
401
|
create_new_audit_session,
|
|
402
402
|
heath_check_to_ensure_audit_session_is_kept_alive,
|
|
403
403
|
delete_audit_session_with_specific_id,
|
|
404
|
-
|
|
404
|
+
get_query_editor_session_logs,
|
|
405
405
|
scan_the_audit_session_sources,
|
|
406
406
|
create_or_override_query,
|
|
407
|
-
|
|
407
|
+
get_query_editor_queries,
|
|
408
408
|
get_data_of_a_specified_query,
|
|
409
409
|
delete_a_specified_custom_or_overridden_query,
|
|
410
410
|
update_specified_query_metadata,
|
|
@@ -19,7 +19,7 @@ class ByorResultsHandlerAPI(object):
|
|
|
19
19
|
self.api_client = api_client
|
|
20
20
|
self.base_url = f"{self.api_client.configuration.server_base_url}/api/v1/byor"
|
|
21
21
|
|
|
22
|
-
def
|
|
22
|
+
def create_byor_import_v1(self, import_request: ImportRequest) -> ImportResults:
|
|
23
23
|
"""
|
|
24
24
|
Args:
|
|
25
25
|
import_request (ImportRequest):
|
|
@@ -64,8 +64,8 @@ class ByorResultsHandlerAPI(object):
|
|
|
64
64
|
return TriageResponse.from_dict(response.json())
|
|
65
65
|
|
|
66
66
|
|
|
67
|
-
def
|
|
68
|
-
return ByorResultsHandlerAPI().
|
|
67
|
+
def create_byor_import_v1(import_request) -> ImportResults:
|
|
68
|
+
return ByorResultsHandlerAPI().create_byor_import_v1(import_request)
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
def save_triage(triage_request: TriageRequest) -> bool:
|
|
@@ -38,7 +38,7 @@ class DastResultsAPI(object):
|
|
|
38
38
|
f"{self.api_client.configuration.server_base_url}/api/dast/mfe-results"
|
|
39
39
|
)
|
|
40
40
|
|
|
41
|
-
def
|
|
41
|
+
def dast_get_results(
|
|
42
42
|
self,
|
|
43
43
|
scan_id: str,
|
|
44
44
|
filter_: DastResultsFilter = None,
|
|
@@ -175,7 +175,7 @@ class DastResultsAPI(object):
|
|
|
175
175
|
|
|
176
176
|
# ----- Module-level conveniences -----
|
|
177
177
|
|
|
178
|
-
def
|
|
178
|
+
def dast_get_results(
|
|
179
179
|
scan_id: str,
|
|
180
180
|
filter_: DastResultsFilter = None,
|
|
181
181
|
page: int = None,
|
|
@@ -184,7 +184,7 @@ def get_results(
|
|
|
184
184
|
sort_by: List[DastResultsSortBy] = None,
|
|
185
185
|
group: str = None,
|
|
186
186
|
) -> DastResultsCollection:
|
|
187
|
-
return DastResultsAPI().
|
|
187
|
+
return DastResultsAPI().dast_get_results(
|
|
188
188
|
scan_id=scan_id, filter_=filter_, page=page, per_page=per_page,
|
|
189
189
|
search=search, sort_by=sort_by, group=group,
|
|
190
190
|
)
|
|
@@ -331,18 +331,24 @@ class DastScanAPI(object):
|
|
|
331
331
|
}
|
|
332
332
|
data = {k: v for k, v in data.items() if v is not None}
|
|
333
333
|
|
|
334
|
-
#
|
|
334
|
+
# Read files fully and pass bytes to httpx: file objects passed to
|
|
335
|
+
# httpx are not closed by it, which leaks the handle and prevents
|
|
336
|
+
# deleting the file afterwards on Windows.
|
|
335
337
|
files = {}
|
|
336
338
|
if scan.configuration_file:
|
|
339
|
+
with open(scan.configuration_file, "rb") as fh:
|
|
340
|
+
config_content = fh.read()
|
|
337
341
|
files["configurationFile"] = (
|
|
338
342
|
os.path.basename(scan.configuration_file),
|
|
339
|
-
|
|
343
|
+
config_content,
|
|
340
344
|
"application/octet-stream",
|
|
341
345
|
)
|
|
342
346
|
if scan.api_file:
|
|
347
|
+
with open(scan.api_file, "rb") as fh:
|
|
348
|
+
api_content = fh.read()
|
|
343
349
|
files["APIFile"] = (
|
|
344
350
|
os.path.basename(scan.api_file),
|
|
345
|
-
|
|
351
|
+
api_content,
|
|
346
352
|
"application/octet-stream",
|
|
347
353
|
)
|
|
348
354
|
|
|
@@ -78,7 +78,7 @@ class QueryEditorAPI(object):
|
|
|
78
78
|
response = self.api_client.call_api(method="DELETE", url=url)
|
|
79
79
|
return response.status_code == NO_CONTENT
|
|
80
80
|
|
|
81
|
-
def
|
|
81
|
+
def get_query_editor_session_logs(
|
|
82
82
|
self, session_id: str
|
|
83
83
|
) -> bytes:
|
|
84
84
|
"""
|
|
@@ -124,7 +124,7 @@ class QueryEditorAPI(object):
|
|
|
124
124
|
)
|
|
125
125
|
return AsyncRequestResponse.from_dict(response.json())
|
|
126
126
|
|
|
127
|
-
def
|
|
127
|
+
def get_query_editor_queries(
|
|
128
128
|
self,
|
|
129
129
|
session_id: str,
|
|
130
130
|
level: str = None,
|
|
@@ -420,10 +420,10 @@ def delete_audit_session_with_specific_id(session_id: str) -> bool:
|
|
|
420
420
|
)
|
|
421
421
|
|
|
422
422
|
|
|
423
|
-
def
|
|
423
|
+
def get_query_editor_session_logs(
|
|
424
424
|
session_id: str,
|
|
425
425
|
) -> bytes:
|
|
426
|
-
return QueryEditorAPI().
|
|
426
|
+
return QueryEditorAPI().get_query_editor_session_logs(
|
|
427
427
|
session_id=session_id
|
|
428
428
|
)
|
|
429
429
|
|
|
@@ -444,13 +444,13 @@ def create_or_override_query(
|
|
|
444
444
|
)
|
|
445
445
|
|
|
446
446
|
|
|
447
|
-
def
|
|
447
|
+
def get_query_editor_queries(
|
|
448
448
|
session_id: str,
|
|
449
449
|
level: str = None,
|
|
450
450
|
ids: List[str] = None,
|
|
451
451
|
filters: List[str] = None,
|
|
452
452
|
) -> List[QueriesTree]:
|
|
453
|
-
return QueryEditorAPI().
|
|
453
|
+
return QueryEditorAPI().get_query_editor_queries(
|
|
454
454
|
session_id=session_id, level=level, ids=ids, filters=filters
|
|
455
455
|
)
|
|
456
456
|
|
|
@@ -236,7 +236,7 @@ class RepoManagerAPI(object):
|
|
|
236
236
|
url=url,
|
|
237
237
|
params=params,
|
|
238
238
|
)
|
|
239
|
-
|
|
239
|
+
logger.info(response.json())
|
|
240
240
|
return RepoOrgs(orgs=[RepoOrg(**item) for item in response.json().get("orgs")])
|
|
241
241
|
|
|
242
242
|
def create_installation_of_scm_on_org(
|
|
@@ -2,6 +2,8 @@ import time
|
|
|
2
2
|
from CheckmarxPythonSDK.api_client import ApiClient
|
|
3
3
|
from CheckmarxPythonSDK.CxOne.config import construct_configuration
|
|
4
4
|
from typing import List
|
|
5
|
+
import logging
|
|
6
|
+
logger = logging.getLogger(__name__)
|
|
5
7
|
|
|
6
8
|
|
|
7
9
|
class ReportAPI(object):
|
|
@@ -74,10 +76,10 @@ class ReportAPI(object):
|
|
|
74
76
|
)
|
|
75
77
|
status = response.json().get("status")
|
|
76
78
|
if status == "completed":
|
|
77
|
-
|
|
79
|
+
logger.info("Report has been generated successfully!")
|
|
78
80
|
break
|
|
79
81
|
else:
|
|
80
|
-
|
|
82
|
+
logger.info("Generating report, please wait...")
|
|
81
83
|
time.sleep(2)
|
|
82
84
|
return report_id
|
|
83
85
|
|
|
@@ -123,10 +125,10 @@ class ReportAPI(object):
|
|
|
123
125
|
)
|
|
124
126
|
status = response.json().get("status")
|
|
125
127
|
if status == "completed":
|
|
126
|
-
|
|
128
|
+
logger.info("Report has been generated successfully!")
|
|
127
129
|
break
|
|
128
130
|
else:
|
|
129
|
-
|
|
131
|
+
logger.info("Generating report, please wait...")
|
|
130
132
|
time.sleep(2)
|
|
131
133
|
return report_id
|
|
132
134
|
|
|
@@ -233,13 +235,13 @@ class ReportAPI(object):
|
|
|
233
235
|
response = self.api_client.call_api(
|
|
234
236
|
method="GET", url=download_url
|
|
235
237
|
)
|
|
236
|
-
|
|
238
|
+
logger.info("Report has been generated successfully!")
|
|
237
239
|
break
|
|
238
240
|
if status == "Failed":
|
|
239
|
-
|
|
241
|
+
logger.error(f"Error: {response.content}")
|
|
240
242
|
break
|
|
241
243
|
else:
|
|
242
|
-
|
|
244
|
+
logger.info("Generating report, please wait...")
|
|
243
245
|
time.sleep(2)
|
|
244
246
|
return response.json()
|
|
245
247
|
|
|
@@ -5,6 +5,8 @@ from typing import List
|
|
|
5
5
|
from httpx import Response
|
|
6
6
|
from deprecated import deprecated
|
|
7
7
|
from CheckmarxPythonSDK.utilities.compat import NO_CONTENT, OK, CREATED
|
|
8
|
+
import logging
|
|
9
|
+
logger = logging.getLogger(__name__)
|
|
8
10
|
|
|
9
11
|
from .dto import (
|
|
10
12
|
ScanInput,
|
|
@@ -481,10 +483,8 @@ class ScansAPI(object):
|
|
|
481
483
|
{"type": engine, "value": engine_configs[engine]}
|
|
482
484
|
)
|
|
483
485
|
else:
|
|
484
|
-
|
|
485
|
-
f"
|
|
486
|
-
f"and will be ignored."
|
|
487
|
-
)
|
|
486
|
+
logger.warning(f"Warning: Engine '{engine}' is not supported "
|
|
487
|
+
f"and will be ignored.")
|
|
488
488
|
return self.api_client.call_api(
|
|
489
489
|
method="POST", url=self.base_url, json=scan_data
|
|
490
490
|
)
|
|
@@ -5,6 +5,8 @@ import os
|
|
|
5
5
|
from CheckmarxPythonSDK.utilities.compat import OK, NO_CONTENT
|
|
6
6
|
from typing import List
|
|
7
7
|
from os.path import exists
|
|
8
|
+
import logging
|
|
9
|
+
logger = logging.getLogger(__name__)
|
|
8
10
|
|
|
9
11
|
|
|
10
12
|
class UploadsAPI(object):
|
|
@@ -46,7 +48,7 @@ class UploadsAPI(object):
|
|
|
46
48
|
is_successful (bool)
|
|
47
49
|
"""
|
|
48
50
|
if not zip_file_path or not exists(zip_file_path):
|
|
49
|
-
|
|
51
|
+
logger.info("zip file path: {} does not exist".format(zip_file_path))
|
|
50
52
|
file_name = os.path.basename(zip_file_path)
|
|
51
53
|
response = self.api_client.call_api(
|
|
52
54
|
method="PUT",
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
from os.path import exists
|
|
2
2
|
from CheckmarxPythonSDK.configuration import Configuration
|
|
3
3
|
from CheckmarxPythonSDK.CxPortalSoapApiSDK.config import construct_configuration
|
|
4
|
+
import logging
|
|
5
|
+
logger = logging.getLogger(__name__)
|
|
4
6
|
from .sudsClient import SudsClient
|
|
5
7
|
|
|
6
8
|
|
|
@@ -438,7 +440,7 @@ class CxAuditWebService(object):
|
|
|
438
440
|
|
|
439
441
|
def import_queries(self, imported_file_path: str) -> dict:
|
|
440
442
|
if not exists(imported_file_path):
|
|
441
|
-
|
|
443
|
+
logger.error("Error, the imported file {} not exist".format(imported_file_path))
|
|
442
444
|
return None
|
|
443
445
|
with open(imported_file_path, "rb") as xml_file:
|
|
444
446
|
imported_file = xml_file.read()
|
|
@@ -9,6 +9,8 @@ from os.path import exists
|
|
|
9
9
|
from typing import List, Union
|
|
10
10
|
from CheckmarxPythonSDK.configuration import Configuration
|
|
11
11
|
from CheckmarxPythonSDK.CxPortalSoapApiSDK.config import construct_configuration
|
|
12
|
+
import logging
|
|
13
|
+
logger = logging.getLogger(__name__)
|
|
12
14
|
from .sudsClient import SudsClient
|
|
13
15
|
|
|
14
16
|
|
|
@@ -1152,7 +1154,7 @@ class CxPortalWebService(object):
|
|
|
1152
1154
|
|
|
1153
1155
|
"""
|
|
1154
1156
|
if not exists(imported_file_path):
|
|
1155
|
-
|
|
1157
|
+
logger.error("Error, the imported file {} not exist".format(imported_file_path))
|
|
1156
1158
|
return
|
|
1157
1159
|
|
|
1158
1160
|
with open(imported_file_path, "rb") as xml_file:
|
|
@@ -1177,7 +1179,7 @@ class CxPortalWebService(object):
|
|
|
1177
1179
|
|
|
1178
1180
|
"""
|
|
1179
1181
|
if not exists(imported_file_path):
|
|
1180
|
-
|
|
1182
|
+
logger.error("Error, the imported file {} not exist".format(imported_file_path))
|
|
1181
1183
|
return
|
|
1182
1184
|
|
|
1183
1185
|
with open(imported_file_path, "rb") as xml_file:
|
|
@@ -40,7 +40,7 @@ def construct_configuration() -> Configuration:
|
|
|
40
40
|
scope="offline_access sast_api",
|
|
41
41
|
client_id="resource_owner_sast_client",
|
|
42
42
|
client_secret="014DF517-39D1-4453-B7B3-9930C563627C",
|
|
43
|
-
timeout=config.get("timeout"),
|
|
43
|
+
timeout=int(config.get("timeout")),
|
|
44
44
|
verify=config.get("verify"),
|
|
45
45
|
cert=config.get("cert"),
|
|
46
46
|
proxy=config.get("proxy"),
|
|
@@ -4,6 +4,8 @@ import time
|
|
|
4
4
|
import json
|
|
5
5
|
from CheckmarxPythonSDK.utilities.compat import OK, CREATED
|
|
6
6
|
from typing import Union
|
|
7
|
+
import logging
|
|
8
|
+
logger = logging.getLogger(__name__)
|
|
7
9
|
from .dto import (
|
|
8
10
|
CreateReportDTO,
|
|
9
11
|
)
|
|
@@ -97,12 +99,12 @@ class CxReporting(object):
|
|
|
97
99
|
)
|
|
98
100
|
while report_status.upper() != "FINISHED":
|
|
99
101
|
if "FAIL" in report_status.upper():
|
|
100
|
-
|
|
102
|
+
logger.error("Report generation failed!")
|
|
101
103
|
return None
|
|
102
104
|
report_status = self.retrieve_the_status_of_a_specific_report(
|
|
103
105
|
report_id=report_id
|
|
104
106
|
)
|
|
105
|
-
|
|
107
|
+
logger.info("report status: {}".format(report_status))
|
|
106
108
|
time.sleep(2)
|
|
107
109
|
|
|
108
110
|
return self.retrieve_the_file_of_a_specific_report(report_id=report_id)
|
|
@@ -29,7 +29,7 @@ def construct_configuration() -> Configuration:
|
|
|
29
29
|
scope=config.get("scope"),
|
|
30
30
|
client_id=config.get("client_id"),
|
|
31
31
|
client_secret=config.get("client_secret"),
|
|
32
|
-
timeout=config.get("timeout"),
|
|
32
|
+
timeout=int(config.get("timeout")),
|
|
33
33
|
verify=config.get("verify"),
|
|
34
34
|
cert=config.get("cert"),
|
|
35
35
|
proxy=config.get("proxy"),
|
|
@@ -6,6 +6,8 @@ import json
|
|
|
6
6
|
from os.path import normpath, exists, abspath
|
|
7
7
|
|
|
8
8
|
from CheckmarxPythonSDK.utilities.compat import OK, CREATED, NO_CONTENT, ACCEPTED
|
|
9
|
+
import logging
|
|
10
|
+
logger = logging.getLogger(__name__)
|
|
9
11
|
from .sast.projects.dto import CxLink, CxProject, CxPreset
|
|
10
12
|
from .sast.engines.dto import CxEngineServer, CxEngineConfiguration
|
|
11
13
|
from .sast.scans.dto import (
|
|
@@ -1020,9 +1022,7 @@ class ScansAPI(object):
|
|
|
1020
1022
|
url = f"{self.base_url}/cxrestapi/sast/scanWithSettings"
|
|
1021
1023
|
file_name = os.path.basename(zipped_source_file_path)
|
|
1022
1024
|
if not exists(normpath(abspath(zipped_source_file_path))):
|
|
1023
|
-
|
|
1024
|
-
"zipped_source_file_path not exist: {}".format(zipped_source_file_path)
|
|
1025
|
-
)
|
|
1025
|
+
logger.info("zipped_source_file_path not exist: {}".format(zipped_source_file_path))
|
|
1026
1026
|
return None
|
|
1027
1027
|
fields = {
|
|
1028
1028
|
"projectId": str(project_id),
|
|
@@ -43,7 +43,7 @@ def construct_configuration() -> Configuration:
|
|
|
43
43
|
scope=config.get("scope"),
|
|
44
44
|
client_id=config.get("client_id"),
|
|
45
45
|
client_secret=config.get("client_secret"),
|
|
46
|
-
timeout=config.get("timeout"),
|
|
46
|
+
timeout=int(config.get("timeout")),
|
|
47
47
|
verify=config.get("verify"),
|
|
48
48
|
cert=config.get("cert"),
|
|
49
49
|
proxy=config.get("proxy"),
|
|
@@ -24,7 +24,7 @@ def construct_configuration() -> Configuration:
|
|
|
24
24
|
username=config.get("username"),
|
|
25
25
|
password=config.get("password"),
|
|
26
26
|
scope=config.get("scope"),
|
|
27
|
-
timeout=config.get("timeout"),
|
|
27
|
+
timeout=int(config.get("timeout")),
|
|
28
28
|
verify=config.get("verify"),
|
|
29
29
|
cert=config.get("cert"),
|
|
30
30
|
proxy=config.get("proxy"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.9.
|
|
1
|
+
__version__ = "1.9.2"
|
CheckmarxPythonSDK/api_client.py
CHANGED
|
@@ -5,6 +5,8 @@ import ssl
|
|
|
5
5
|
import time
|
|
6
6
|
import typing
|
|
7
7
|
from typing import Callable, Union
|
|
8
|
+
import logging
|
|
9
|
+
logger = logging.getLogger(__name__)
|
|
8
10
|
from .configuration import Configuration
|
|
9
11
|
from .rate_limiter import RateLimiter
|
|
10
12
|
from .__version__ import __version__
|
|
@@ -94,10 +96,39 @@ class TokenManager:
|
|
|
94
96
|
self.current_token = self.token_refresh_func(*self.args, **self.kwargs)
|
|
95
97
|
|
|
96
98
|
|
|
99
|
+
def _retry_after_seconds(response) -> typing.Optional[float]:
|
|
100
|
+
"""
|
|
101
|
+
Parse a Retry-After header as a wait time in seconds.
|
|
102
|
+
|
|
103
|
+
Args:
|
|
104
|
+
response: the HTTP response whose headers are inspected.
|
|
105
|
+
|
|
106
|
+
Returns:
|
|
107
|
+
float seconds to wait, at least 1; None if the header is absent or unparseable.
|
|
108
|
+
"""
|
|
109
|
+
retry_after = response.headers.get("Retry-After")
|
|
110
|
+
if not retry_after:
|
|
111
|
+
return None
|
|
112
|
+
try:
|
|
113
|
+
# If it's a number of seconds
|
|
114
|
+
return max(1, float(retry_after))
|
|
115
|
+
except ValueError:
|
|
116
|
+
# If it's a GMT date string, parse it
|
|
117
|
+
from email.utils import parsedate_to_datetime
|
|
118
|
+
|
|
119
|
+
import datetime
|
|
120
|
+
|
|
121
|
+
retry_date = parsedate_to_datetime(retry_after)
|
|
122
|
+
backoff_time = (
|
|
123
|
+
retry_date - datetime.datetime.now(datetime.timezone.utc)
|
|
124
|
+
).total_seconds()
|
|
125
|
+
return max(1, backoff_time)
|
|
126
|
+
|
|
127
|
+
|
|
97
128
|
def retry():
|
|
98
129
|
"""
|
|
99
|
-
Decorator that retries the HTTP request when receiving a 401 Unauthorized
|
|
100
|
-
Uses self.configuration.max_retries to determine the retry count.
|
|
130
|
+
Decorator that retries the HTTP request when receiving a 401 Unauthorized, 429 Too Many Requests,
|
|
131
|
+
or 500/502/503/504 server error response. Uses self.configuration.max_retries to determine the retry count.
|
|
101
132
|
"""
|
|
102
133
|
|
|
103
134
|
def decorator(func: Callable):
|
|
@@ -126,36 +157,34 @@ def retry():
|
|
|
126
157
|
response.raise_for_status()
|
|
127
158
|
elif response.status_code in (500, 502, 503, 504):
|
|
128
159
|
if retries < max_retries:
|
|
160
|
+
# Server-side errors such as gateway timeouts (504) often
|
|
161
|
+
# resolve after a short wait — e.g. a report export may
|
|
162
|
+
# still be generating server-side. Back off before retrying.
|
|
163
|
+
backoff_time = _retry_after_seconds(response)
|
|
164
|
+
if backoff_time is None:
|
|
165
|
+
# Exponential backoff: 30s, 60s, 120s, ... capped at
|
|
166
|
+
# 180s (3 minutes). Gateway timeouts (504) often mean the
|
|
167
|
+
# operation is still running server-side, so the waits are
|
|
168
|
+
# generous enough to let report generation finish.
|
|
169
|
+
base_wait = 30
|
|
170
|
+
max_wait = 180
|
|
171
|
+
backoff_time = min(
|
|
172
|
+
base_wait * (2**retries), max_wait
|
|
173
|
+
)
|
|
174
|
+
|
|
175
|
+
logger.info(f"Server error ({response.status_code}), waiting {backoff_time:.2f} seconds before retrying...")
|
|
176
|
+
time.sleep(backoff_time)
|
|
129
177
|
retries += 1
|
|
130
178
|
continue
|
|
131
179
|
else:
|
|
132
|
-
|
|
180
|
+
# Retries exhausted — raise the same ValueError format the
|
|
181
|
+
# SDK has always used for HTTP errors.
|
|
182
|
+
check_response(response)
|
|
133
183
|
elif response.status_code == 429:
|
|
134
184
|
if retries < max_retries:
|
|
135
185
|
# Handle rate limiting
|
|
136
|
-
backoff_time = None
|
|
137
186
|
# 1. Try to get Retry-After header first
|
|
138
|
-
|
|
139
|
-
retry_after = response.headers["Retry-After"]
|
|
140
|
-
try:
|
|
141
|
-
# If it's a number of seconds
|
|
142
|
-
backoff_time = int(retry_after)
|
|
143
|
-
except ValueError:
|
|
144
|
-
# If it's a GMT date string, parse it
|
|
145
|
-
from email.utils import parsedate_to_datetime
|
|
146
|
-
|
|
147
|
-
retry_date = parsedate_to_datetime(retry_after)
|
|
148
|
-
import datetime
|
|
149
|
-
|
|
150
|
-
backoff_time = (
|
|
151
|
-
retry_date
|
|
152
|
-
- datetime.datetime.now(
|
|
153
|
-
datetime.timezone.utc
|
|
154
|
-
)
|
|
155
|
-
).total_seconds()
|
|
156
|
-
backoff_time = max(
|
|
157
|
-
1, backoff_time
|
|
158
|
-
) # Ensure at least 1 second
|
|
187
|
+
backoff_time = _retry_after_seconds(response)
|
|
159
188
|
|
|
160
189
|
# 2. If no Retry-After, use exponential backoff
|
|
161
190
|
if backoff_time is None:
|
|
@@ -166,19 +195,22 @@ def retry():
|
|
|
166
195
|
base_wait * (2**retries), max_wait
|
|
167
196
|
)
|
|
168
197
|
|
|
169
|
-
|
|
170
|
-
f"Rate limited (429), waiting {backoff_time:.2f} seconds before retrying..."
|
|
171
|
-
)
|
|
198
|
+
logger.info(f"Rate limited (429), waiting {backoff_time:.2f} seconds before retrying...")
|
|
172
199
|
time.sleep(backoff_time)
|
|
173
200
|
retries += 1
|
|
174
201
|
continue
|
|
175
202
|
else:
|
|
176
|
-
|
|
203
|
+
# Retries exhausted — raise the same ValueError format the
|
|
204
|
+
# SDK has always used for HTTP errors.
|
|
205
|
+
check_response(response)
|
|
177
206
|
|
|
207
|
+
# Statuses the retry logic does not handle (e.g. 404, 400) must still
|
|
208
|
+
# raise; success responses pass through unchanged.
|
|
209
|
+
check_response(response)
|
|
178
210
|
return response
|
|
179
211
|
|
|
180
212
|
except Exception as e:
|
|
181
|
-
|
|
213
|
+
logger.error(f"error: {e}")
|
|
182
214
|
raise
|
|
183
215
|
|
|
184
216
|
if last_exception:
|
|
@@ -268,6 +300,8 @@ class ApiClient:
|
|
|
268
300
|
timeout=self.configuration.timeout,
|
|
269
301
|
headers=headers,
|
|
270
302
|
)
|
|
271
|
-
check_response(
|
|
303
|
+
# Note: check_response() runs in the @retry wrapper after the retry
|
|
304
|
+
# decision, so 429/5xx responses reach the retry logic instead of
|
|
305
|
+
# raising immediately.
|
|
272
306
|
return response
|
|
273
307
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import time
|
|
2
2
|
import threading
|
|
3
|
+
import logging
|
|
4
|
+
logger = logging.getLogger(__name__)
|
|
3
5
|
|
|
4
6
|
|
|
5
7
|
class TokenBucket:
|
|
@@ -51,9 +53,7 @@ class TokenBucket:
|
|
|
51
53
|
# Calculate wait time inside the lock, then sleep outside it
|
|
52
54
|
tokens_needed = tokens - self.tokens
|
|
53
55
|
wait_time = tokens_needed / self.refill_rate
|
|
54
|
-
|
|
55
|
-
f"Rate limiting: waiting {wait_time:.2f} seconds for {tokens_needed} tokens..."
|
|
56
|
-
)
|
|
56
|
+
logger.info(f"Rate limiting: waiting {wait_time:.2f} seconds for {tokens_needed} tokens...")
|
|
57
57
|
|
|
58
58
|
# Sleep outside the lock so other threads are not blocked
|
|
59
59
|
time.sleep(wait_time)
|
|
@@ -140,7 +140,7 @@ def get_config_info_from_environment_variables(prefix, option_list):
|
|
|
140
140
|
value = os.getenv(env_var) or os.getenv(env_var.upper())
|
|
141
141
|
if value:
|
|
142
142
|
value = int(value)
|
|
143
|
-
|
|
143
|
+
elif option in ["verify"]:
|
|
144
144
|
value = os.getenv(env_var) or os.getenv(env_var.upper())
|
|
145
145
|
if value and value.lower() == "false":
|
|
146
146
|
value = False
|
|
@@ -171,7 +171,7 @@ def get_config_info_from_command_line_arguments(prefix, option_list):
|
|
|
171
171
|
value = options.__getattribute__(cli_var)
|
|
172
172
|
if value:
|
|
173
173
|
value = int(value)
|
|
174
|
-
|
|
174
|
+
elif option in ["verify"]:
|
|
175
175
|
value = options.__getattribute__(cli_var)
|
|
176
176
|
if value and value.lower() == "false":
|
|
177
177
|
value = False
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: checkmarxpythonsdk
|
|
3
|
-
Version: 1.9.
|
|
3
|
+
Version: 1.9.2
|
|
4
4
|
Summary: Checkmarx Python SDK
|
|
5
5
|
Home-page: https://github.com/checkmarx-ts/checkmarx-python-sdk
|
|
6
6
|
Author: Happy Yang
|
|
@@ -50,6 +50,21 @@ By using this SDK, Checkmarx users will be able to do automatic scanning with Cx
|
|
|
50
50
|
[](https://pypi.org/project/CheckmarxPythonSDK)
|
|
51
51
|
[](https://github.com/checkmarx-ts/checkmarx-python-sdk/graphs/contributors)
|
|
52
52
|
|
|
53
|
+
# When to use this SDK
|
|
54
|
+
|
|
55
|
+
This Python SDK is a complementary offering to our official command-line interface (CLI). It is not intended to replace the CLI.
|
|
56
|
+
|
|
57
|
+
Our official CLI is developed and maintained by the R&D team. It is the preferred tool for standard, predefined operational tasks. However, the business workflows within the CLI are statically implemented, which limits the ability for end users to introduce custom logic or adapt workflows to unique requirements.
|
|
58
|
+
|
|
59
|
+
This SDK is designed for scenarios requiring programmable integration and flexible orchestration. You may use it to assemble custom API sequences, embed workflows into your Python automation pipelines, and implement business logic that cannot be satisfied by the fixed workflows of the CLI.
|
|
60
|
+
|
|
61
|
+
> **Release notification**
|
|
62
|
+
> You may subscribe to the PyPI release RSS feed to receive notifications of new versions:
|
|
63
|
+
> `https://pypi.org/rss/project/CheckmarxPythonSDK/releases.xml`
|
|
64
|
+
|
|
65
|
+
> **Important note**
|
|
66
|
+
> Evaluate all version changes and complete validation in a non-production environment before deploying to production. Automated upgrades in production environments are not recommended.
|
|
67
|
+
|
|
53
68
|
# Checkmarx API Official Documents
|
|
54
69
|
|
|
55
70
|
For more information about Checkmarx API, please refer to Checkmarx knowledge Center:
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
CheckmarxPythonSDK/__init__.py,sha256=bCHtple85OPSpXIIzaKipxzWMNweCrbbJFUtdLl4O4c,197
|
|
2
|
-
CheckmarxPythonSDK/__version__.py,sha256=
|
|
3
|
-
CheckmarxPythonSDK/api_client.py,sha256=
|
|
2
|
+
CheckmarxPythonSDK/__version__.py,sha256=FTcek0yfdI0OEbhOiGIFqV7WG2mj3gjw9X-8TnopjBM,22
|
|
3
|
+
CheckmarxPythonSDK/api_client.py,sha256=cCk1mK8KR5hD_t_WXrx_NTOwmCg4maeX3zjyYGnXcAE,12148
|
|
4
4
|
CheckmarxPythonSDK/configuration.py,sha256=a8A2KMt_NjOXuP60iLE4D5rFUtoPc4M1v4yb4TwBknU,893
|
|
5
5
|
CheckmarxPythonSDK/logger_setup.py,sha256=IZN88lmUQZl92um_yqvLIgYC0cg2YsbFZR7t0fG7jq8,1830
|
|
6
|
-
CheckmarxPythonSDK/rate_limiter.py,sha256=
|
|
6
|
+
CheckmarxPythonSDK/rate_limiter.py,sha256=rBRdtu1VmL-0RiAtoBpeUHAwkIk5kUEqvr7eA_HEe3E,2688
|
|
7
7
|
CheckmarxPythonSDK/CxAccessControl/AccessControl.py,sha256=dboE_EpKJL04JrmFYMyuqBcnkW9ImMfwVmkOCFR_Kw8,50029
|
|
8
8
|
CheckmarxPythonSDK/CxAccessControl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
9
|
CheckmarxPythonSDK/CxAccessControl/accesscontrol/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -33,11 +33,11 @@ CheckmarxPythonSDK/CxAccessControl/accesscontrol/dto/requests.py,sha256=K5PQAU5O
|
|
|
33
33
|
CheckmarxPythonSDK/CxODataApiSDK/ProjectsODataAPI.py,sha256=NKw4RCaHc7YsW1DIwiOtt4WQl5qvOoedaTEBihJjOd0,29219
|
|
34
34
|
CheckmarxPythonSDK/CxODataApiSDK/ResultsODataAPI.py,sha256=20ZYBUZcqillMm4CTfAtPov-uh9VTZ0qV1NSmhQbIRU,13528
|
|
35
35
|
CheckmarxPythonSDK/CxODataApiSDK/ScansODataAPI.py,sha256=JhqD9xaCWrToUQHuhphkQspe4DBPhWtM7Pk3fEyUhtE,15037
|
|
36
|
-
CheckmarxPythonSDK/CxODataApiSDK/Utilities.py,sha256=
|
|
36
|
+
CheckmarxPythonSDK/CxODataApiSDK/Utilities.py,sha256=K3cmurj-QXN-Yj5wQ28g1hybmi11OdI_5Rwk4uKBTjQ,10293
|
|
37
37
|
CheckmarxPythonSDK/CxODataApiSDK/__init__.py,sha256=LiB03AgExfeTuUE_7YtALNlHibl4Uy6_6mUvE8cF7bs,2096
|
|
38
|
-
CheckmarxPythonSDK/CxODataApiSDK/config.py,sha256=
|
|
38
|
+
CheckmarxPythonSDK/CxODataApiSDK/config.py,sha256=p6kHoIHbxN1EYkNiH7_ixc1BveNRl2SqmZ_STEl_Zpw,1935
|
|
39
39
|
CheckmarxPythonSDK/CxOne/CodeRepositoryProjectImportAPI.py,sha256=EQjGwnQVeC1wVqjxwjEzaUrrvIKkbJFpXpOy4Se6tho,3082
|
|
40
|
-
CheckmarxPythonSDK/CxOne/__init__.py,sha256=
|
|
40
|
+
CheckmarxPythonSDK/CxOne/__init__.py,sha256=jyrNbnUMDOn76-2o_Nbka_A0lHEwSjtFgnzaXFX6eWU,18613
|
|
41
41
|
CheckmarxPythonSDK/CxOne/accessControlAPI.py,sha256=rt1Zcqoy6dwXgAkec8MkNEnACwFGzTjVNdnATe9QA_8,22101
|
|
42
42
|
CheckmarxPythonSDK/CxOne/accessManagementAPI.py,sha256=EoXbAztrzOkc6y0ZGNmDPFi1BeQs0ayVaEB2KsDKnZM,45473
|
|
43
43
|
CheckmarxPythonSDK/CxOne/aiAssetsAPI.py,sha256=MOu9JI2DHVUJAK6CRvkgXZTOV0aBXCYGeFlXYaOFLkc,20506
|
|
@@ -49,15 +49,15 @@ CheckmarxPythonSDK/CxOne/applicationsAPI.py,sha256=jpMT3JFBuIbr9sqvUvfPnDeg10jAc
|
|
|
49
49
|
CheckmarxPythonSDK/CxOne/applicationsOverviewAPI.py,sha256=clrf6XLGV0VtkES2Ex8IsxAQ8USME5fzth92lh2bPD4,3607
|
|
50
50
|
CheckmarxPythonSDK/CxOne/auditEventProcessorAPI.py,sha256=pOaqZuGhK3xKRcrmlhuJ4__k_9-7OPphqqe_cx8r92s,1723
|
|
51
51
|
CheckmarxPythonSDK/CxOne/auditTrailAPI.py,sha256=LpUKqIHbfkoVGpJE9DrDYzs-lb2OK-FYSckgtSZssWo,2095
|
|
52
|
-
CheckmarxPythonSDK/CxOne/byorResultsHandlerAPI.py,sha256=
|
|
52
|
+
CheckmarxPythonSDK/CxOne/byorResultsHandlerAPI.py,sha256=6yJjuFAXVJoUvLLyEnBTYOVHU4w_6672U26RIK_ge1A,2645
|
|
53
53
|
CheckmarxPythonSDK/CxOne/byorResultsHandlerV2API.py,sha256=Lev0jNMh6YH3tlD3k1eCBfefZDlNRR1VfTulE4c-56U,12188
|
|
54
54
|
CheckmarxPythonSDK/CxOne/cloudInsightsServiceAPI.py,sha256=1LM4RgTMdLAZrMckoVknJ8B1i_SPED0KiIQk340Y-U0,13144
|
|
55
55
|
CheckmarxPythonSDK/CxOne/config.py,sha256=BTPd-a-_hOU1gW_isjWdmds3qnYuICLAJ21-bS6n8-M,2251
|
|
56
56
|
CheckmarxPythonSDK/CxOne/contributorsAPI.py,sha256=K3RxbdDDPddWbcuGrDTKX6LJdSawEsX5vW_wzaRW4dU,3785
|
|
57
57
|
CheckmarxPythonSDK/CxOne/customStateAPI.py,sha256=2ZnCJfeZj7ZhiSANhUx_6TheycMNNo5XMBsDARJiPBs,2043
|
|
58
58
|
CheckmarxPythonSDK/CxOne/cxLinkAPI.py,sha256=yhYDs1m36eNSpegficehuxCwyj1ygOV-mHK6ZyHUx48,4555
|
|
59
|
-
CheckmarxPythonSDK/CxOne/dastResultsAPI.py,sha256=
|
|
60
|
-
CheckmarxPythonSDK/CxOne/dastScanAPI.py,sha256=
|
|
59
|
+
CheckmarxPythonSDK/CxOne/dastResultsAPI.py,sha256=RGU4V6ajUfy7XrvKMk_JH7EGdr7cNreEG5YodN9rTKk,7698
|
|
60
|
+
CheckmarxPythonSDK/CxOne/dastScanAPI.py,sha256=O8JqTpOQmo4ga0lubLYoqBt1uIpDDLzpFmXG9_AhG1k,24114
|
|
61
61
|
CheckmarxPythonSDK/CxOne/dataRetentionAPI.py,sha256=fLRhOCT-0mA0WLFn0U34Ejlm7qAEdwYOUvp5x9pZddk,6233
|
|
62
62
|
CheckmarxPythonSDK/CxOne/flagsAPI.py,sha256=r6yEzt7BSE9UQLU1ecWV6TTzdaF0gD44Lic-ZojF0g8,1505
|
|
63
63
|
CheckmarxPythonSDK/CxOne/fusionDispatcherAPI.py,sha256=2HpyEsmEBwwS1IG53rcyrgTlPCGG0PJW0MNeGFpFzgQ,1696
|
|
@@ -74,10 +74,10 @@ CheckmarxPythonSDK/CxOne/organizationalDomainsAPI.py,sha256=3-nmC515u5MeHjxF7qfA
|
|
|
74
74
|
CheckmarxPythonSDK/CxOne/presetManagerAPI.py,sha256=xtoPwYIuzk0WZ3gIDi9ZxYXjzUV5VMd5F9sQAQ9g9VY,8492
|
|
75
75
|
CheckmarxPythonSDK/CxOne/projectsAPI.py,sha256=7z3S4e8sIWWIUIeQyKmPOBaCWXq1P3E1K8Eez-Hm0CU,25981
|
|
76
76
|
CheckmarxPythonSDK/CxOne/projectsOverviewAPI.py,sha256=vV8X_vpSG0ZXrJRt3CmMFrl3fQ54PG6ABF7jbMwsoI8,7142
|
|
77
|
-
CheckmarxPythonSDK/CxOne/queryEditorAPI.py,sha256=
|
|
78
|
-
CheckmarxPythonSDK/CxOne/repoManagerAPI.py,sha256=
|
|
77
|
+
CheckmarxPythonSDK/CxOne/queryEditorAPI.py,sha256=JoVRZxTR1m20zklvELiwFH25_8tjw1Uw5KI63ZIH_e8,17977
|
|
78
|
+
CheckmarxPythonSDK/CxOne/repoManagerAPI.py,sha256=ezu6iF50plsB2A-UoQe4NaNEFu5rkSA6YZ9IwFuhTBo,39873
|
|
79
79
|
CheckmarxPythonSDK/CxOne/repoStoreServiceAPI.py,sha256=C9ofBOjERR3BGam_HSFclnvFTFjMk17MIJKJGuqS2Og,4724
|
|
80
|
-
CheckmarxPythonSDK/CxOne/reportAPI.py,sha256=
|
|
80
|
+
CheckmarxPythonSDK/CxOne/reportAPI.py,sha256=xA8zUOFEqsKdlxeDGOPADB53-QzDv111qoTkIf0Lfuc,8747
|
|
81
81
|
CheckmarxPythonSDK/CxOne/repositoryInsightsAPI.py,sha256=Q7OgNrVDnoy6W3x_S_o-a7RoZDxuH8UFqiKBb2lcIlc,2379
|
|
82
82
|
CheckmarxPythonSDK/CxOne/resultsOverviewAPI.py,sha256=xMql_aJfWYz1z2-xXnS27WBcLs61mYWVAagOLiYFl9U,2264
|
|
83
83
|
CheckmarxPythonSDK/CxOne/resultsSummaryAPI.py,sha256=GEmM9BmXZT2iJ92vD3nxzx5ZF8I0oUqrApV7Is1Marg,2830
|
|
@@ -99,9 +99,9 @@ CheckmarxPythonSDK/CxOne/scaManagementOfRiskAPI.py,sha256=CncnoIzRNoYVaZIQcEdYs6
|
|
|
99
99
|
CheckmarxPythonSDK/CxOne/scaPrivateRegistryConfigAPI.py,sha256=Ap2VU5nKb370ekVMaZq4qsnMrzbeoa4kECiCTFqtj3k,28708
|
|
100
100
|
CheckmarxPythonSDK/CxOne/scanConfigurationAPI.py,sha256=i_zqkwau4CJIcGOacvP68sj27p_FCxSq49gAGu5EggY,11695
|
|
101
101
|
CheckmarxPythonSDK/CxOne/scannersResultsAPI.py,sha256=PWzHk0UcA358UvIDEAa8LX_J2H3b-R8_uI2-rJOb7Zk,3065
|
|
102
|
-
CheckmarxPythonSDK/CxOne/scansAPI.py,sha256=
|
|
102
|
+
CheckmarxPythonSDK/CxOne/scansAPI.py,sha256=zWYphCD4jCR3vCiC2Y6kI77mB-14AVfvZ030P6yRTHI,25369
|
|
103
103
|
CheckmarxPythonSDK/CxOne/staticCorrelatorAPI.py,sha256=FLAdfYzwVL-UEJ8Amr-D5uEzQIu4eGiV8yceSJj1PNg,1946
|
|
104
|
-
CheckmarxPythonSDK/CxOne/uploadsAPI.py,sha256=
|
|
104
|
+
CheckmarxPythonSDK/CxOne/uploadsAPI.py,sha256=kc_6Kpm9PPSIegEPXW095lnWqHGLjtCNL_B3RIGa5oU,5659
|
|
105
105
|
CheckmarxPythonSDK/CxOne/versionsAPI.py,sha256=dq3VZ39bVT5LCiHqr8H2AMliwybEd7ka2j-B4mOntSI,969
|
|
106
106
|
CheckmarxPythonSDK/CxOne/webhookAPI.py,sha256=nVwtageV0kVDfhWDdAFOVjwkY1ItzM6fIs71Q81n1kI,5442
|
|
107
107
|
CheckmarxPythonSDK/CxOne/KeycloakAPI/AttackDetectionApi.py,sha256=jUJtmdKBcxkY2vizdLWpnrna3D1P7aQjP4-1lbVhJlQ,2231
|
|
@@ -112,7 +112,7 @@ CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientRegistrationPolicyApi.py,sha256=VhicA
|
|
|
112
112
|
CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientRoleMappingsApi.py,sha256=susomA7D6v7oBc8u7dYmuO0kaGz3hY2EdxSO4ozlF8U,9191
|
|
113
113
|
CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientRolesApi.py,sha256=u8vuSPaFzUIdJU2f0vgcbIhge1Ipkd20sOrPW0I9BLs,23468
|
|
114
114
|
CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientScopesApi.py,sha256=IFz49d_km9x2TZ9M7QtQo7P3qKCAPnsGJ-bE5M_TAns,6733
|
|
115
|
-
CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientsApi.py,sha256=
|
|
115
|
+
CheckmarxPythonSDK/CxOne/KeycloakAPI/ClientsApi.py,sha256=gG3OyCXdWgEYuYD1AmIueUQxAa7uNPXo_el-nDhAoVE,25375
|
|
116
116
|
CheckmarxPythonSDK/CxOne/KeycloakAPI/ComponentApi.py,sha256=OvAuGhVGzH5bVPT7p2I9ymp_f3sVHcPTaCdlTgeTe3M,4327
|
|
117
117
|
CheckmarxPythonSDK/CxOne/KeycloakAPI/GroupsApi.py,sha256=WTtMLexmcCMGryJIeQCyNP_V4-nwO4c8OvqaQeC3mAc,9455
|
|
118
118
|
CheckmarxPythonSDK/CxOne/KeycloakAPI/IdentityProvidersApi.py,sha256=JFKNIeMTvWr8uIR7RZkCEq7MDrxvRRB5QHP5SV7qxeE,12601
|
|
@@ -335,7 +335,7 @@ CheckmarxPythonSDK/CxOne/dto/DastResultsCollection.py,sha256=Mpm1mrSLq80830-BhfT
|
|
|
335
335
|
CheckmarxPythonSDK/CxOne/dto/DastResultsFilter.py,sha256=I6vdHgbdZ3jCxglOZu_nj39qaazzHFo0DF4-MBiFT6k,1483
|
|
336
336
|
CheckmarxPythonSDK/CxOne/dto/DastResultsGroupBy.py,sha256=Xec-ZAIbLOz4hJJVFnMyPUqTgP--V8Jc4JwyKmXdaNM,337
|
|
337
337
|
CheckmarxPythonSDK/CxOne/dto/DastResultsGroupCount.py,sha256=xKYlhU4_Xw2zLmtdmdSO-vqz8eIWKZYWLi6j_SUei90,603
|
|
338
|
-
CheckmarxPythonSDK/CxOne/dto/DastResultsSortBy.py,sha256
|
|
338
|
+
CheckmarxPythonSDK/CxOne/dto/DastResultsSortBy.py,sha256=-PLgIApPGVC2xHBLkS4c5AD6CR-tnj9g5ePvkUIp-X8,303
|
|
339
339
|
CheckmarxPythonSDK/CxOne/dto/DastRunScanInput.py,sha256=TitbzYZ3oI9iRmiRhU18cSV1qS2iiMDm2QSTu6vfLvA,885
|
|
340
340
|
CheckmarxPythonSDK/CxOne/dto/DastScan.py,sha256=SFk9elFKlE4d3bpzz4J30_SL3gZHU9-ebT8p8j88hKc,2858
|
|
341
341
|
CheckmarxPythonSDK/CxOne/dto/DastScanAuth.py,sha256=BV7JYCdDjKKwbnaWQXE_QqrocS9Le50kFV1FYErjod4,683
|
|
@@ -592,14 +592,14 @@ CheckmarxPythonSDK/CxOne/dto/WebHookInput.py,sha256=yVCdxTKouVaKJpeZKDmcwZheQ3Mb
|
|
|
592
592
|
CheckmarxPythonSDK/CxOne/dto/WebHooksCollection.py,sha256=SgdE4VC73yhl3_Z3vzGQnPzDVDvx8LVvMHFS0GDbhho,458
|
|
593
593
|
CheckmarxPythonSDK/CxOne/dto/WorkspaceQuery.py,sha256=RNT4ap929tLFkGcHo3R1t3Fn531b0ztCBuMbVyvHbZI,203
|
|
594
594
|
CheckmarxPythonSDK/CxOne/dto/__init__.py,sha256=Fg1QMEhMAJ7d9wuwFWysPCmWYzwBdNzGLKliBxqyWWM,14703
|
|
595
|
-
CheckmarxPythonSDK/CxPortalSoapApiSDK/CxAuditWebService.py,sha256=
|
|
596
|
-
CheckmarxPythonSDK/CxPortalSoapApiSDK/CxPortalWebService.py,sha256=
|
|
595
|
+
CheckmarxPythonSDK/CxPortalSoapApiSDK/CxAuditWebService.py,sha256=LwxpCfb-3pLFAFY0oWK-7u51Vzwaq2G-Ts5b4I1qTss,25836
|
|
596
|
+
CheckmarxPythonSDK/CxPortalSoapApiSDK/CxPortalWebService.py,sha256=frbvzhmbCMgktoR8bCI_mm8wR-Ps8PYFRHXHZHCQJ7M,91752
|
|
597
597
|
CheckmarxPythonSDK/CxPortalSoapApiSDK/__init__.py,sha256=6Ufc_XRJE0GtjTh1kvYnppT13Sr6j66ZxokFa5J4LCU,3299
|
|
598
|
-
CheckmarxPythonSDK/CxPortalSoapApiSDK/config.py,sha256=
|
|
598
|
+
CheckmarxPythonSDK/CxPortalSoapApiSDK/config.py,sha256=ueAxMcXPP7G0-xl9ZBCd_Y2NSFiK_uHQdAGKFcjaR6o,1708
|
|
599
599
|
CheckmarxPythonSDK/CxPortalSoapApiSDK/sudsClient.py,sha256=vkx5z2tiPMXDG92cJnQV-T9p7-f64pur3dFZXTBErjI,4275
|
|
600
600
|
CheckmarxPythonSDK/CxReporting/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
601
|
-
CheckmarxPythonSDK/CxReporting/api.py,sha256=
|
|
602
|
-
CheckmarxPythonSDK/CxReporting/config.py,sha256=
|
|
601
|
+
CheckmarxPythonSDK/CxReporting/api.py,sha256=pdIlQZQMRixnGE_6erBRMBoJR4TEiCFwKt9t_Ig_XOs,4084
|
|
602
|
+
CheckmarxPythonSDK/CxReporting/config.py,sha256=REsSI9x8AbUDOzssk4Bxz14yTQnQk_DFAK4o2tQB1Bg,1330
|
|
603
603
|
CheckmarxPythonSDK/CxReporting/dto/CreateReportDTO.py,sha256=HuBVsCKuFGfgxoWDQgYQnVrOYwE8m-tto1WxVQBE45g,4294
|
|
604
604
|
CheckmarxPythonSDK/CxReporting/dto/CreateReportResponseDTO.py,sha256=7YoFobm9DukAG3kLhcilInKgEn-9W4pnJpQHkTXdcBk,280
|
|
605
605
|
CheckmarxPythonSDK/CxReporting/dto/FilterDTO.py,sha256=w-H3KbF8zbsgdCBYYudXrFUBqVRkJxvJ-3wktNGWCYw,3558
|
|
@@ -615,10 +615,10 @@ CheckmarxPythonSDK/CxRestAPISDK/GeneralAPI.py,sha256=CTRLBEYTWWKKgwSaWPr_gNgJGud
|
|
|
615
615
|
CheckmarxPythonSDK/CxRestAPISDK/OsaAPI.py,sha256=sjF81AryQ09lugsvcdIZ1_GNdkI7hq2KcGRj5BlHyw8,13397
|
|
616
616
|
CheckmarxPythonSDK/CxRestAPISDK/ProjectsAPI.py,sha256=V0q6ok-bR5EwaqU_8PmLKNv_Lh-tu3t9K3kNw79unPc,51364
|
|
617
617
|
CheckmarxPythonSDK/CxRestAPISDK/QueriesAPI.py,sha256=RNG9Cy3gWLLQ8CRMR-DF5rHMt8UBkL-dBhxj0fh4qIE,4227
|
|
618
|
-
CheckmarxPythonSDK/CxRestAPISDK/ScansAPI.py,sha256=
|
|
618
|
+
CheckmarxPythonSDK/CxRestAPISDK/ScansAPI.py,sha256=h_0BX3GEVVtpoA-zsWWjtxmuX5qWLTZCEYB3AGvE7vk,53450
|
|
619
619
|
CheckmarxPythonSDK/CxRestAPISDK/TeamAPI.py,sha256=XxlvCHAx4wE-7kEBr_NyQgIbnLMvK957nc_RYguP58s,3517
|
|
620
620
|
CheckmarxPythonSDK/CxRestAPISDK/__init__.py,sha256=Vi5aG-dJ_v0mCLkU02DBmxuYLuwrP8EXf1EfHCLkl24,584
|
|
621
|
-
CheckmarxPythonSDK/CxRestAPISDK/config.py,sha256=
|
|
621
|
+
CheckmarxPythonSDK/CxRestAPISDK/config.py,sha256=q1lNpSFcbqdHrv3x7nwTosVfwJl45o_glCTEhUoIwgI,2296
|
|
622
622
|
CheckmarxPythonSDK/CxRestAPISDK/CxSastXML/__init__.py,sha256=sZU3V0lI-H768Gd6aDgyFdc4bP-m223pBcOUHRQ_2gM,66
|
|
623
623
|
CheckmarxPythonSDK/CxRestAPISDK/CxSastXML/xml_results.py,sha256=jfdr8pWYHQEu_5dc_sLqnvsGecbjaarXkcCJ9XB9WnA,3017
|
|
624
624
|
CheckmarxPythonSDK/CxRestAPISDK/CxSastXML/dto/CxXMLResults.py,sha256=Rd6HLzDztycdps3Op3jz4bKRWUS6WpWgcOxTkimnA_Q,2031
|
|
@@ -748,7 +748,7 @@ CheckmarxPythonSDK/CxRestAPISDK/team/dto/__init__.py,sha256=DOgE8TihmFIF1BCULwyX
|
|
|
748
748
|
CheckmarxPythonSDK/CxScaApiSDK/AccessControlAPI.py,sha256=6K-fHuvkvKqTwDv_74xPCO0IHxPhAVZeII6Y3cf4dUA,651
|
|
749
749
|
CheckmarxPythonSDK/CxScaApiSDK/__init__.py,sha256=0hl5S7TWPe6cH28mN4g7PAtW9XrLOXBW1CvHEaF1DGA,2871
|
|
750
750
|
CheckmarxPythonSDK/CxScaApiSDK/api.py,sha256=ngM5KfMtI5UU9XegkSqLxREY4niQOQTPbuqMePmFkds,122356
|
|
751
|
-
CheckmarxPythonSDK/CxScaApiSDK/config.py,sha256=
|
|
751
|
+
CheckmarxPythonSDK/CxScaApiSDK/config.py,sha256=avzm6QPiRRAAZUJH4xPS8ik6w5dWulG2-JrGvj12zm0,1146
|
|
752
752
|
CheckmarxPythonSDK/external/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
753
753
|
CheckmarxPythonSDK/external/sarif/__init__.py,sha256=oGTju486EQJurlIw2aCJlsIf_Vw_hF9AcD1CqZlnAoA,65
|
|
754
754
|
CheckmarxPythonSDK/external/sarif/sast_xml_to_sarif.py,sha256=R1w5mo9zusgZZEh42A59G6xOJcZ4q9AKFUu-ba5_xvY,11522
|
|
@@ -780,9 +780,9 @@ CheckmarxPythonSDK/external/sarif/dto/__init__.py,sha256=sjzXGm1rErZaqkRO5vDafMl
|
|
|
780
780
|
CheckmarxPythonSDK/utilities/CxError.py,sha256=aQ3bI5HJIJEqAnn5uMhkUyzKnFho0dHz53-I5F6HOEM,1874
|
|
781
781
|
CheckmarxPythonSDK/utilities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
782
782
|
CheckmarxPythonSDK/utilities/compat.py,sha256=EpERyzNXwzvzx0TxijqsqG-k3luvWMVQa9noo73g0k4,345
|
|
783
|
-
CheckmarxPythonSDK/utilities/configUtility.py,sha256=
|
|
784
|
-
checkmarxpythonsdk-1.9.
|
|
785
|
-
checkmarxpythonsdk-1.9.
|
|
786
|
-
checkmarxpythonsdk-1.9.
|
|
787
|
-
checkmarxpythonsdk-1.9.
|
|
788
|
-
checkmarxpythonsdk-1.9.
|
|
783
|
+
CheckmarxPythonSDK/utilities/configUtility.py,sha256=qg-3QFkjYfW1xZxm8ahm3E0SXuta9ezYBUnaXnt4tww,8658
|
|
784
|
+
checkmarxpythonsdk-1.9.2.dist-info/licenses/LICENSE,sha256=a6iVjKURyrvqI7y1fhc3arWI0QFifhj-gR0ryQERZWk,35150
|
|
785
|
+
checkmarxpythonsdk-1.9.2.dist-info/METADATA,sha256=8_wsq_eCRC2YKtKmO7Fw7gL0Lu0vf1oUuKV9wbirEU0,10851
|
|
786
|
+
checkmarxpythonsdk-1.9.2.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
787
|
+
checkmarxpythonsdk-1.9.2.dist-info/top_level.txt,sha256=ThQJAHiaA3AOzF7ApT7jOpn92ne-8MOkZf3iJMvGMG4,19
|
|
788
|
+
checkmarxpythonsdk-1.9.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|