cycode 3.5.3.dev1__py3-none-any.whl → 3.5.3.dev2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
cycode/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = '3.5.3.dev1' # DON'T TOUCH. Placeholder. Will be filled automatically on poetry build from Git Tag
1
+ __version__ = '3.5.3.dev2' # DON'T TOUCH. Placeholder. Will be filled automatically on poetry build from Git Tag
@@ -26,8 +26,7 @@ from cycode.cli.files_collector.commit_range_documents import (
26
26
  get_diff_file_path,
27
27
  get_pre_commit_modified_documents,
28
28
  get_safe_head_reference_for_diff,
29
- parse_commit_range_sast,
30
- parse_commit_range_sca,
29
+ parse_commit_range,
31
30
  )
32
31
  from cycode.cli.files_collector.documents_walk_ignore import filter_documents_with_cycodeignore
33
32
  from cycode.cli.files_collector.file_excluder import excluder
@@ -187,7 +186,7 @@ def _scan_commit_range_documents(
187
186
  def _scan_sca_commit_range(ctx: typer.Context, repo_path: str, commit_range: str, **_) -> None:
188
187
  scan_parameters = get_scan_parameters(ctx, (repo_path,))
189
188
 
190
- from_commit_rev, to_commit_rev = parse_commit_range_sca(commit_range, repo_path)
189
+ from_commit_rev, to_commit_rev = parse_commit_range(commit_range, repo_path)
191
190
  from_commit_documents, to_commit_documents, _ = get_commit_range_modified_documents(
192
191
  ctx.obj['progress_bar'], ScanProgressBarSection.PREPARE_LOCAL_FILES, repo_path, from_commit_rev, to_commit_rev
193
192
  )
@@ -228,7 +227,7 @@ def _scan_secret_commit_range(
228
227
  def _scan_sast_commit_range(ctx: typer.Context, repo_path: str, commit_range: str, **_) -> None:
229
228
  scan_parameters = get_scan_parameters(ctx, (repo_path,))
230
229
 
231
- from_commit_rev, to_commit_rev = parse_commit_range_sast(commit_range, repo_path)
230
+ from_commit_rev, to_commit_rev = parse_commit_range(commit_range, repo_path)
232
231
  _, commit_documents, diff_documents = get_commit_range_modified_documents(
233
232
  ctx.obj['progress_bar'],
234
233
  ScanProgressBarSection.PREPARE_LOCAL_FILES,
@@ -408,22 +408,7 @@ def get_pre_commit_modified_documents(
408
408
  return git_head_documents, pre_committed_documents, diff_documents
409
409
 
410
410
 
411
- def parse_commit_range_sca(commit_range: str, path: str) -> tuple[Optional[str], Optional[str]]:
412
- # FIXME(MarshalX): i truly believe that this function does NOT work as expected
413
- # it does not handle cases like 'A..B' correctly
414
- # i leave it as it for SCA to not break anything
415
- # the more correct approach is implemented for SAST
416
- from_commit_rev = to_commit_rev = None
417
-
418
- for commit in git_proxy.get_repo(path).iter_commits(rev=commit_range):
419
- if not to_commit_rev:
420
- to_commit_rev = commit.hexsha
421
- from_commit_rev = commit.hexsha
422
-
423
- return from_commit_rev, to_commit_rev
424
-
425
-
426
- def parse_commit_range_sast(commit_range: str, path: str) -> tuple[Optional[str], Optional[str]]:
411
+ def parse_commit_range(commit_range: str, path: str) -> tuple[Optional[str], Optional[str]]:
427
412
  """Parses a git commit range string and returns the full SHAs for the 'from' and 'to' commits.
428
413
 
429
414
  Supports:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cycode
3
- Version: 3.5.3.dev1
3
+ Version: 3.5.3.dev2
4
4
  Summary: Boost security in your dev lifecycle via SAST, SCA, Secrets & IaC scanning.
5
5
  Home-page: https://github.com/cycodehq/cycode-cli
6
6
  License: MIT
@@ -1,4 +1,4 @@
1
- cycode/__init__.py,sha256=_DFJzVMnH4LiQS1aePTy8irVHcucZhbZ17ta6pgmvag,114
1
+ cycode/__init__.py,sha256=7O8a1xdzhAlYdii8_b8Tj43RmzmcyIst1_V5GpQ6PLY,114
2
2
  cycode/__main__.py,sha256=Z3bD5yrA7yPvAChcADQrqCaZd0ChGI1gdiwALwbWJ6U,104
3
3
  cycode/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  cycode/cli/app.py,sha256=UC5A5TKIvlxOYKERfJykN8apTT0VyMY5pUjRh_LM-dw,6098
@@ -36,7 +36,7 @@ cycode/cli/apps/scan/aggregation_report.py,sha256=8f9kPfO7biNf5OsDZG6UhMPqG6ymoF
36
36
  cycode/cli/apps/scan/code_scanner.py,sha256=lNVyIhvA1IwufPZA4vT_ZyCaVdgio1xEaKa7oH3apdU,11402
37
37
  cycode/cli/apps/scan/commit_history/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
38
  cycode/cli/apps/scan/commit_history/commit_history_command.py,sha256=Yp_17vfjDqytjCqjXQ73HaDGH5_ertoLhoV7Cvt1Hhw,1104
39
- cycode/cli/apps/scan/commit_range_scanner.py,sha256=YPpnHeuoglmhJVa3m5c1Jzt-AjGKb-NsMjpV3MXpETU,14776
39
+ cycode/cli/apps/scan/commit_range_scanner.py,sha256=q48EM7X7yq5YbBSAW4kXGBoOohIvqcz5x96Rc51H0Gg,14734
40
40
  cycode/cli/apps/scan/detection_excluder.py,sha256=0zaNa1PxVshATHv8axp4e-xWvmuNQdg_r5DYsdQ9EVo,6432
41
41
  cycode/cli/apps/scan/path/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
42
42
  cycode/cli/apps/scan/path/path_command.py,sha256=7M8nnohjB4SaNA7jv3mFODyX1wwwSmROe45e7E5GLbY,670
@@ -72,7 +72,7 @@ cycode/cli/exceptions/handle_errors.py,sha256=9ZiDbHswXLe0TscUqZL9Or5Jq2AlYtzGb6
72
72
  cycode/cli/exceptions/handle_report_sbom_errors.py,sha256=bi0EizHtQLL-ovhHRH98CZ7qXdDPLTYnI59Jn1Y5c0E,926
73
73
  cycode/cli/exceptions/handle_scan_errors.py,sha256=-QIYvbBXmZVOvAdNwGYwAdmBma6Z_pPpS0a77aDICp8,1916
74
74
  cycode/cli/files_collector/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
75
- cycode/cli/files_collector/commit_range_documents.py,sha256=OYzfT9sAa9Lwq5aQYCExI73yITc1pbOH_UKHwssMcUU,18153
75
+ cycode/cli/files_collector/commit_range_documents.py,sha256=uwf0mjY3avbVNMqmWh2WMRuhLNyu9vfkPoV0JuATY-I,17526
76
76
  cycode/cli/files_collector/documents_walk_ignore.py,sha256=G4e-3vfP4WZ7wa9-VbZ66xCKCioTXnPBfbrs4_hh8xY,4705
77
77
  cycode/cli/files_collector/file_excluder.py,sha256=5Y7MM6_4x4FRKCV47D_hOXIg9BzYLHqwoWkmtV7Lt4I,7562
78
78
  cycode/cli/files_collector/iac/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -160,8 +160,8 @@ cycode/cyclient/report_client.py,sha256=h12pz3vWCwDF73BhqFX7iDSxBgQDFwkiGh3hmul2
160
160
  cycode/cyclient/scan_client.py,sha256=uTBEjgfaCVuJREo73p_zkIVA23NQfdJ1d1-bzc7nSKk,12682
161
161
  cycode/cyclient/scan_config_base.py,sha256=mXsPZGYCtp85rv5GIige40yQZXuRcEKUW-VQJ0vgFzk,1201
162
162
  cycode/logger.py,sha256=xAzpkWLZhixO4egRcYn4HXM9lIfx5wHdpkHxNc5jrX8,2225
163
- cycode-3.5.3.dev1.dist-info/LICENCE,sha256=2Wx4N6mD_4xB7-E3hPkZ3MPhpJy__k_I8MaCSO-PDRo,1068
164
- cycode-3.5.3.dev1.dist-info/METADATA,sha256=1jWpP7DbOK0V4g21TYWNfb6w3NjJvIEAHZ1vKHCt36M,75852
165
- cycode-3.5.3.dev1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
166
- cycode-3.5.3.dev1.dist-info/entry_points.txt,sha256=iDcVJM8ByLElVgvBgtYxDjw1kT7O8Mo0LcWZIT5L3Ig,45
167
- cycode-3.5.3.dev1.dist-info/RECORD,,
163
+ cycode-3.5.3.dev2.dist-info/LICENCE,sha256=2Wx4N6mD_4xB7-E3hPkZ3MPhpJy__k_I8MaCSO-PDRo,1068
164
+ cycode-3.5.3.dev2.dist-info/METADATA,sha256=4OHgLBbLzgftv3wrxrhfOUZCfrQSC4Qr0fXWXa73x-I,75852
165
+ cycode-3.5.3.dev2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
166
+ cycode-3.5.3.dev2.dist-info/entry_points.txt,sha256=iDcVJM8ByLElVgvBgtYxDjw1kT7O8Mo0LcWZIT5L3Ig,45
167
+ cycode-3.5.3.dev2.dist-info/RECORD,,