Skip to content

Commit 9bd2e1b

Browse files
committed
CM-58022-rename scan type for be
1 parent 87cd5b2 commit 9bd2e1b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cycode/cli/apps/ai_guardrails/scan/handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def _setup_scan_context(ctx: typer.Context) -> typer.Context:
250250
ctx.obj['severity_threshold'] = SeverityOption.INFO # Report all severities
251251

252252
# Set command name for scan logic
253-
ctx.info_name = 'ai-guardrails'
253+
ctx.info_name = 'ai_guardrails'
254254

255255
return ctx
256256

cycode/cli/apps/scan/code_scanner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def _should_use_sync_flow(command_scan_type: str, scan_type: str, sync_option: b
9191
if not sync_option and scan_type != consts.IAC_SCAN_TYPE:
9292
return False
9393

94-
if command_scan_type not in {'path', 'repository', 'ai-guardrails'}:
94+
if command_scan_type not in {'path', 'repository', 'ai_guardrails'}:
9595
return False
9696

9797
if scan_type == consts.IAC_SCAN_TYPE:

0 commit comments

Comments
 (0)