Skip to content

Commit 72f5ed2

Browse files
niramnaclaude
andcommitted
CM-59777: Add --maven-settings-file option to report sbom command
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent e4cc4b5 commit 72f5ed2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

cycode/cli/apps/report/sbom/sbom_command.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,15 @@ def sbom_command(
4747
include_dev_dependencies: Annotated[
4848
bool, typer.Option('--include-dev-dependencies', help='Include dev dependencies.', show_default=False)
4949
] = False,
50+
maven_settings_file: Annotated[
51+
Optional[Path],
52+
typer.Option(
53+
'--maven-settings-file',
54+
show_default=False,
55+
help='When specified, Cycode will use this settings.xml file when building the maven dependency tree.',
56+
dir_okay=False,
57+
),
58+
] = None,
5059
) -> int:
5160
"""Generate SBOM report."""
5261
sbom_format_parts = sbom_format.split('-')
@@ -65,5 +74,6 @@ def sbom_command(
6574
)
6675
ctx.obj['report_parameters'] = report_parameters
6776
ctx.obj['output_file'] = output_file
77+
ctx.obj['maven_settings_file'] = maven_settings_file
6878

6979
return 1

0 commit comments

Comments
 (0)