fix: include branch information in scan parameters for repository sca… · WlaeedCycode/cycode-cli@7749b00 · GitHub
Skip to content

Commit 7749b00

Browse files
authored
fix: include branch information in scan parameters for repository scans (cycodehq#365)
1 parent 63d06ff commit 7749b00

3 files changed

Lines changed: 124 additions & 0 deletions

File tree

cycode/cli/apps/scan/repository/repository_command.py

Lines changed: 4 additions & 0 deletions

cycode/cli/apps/scan/scan_parameters.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,9 @@ def get_scan_parameters(ctx: typer.Context, paths: Optional[tuple[str, ...]] = N
3333
ctx.obj['remote_url'] = remote_url
3434
scan_parameters['remote_url'] = remote_url
3535

36+
# Include branch information if available (for repository scans)
37+
branch = ctx.obj.get('branch')
38+
if branch:
39+
scan_parameters['branch'] = branch
40+
3641
return scan_parameters
Lines changed: 115 additions & 0 deletions

0 commit comments

Comments
 (0)