File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,14 @@ def __init__(
30
30
31
31
self ._hide_response_log = hide_response_log
32
32
33
- def get_scan_controller_path (self , scan_type : str ) -> str :
33
+ def get_scan_controller_path (self , scan_type : str , should_use_scan_service : bool = False ) -> str :
34
34
if scan_type == consts .INFRA_CONFIGURATION_SCAN_TYPE :
35
35
# we don't use async flow for IaC scan yet
36
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
37
41
38
42
return self ._SCAN_SERVICE_CLI_CONTROLLER_PATH
39
43
You can’t perform that action at this time.
0 commit comments