CheckmarxPythonSDK 1.9.0__py3-none-any.whl → 1.9.1__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/CxOne/aiTriageAPI.py +16 -9
- CheckmarxPythonSDK/CxOne/dto/ScanParameter.py +4 -0
- CheckmarxPythonSDK/CxOne/projectsAPI.py +1 -1
- CheckmarxPythonSDK/__version__.py +1 -1
- {checkmarxpythonsdk-1.9.0.dist-info → checkmarxpythonsdk-1.9.1.dist-info}/METADATA +1 -1
- {checkmarxpythonsdk-1.9.0.dist-info → checkmarxpythonsdk-1.9.1.dist-info}/RECORD +9 -9
- {checkmarxpythonsdk-1.9.0.dist-info → checkmarxpythonsdk-1.9.1.dist-info}/WHEEL +0 -0
- {checkmarxpythonsdk-1.9.0.dist-info → checkmarxpythonsdk-1.9.1.dist-info}/licenses/LICENSE +0 -0
- {checkmarxpythonsdk-1.9.0.dist-info → checkmarxpythonsdk-1.9.1.dist-info}/top_level.txt +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import json
|
|
2
|
+
from urllib.parse import quote
|
|
2
3
|
|
|
3
4
|
from CheckmarxPythonSDK.api_client import ApiClient
|
|
4
5
|
from CheckmarxPythonSDK.CxOne.config import construct_configuration
|
|
@@ -109,19 +110,22 @@ class AiTriageAPI(object):
|
|
|
109
110
|
|
|
110
111
|
The recommended way to obtain group_id is to call GET /api/risks for
|
|
111
112
|
the specified project and use the groupId field of the corresponding
|
|
112
|
-
risk object.
|
|
113
|
-
|
|
113
|
+
risk object. group_id may contain reserved URL characters (e.g. #,
|
|
114
|
+
as in an SCA group id like "CVE-2015-4852#-#Maven-commons-collections:
|
|
115
|
+
commons-collections-3.2.1#-#2db0b158-3068-4d7e-86e6-0d922f22a69c");
|
|
116
|
+
this method URL-encodes it before using it as a path parameter, so
|
|
117
|
+
callers should pass the raw value.
|
|
114
118
|
|
|
115
119
|
Args:
|
|
116
120
|
project_id (str): Unique identifier of the project.
|
|
117
|
-
group_id (str): Identifier of the vulnerability group
|
|
118
|
-
|
|
121
|
+
group_id (str): Identifier of the vulnerability group, as
|
|
122
|
+
returned by the API (no need to pre-encode it).
|
|
119
123
|
|
|
120
124
|
Returns:
|
|
121
125
|
AiTriageResult: Triage verdict, summary, confidence score,
|
|
122
126
|
reachability, exploitability, and supporting analysis details.
|
|
123
127
|
"""
|
|
124
|
-
url = f"{self.base_url}/triage/{project_id}/{group_id}"
|
|
128
|
+
url = f"{self.base_url}/triage/{project_id}/{quote(str(group_id), safe='')}"
|
|
125
129
|
response = self.api_client.call_api(
|
|
126
130
|
method="GET",
|
|
127
131
|
url=url,
|
|
@@ -180,13 +184,16 @@ def retrieve_ai_triage_results(project_id: str, group_id: str) -> AiTriageResult
|
|
|
180
184
|
|
|
181
185
|
The recommended way to obtain group_id is to call GET /api/risks for the
|
|
182
186
|
specified project and use the groupId field of the corresponding risk
|
|
183
|
-
object.
|
|
184
|
-
|
|
187
|
+
object. group_id may contain reserved URL characters (e.g. #, as in an
|
|
188
|
+
SCA group id like "CVE-2015-4852#-#Maven-commons-collections:commons-
|
|
189
|
+
collections-3.2.1#-#2db0b158-3068-4d7e-86e6-0d922f22a69c"); this function
|
|
190
|
+
URL-encodes it before using it as a path parameter, so callers should
|
|
191
|
+
pass the raw value.
|
|
185
192
|
|
|
186
193
|
Args:
|
|
187
194
|
project_id (str): Unique identifier of the project.
|
|
188
|
-
group_id (str): Identifier of the vulnerability group
|
|
189
|
-
the
|
|
195
|
+
group_id (str): Identifier of the vulnerability group, as returned
|
|
196
|
+
by the API (no need to pre-encode it).
|
|
190
197
|
|
|
191
198
|
Returns:
|
|
192
199
|
AiTriageResult: Triage verdict, summary, confidence score,
|
|
@@ -11,6 +11,8 @@ class ScanParameter:
|
|
|
11
11
|
valueType: str = None
|
|
12
12
|
valueTypeParams: str = None
|
|
13
13
|
allowOverride: bool = None
|
|
14
|
+
alwaysOverride: bool = None
|
|
15
|
+
group: str = None
|
|
14
16
|
|
|
15
17
|
@classmethod
|
|
16
18
|
def from_dict(cls, item: dict) -> "ScanParameter":
|
|
@@ -23,4 +25,6 @@ class ScanParameter:
|
|
|
23
25
|
valueType=item.get("valuetype"),
|
|
24
26
|
valueTypeParams=item.get("valuetypeparams"),
|
|
25
27
|
allowOverride=item.get("allowOverride"),
|
|
28
|
+
alwaysOverride=item.get("alwaysOverride"),
|
|
29
|
+
group=item.get("group"),
|
|
26
30
|
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.9.
|
|
1
|
+
__version__ = "1.9.1"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
CheckmarxPythonSDK/__init__.py,sha256=bCHtple85OPSpXIIzaKipxzWMNweCrbbJFUtdLl4O4c,197
|
|
2
|
-
CheckmarxPythonSDK/__version__.py,sha256=
|
|
2
|
+
CheckmarxPythonSDK/__version__.py,sha256=zLfYDL3qj0evR4WN5tYKfgr6-_YC5xhqrm09sbhWoQQ,22
|
|
3
3
|
CheckmarxPythonSDK/api_client.py,sha256=7VqPb_PlhcJ0kt4BhINp-e-8cLUdSpouJ0LwjwlkYbM,10559
|
|
4
4
|
CheckmarxPythonSDK/configuration.py,sha256=a8A2KMt_NjOXuP60iLE4D5rFUtoPc4M1v4yb4TwBknU,893
|
|
5
5
|
CheckmarxPythonSDK/logger_setup.py,sha256=IZN88lmUQZl92um_yqvLIgYC0cg2YsbFZR7t0fG7jq8,1830
|
|
@@ -42,7 +42,7 @@ CheckmarxPythonSDK/CxOne/accessControlAPI.py,sha256=rt1Zcqoy6dwXgAkec8MkNEnACwFG
|
|
|
42
42
|
CheckmarxPythonSDK/CxOne/accessManagementAPI.py,sha256=EoXbAztrzOkc6y0ZGNmDPFi1BeQs0ayVaEB2KsDKnZM,45473
|
|
43
43
|
CheckmarxPythonSDK/CxOne/aiAssetsAPI.py,sha256=MOu9JI2DHVUJAK6CRvkgXZTOV0aBXCYGeFlXYaOFLkc,20506
|
|
44
44
|
CheckmarxPythonSDK/CxOne/aiRemediationAPI.py,sha256=8tEPRhp1Y00DXJhM4rct_MBoclpCW3Vqe41e5U8YZW0,5185
|
|
45
|
-
CheckmarxPythonSDK/CxOne/aiTriageAPI.py,sha256=
|
|
45
|
+
CheckmarxPythonSDK/CxOne/aiTriageAPI.py,sha256=xxzoVLT7d2AEePPxhjCMWMvaIYzexdo9noGGjygmdXc,8175
|
|
46
46
|
CheckmarxPythonSDK/CxOne/analyticsAPI.py,sha256=hhUN78y9J9YrB1MW-zZf569uPcKYD8rJSIfWrpda3R8,1319
|
|
47
47
|
CheckmarxPythonSDK/CxOne/apisecAPI.py,sha256=nP53B2zWqrFFEbweLJFB13vC6LxmRJwDqJwwOEVz_o0,18777
|
|
48
48
|
CheckmarxPythonSDK/CxOne/applicationsAPI.py,sha256=jpMT3JFBuIbr9sqvUvfPnDeg10jAcCYT8YNy7avAZLQ,9746
|
|
@@ -72,7 +72,7 @@ CheckmarxPythonSDK/CxOne/logsAPI.py,sha256=EEJoWsMK1X6v6_x0SYP_qC13WkSkG5KZtX4LT
|
|
|
72
72
|
CheckmarxPythonSDK/CxOne/microEnginesAPI.py,sha256=ovEEDw1DZ4UG0NTe8J0P6mm3yHQuUlnSTidWyTDwsog,13664
|
|
73
73
|
CheckmarxPythonSDK/CxOne/organizationalDomainsAPI.py,sha256=3-nmC515u5MeHjxF7qfA4h_6DIRK5c6LSJ_eKf7p7JA,2765
|
|
74
74
|
CheckmarxPythonSDK/CxOne/presetManagerAPI.py,sha256=xtoPwYIuzk0WZ3gIDi9ZxYXjzUV5VMd5F9sQAQ9g9VY,8492
|
|
75
|
-
CheckmarxPythonSDK/CxOne/projectsAPI.py,sha256=
|
|
75
|
+
CheckmarxPythonSDK/CxOne/projectsAPI.py,sha256=7z3S4e8sIWWIUIeQyKmPOBaCWXq1P3E1K8Eez-Hm0CU,25981
|
|
76
76
|
CheckmarxPythonSDK/CxOne/projectsOverviewAPI.py,sha256=vV8X_vpSG0ZXrJRt3CmMFrl3fQ54PG6ABF7jbMwsoI8,7142
|
|
77
77
|
CheckmarxPythonSDK/CxOne/queryEditorAPI.py,sha256=rSwa9HdLLvdMVGcJBBaLjGh4Sk8cMokhabEiDoOpcEA,17995
|
|
78
78
|
CheckmarxPythonSDK/CxOne/repoManagerAPI.py,sha256=L1ccmTiAsXqmKUeohL81NbpNDfJMysHgpBBYHYjEVTg,39867
|
|
@@ -519,7 +519,7 @@ CheckmarxPythonSDK/CxOne/dto/ScanEngineVersion.py,sha256=bv4dqxnfirCvIaYCMWt0Hbz
|
|
|
519
519
|
CheckmarxPythonSDK/CxOne/dto/ScanInfo.py,sha256=wfLltHW-WguMmQBRCqv1FtFFV8YrdRqz7srMZKLBpns,1268
|
|
520
520
|
CheckmarxPythonSDK/CxOne/dto/ScanInfoCollection.py,sha256=GjItsTiz3sp6J9UQ-iXXmDHRNpw2245etbWUib7K-TI,553
|
|
521
521
|
CheckmarxPythonSDK/CxOne/dto/ScanInput.py,sha256=whtaNBjCH7vEMty-9dzh3spqcEkKhKzu4aIybjHyZWY,759
|
|
522
|
-
CheckmarxPythonSDK/CxOne/dto/ScanParameter.py,sha256=
|
|
522
|
+
CheckmarxPythonSDK/CxOne/dto/ScanParameter.py,sha256=fZhtqrv9SqJnuE4GWPV3faDciTjr8nrUcEWgRrmvPho,874
|
|
523
523
|
CheckmarxPythonSDK/CxOne/dto/Scanner.py,sha256=l6nKbDUXbW4v7Cg30iIDGJq74WnU0UHTak2KbP6EEw8,656
|
|
524
524
|
CheckmarxPythonSDK/CxOne/dto/ScansCollection.py,sha256=6FAjUWc_76Lo3-kalM12bSjIyh4ClAvUqP4Eee9dgGM,533
|
|
525
525
|
CheckmarxPythonSDK/CxOne/dto/ScheduleInput.py,sha256=WarGxQKgqLKdXorM6GJc24N40oD3sabqqnE5uHx4iNk,323
|
|
@@ -781,8 +781,8 @@ CheckmarxPythonSDK/utilities/CxError.py,sha256=aQ3bI5HJIJEqAnn5uMhkUyzKnFho0dHz5
|
|
|
781
781
|
CheckmarxPythonSDK/utilities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
782
782
|
CheckmarxPythonSDK/utilities/compat.py,sha256=EpERyzNXwzvzx0TxijqsqG-k3luvWMVQa9noo73g0k4,345
|
|
783
783
|
CheckmarxPythonSDK/utilities/configUtility.py,sha256=WFM3x_W6HTaqsIG0kkPSnmafRfPcFHu-1eFVzsCpacQ,8654
|
|
784
|
-
checkmarxpythonsdk-1.9.
|
|
785
|
-
checkmarxpythonsdk-1.9.
|
|
786
|
-
checkmarxpythonsdk-1.9.
|
|
787
|
-
checkmarxpythonsdk-1.9.
|
|
788
|
-
checkmarxpythonsdk-1.9.
|
|
784
|
+
checkmarxpythonsdk-1.9.1.dist-info/licenses/LICENSE,sha256=a6iVjKURyrvqI7y1fhc3arWI0QFifhj-gR0ryQERZWk,35150
|
|
785
|
+
checkmarxpythonsdk-1.9.1.dist-info/METADATA,sha256=ZBNxtXnYPhd3tA2a41q0js_dt1r2XKD_Qx1O57BsddA,9698
|
|
786
|
+
checkmarxpythonsdk-1.9.1.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
787
|
+
checkmarxpythonsdk-1.9.1.dist-info/top_level.txt,sha256=ThQJAHiaA3AOzF7ApT7jOpn92ne-8MOkZf3iJMvGMG4,19
|
|
788
|
+
checkmarxpythonsdk-1.9.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|