1313from cycode .cli .utils .get_api_client import get_scan_cycode_client
1414from cycode .cli .utils .sentry import add_breadcrumb
1515
16- _AUTH_RICH_HELP_PANEL = 'Authentication options'
1716_EXPORT_RICH_HELP_PANEL = 'Export options'
1817_SCA_RICH_HELP_PANEL = 'SCA options'
1918_SECRET_RICH_HELP_PANEL = 'Secret options'
@@ -30,20 +29,6 @@ def scan_command(
3029 case_sensitive = False ,
3130 ),
3231 ] = ScanTypeOption .SECRET ,
33- client_secret : Annotated [
34- Optional [str ],
35- typer .Option (
36- help = 'Specify a Cycode client secret for this specific scan execution.' ,
37- rich_help_panel = _AUTH_RICH_HELP_PANEL ,
38- ),
39- ] = None ,
40- client_id : Annotated [
41- Optional [str ],
42- typer .Option (
43- help = 'Specify a Cycode client ID for this specific scan execution.' ,
44- rich_help_panel = _AUTH_RICH_HELP_PANEL ,
45- ),
46- ] = None ,
4732 show_secret : Annotated [
4833 bool , typer .Option ('--show-secret' , help = 'Show Secrets in plain text.' , rich_help_panel = _SECRET_RICH_HELP_PANEL )
4934 ] = False ,
@@ -143,7 +128,7 @@ def scan_command(
143128
144129 ctx .obj ['show_secret' ] = show_secret
145130 ctx .obj ['soft_fail' ] = soft_fail
146- ctx .obj ['client' ] = get_scan_cycode_client (client_id , client_secret , not ctx . obj [ 'show_secret' ] )
131+ ctx .obj ['client' ] = get_scan_cycode_client (ctx )
147132 ctx .obj ['scan_type' ] = scan_type
148133 ctx .obj ['sync' ] = sync
149134 ctx .obj ['severity_threshold' ] = severity_threshold
0 commit comments