From 72f5ed286ca688ee5f6616c77fa51266d09573ed Mon Sep 17 00:00:00 2001 From: Nir Amara Date: Tue, 17 Feb 2026 22:25:20 +0200 Subject: [PATCH] CM-59777: Add --maven-settings-file option to report sbom command Co-Authored-By: Claude Sonnet 4.6 --- cycode/cli/apps/report/sbom/sbom_command.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cycode/cli/apps/report/sbom/sbom_command.py b/cycode/cli/apps/report/sbom/sbom_command.py index 4454a966..d4c40ac9 100644 --- a/cycode/cli/apps/report/sbom/sbom_command.py +++ b/cycode/cli/apps/report/sbom/sbom_command.py @@ -47,6 +47,15 @@ def sbom_command( include_dev_dependencies: Annotated[ bool, typer.Option('--include-dev-dependencies', help='Include dev dependencies.', show_default=False) ] = False, + maven_settings_file: Annotated[ + Optional[Path], + typer.Option( + '--maven-settings-file', + show_default=False, + help='When specified, Cycode will use this settings.xml file when building the maven dependency tree.', + dir_okay=False, + ), + ] = None, ) -> int: """Generate SBOM report.""" sbom_format_parts = sbom_format.split('-') @@ -65,5 +74,6 @@ def sbom_command( ) ctx.obj['report_parameters'] = report_parameters ctx.obj['output_file'] = output_file + ctx.obj['maven_settings_file'] = maven_settings_file return 1