Skip to content

Commit 53aa831

Browse files
CM-61376: Report activation on scans too
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 79de768 commit 53aa831

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cycode/cli/apps/scan/scan_command.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import click
66
import typer
77

8+
from cycode.cli.apps.activation_manager import report_cli_activation, should_report_cli_activation
89
from cycode.cli.apps.sca_options import (
910
GradleAllSubProjectsOption,
1011
MavenSettingsFileOption,
@@ -140,6 +141,11 @@ def scan_command(
140141
scan_client = get_scan_cycode_client(ctx)
141142
ctx.obj['client'] = scan_client
142143

144+
plugin_app_name = ctx.obj.get('plugin_app_name')
145+
plugin_app_version = ctx.obj.get('plugin_app_version')
146+
if should_report_cli_activation(plugin_app_name, plugin_app_version):
147+
report_cli_activation(scan_client.scan_cycode_client, plugin_app_name, plugin_app_version)
148+
143149
# Get remote URL from current working directory
144150
remote_url = _try_get_git_remote_url(os.getcwd())
145151

0 commit comments

Comments
 (0)