Commit e446850
committed
fix: include branch information in scan parameters for repository scans
- Store branch name in context when provided via --branch flag
- Include branch in scan_parameters dict sent to backend API
- Fixes issue where branch_name and branch_id were null in JSON export
This ensures that when scanning a specific branch with 'cycode scan repository --branch <branch>',
the branch information is properly sent to the backend API so it can populate branch_name and
branch_id fields in the detection details.1 parent 63d06ff commit e446850
File tree
2 files changed
+9
-0
lines changed- cycode/cli/apps/scan
- repository
2 files changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
70 | 74 | | |
71 | 75 | | |
72 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
36 | 41 | | |
0 commit comments