Skip to content

Commit

Permalink
CM-32048 - Fix secret scan via detector service (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshalX authored Feb 6, 2024
1 parent 292a719 commit 8e08dc7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cycode/cyclient/scan_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,14 @@ def __init__(

self._hide_response_log = hide_response_log

def get_scan_controller_path(self, scan_type: str) -> str:
def get_scan_controller_path(self, scan_type: str, should_use_scan_service: bool = False) -> str:
if scan_type == consts.INFRA_CONFIGURATION_SCAN_TYPE:
# we don't use async flow for IaC scan yet
return self._SCAN_SERVICE_CONTROLLER_PATH
if not should_use_scan_service and scan_type == consts.SECRET_SCAN_TYPE:
# if a secret scan goes to detector directly, we should not use CLI controller.
# CLI controller belongs to the scan service only
return self._SCAN_SERVICE_CONTROLLER_PATH

return self._SCAN_SERVICE_CLI_CONTROLLER_PATH

Expand Down

0 comments on commit 8e08dc7

Please sign in to comment.