Skip to content

Commit dbab52b

Browse files
authored
CM-30756 fixing route to scan-service and detectionsonline-service in order to skip check projects (#188)
1 parent d5014e3 commit dbab52b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cycode/cyclient/scan_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ def __init__(
2020
self.scan_cycode_client = scan_cycode_client
2121
self.scan_config = scan_config
2222

23-
self.SCAN_CONTROLLER_PATH = 'api/v1/scan'
24-
self.DETECTIONS_SERVICE_CONTROLLER_PATH = 'api/v1/detections'
23+
self.SCAN_CONTROLLER_PATH = 'api/v1/cli-scan'
24+
self.DETECTIONS_SERVICE_CONTROLLER_PATH = 'api/v1/detections/cli'
2525
self.POLICIES_SERVICE_CONTROLLER_PATH_V3 = 'api/v3/policies'
2626

2727
self._hide_response_log = hide_response_log
@@ -151,7 +151,7 @@ def get_detection_rules(
151151
return self._filter_detection_rules_by_ids(self.parse_detection_rules_response(response), detection_rules_ids)
152152

153153
def get_scan_detections_path(self) -> str:
154-
return f'{self.scan_config.get_detections_prefix()}/{self.DETECTIONS_SERVICE_CONTROLLER_PATH}'
154+
return f'{self.scan_config.get_detections_prefix()}/{self.DETECTIONS_SERVICE_CONTROLLER_PATH}/detections'
155155

156156
def get_scan_detections(self, scan_id: str) -> List[dict]:
157157
params = {'scan_id': scan_id}

0 commit comments

Comments
 (0)