We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 292a719 commit 8e08dc7Copy full SHA for 8e08dc7
cycode/cyclient/scan_client.py
@@ -30,10 +30,14 @@ def __init__(
30
31
self._hide_response_log = hide_response_log
32
33
- 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:
34
if scan_type == consts.INFRA_CONFIGURATION_SCAN_TYPE:
35
# we don't use async flow for IaC scan yet
36
return self._SCAN_SERVICE_CONTROLLER_PATH
37
+ if not should_use_scan_service and scan_type == consts.SECRET_SCAN_TYPE:
38
+ # if a secret scan goes to detector directly, we should not use CLI controller.
39
+ # CLI controller belongs to the scan service only
40
+ return self._SCAN_SERVICE_CONTROLLER_PATH
41
42
return self._SCAN_SERVICE_CLI_CONTROLLER_PATH
43
0 commit comments