From 207a96bfcd5fa414c9bddcdb7ad0155300bb7592 Mon Sep 17 00:00:00 2001 From: Ilya Siamionau Date: Mon, 12 Feb 2024 10:57:34 +0100 Subject: [PATCH] CM-29961 - Disable dependencies restore of SCA for sync scans --- cycode/cli/commands/scan/scan_command.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cycode/cli/commands/scan/scan_command.py b/cycode/cli/commands/scan/scan_command.py index cc97b577..a3a89845 100644 --- a/cycode/cli/commands/scan/scan_command.py +++ b/cycode/cli/commands/scan/scan_command.py @@ -136,11 +136,15 @@ def scan_command( context.obj['client'] = get_scan_cycode_client(client_id, secret, not context.obj['show_secret']) context.obj['scan_type'] = scan_type - context.obj['sync'] = sync context.obj['severity_threshold'] = severity_threshold context.obj['monitor'] = monitor context.obj['report'] = report + + context.obj['sync'] = sync context.obj[SCA_SKIP_RESTORE_DEPENDENCIES_FLAG] = no_restore + if sync: + # sync flow exists for fast SCA scans, so we don't want to lose time on restore + context.obj[SCA_SKIP_RESTORE_DEPENDENCIES_FLAG] = True _sca_scan_to_context(context, sca_scan)