cycode 3.5.3.dev1__tar.gz → 3.5.3.dev2__tar.gz
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-3.5.3.dev1 → cycode-3.5.3.dev2}/PKG-INFO +1 -1
- cycode-3.5.3.dev2/cycode/__init__.py +1 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/scan/commit_range_scanner.py +3 -4
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/files_collector/commit_range_documents.py +1 -16
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/pyproject.toml +1 -1
- cycode-3.5.3.dev1/cycode/__init__.py +0 -1
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/LICENCE +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/README.md +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/__main__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/app.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/ai_remediation/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/ai_remediation/ai_remediation_command.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/ai_remediation/apply_fix.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/ai_remediation/print_remediation.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/auth/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/auth/auth_command.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/auth/auth_common.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/auth/auth_manager.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/auth/models.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/configure/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/configure/configure_command.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/configure/consts.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/configure/messages.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/configure/prompts.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/ignore/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/ignore/ignore_command.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/mcp/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/mcp/mcp_command.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/report/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/report/report_command.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/report/sbom/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/report/sbom/common.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/report/sbom/path/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/report/sbom/path/path_command.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/report/sbom/repository_url/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/report/sbom/repository_url/repository_url_command.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/report/sbom/sbom_command.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/report/sbom/sbom_report_file.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/scan/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/scan/aggregation_report.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/scan/code_scanner.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/scan/commit_history/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/scan/commit_history/commit_history_command.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/scan/detection_excluder.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/scan/path/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/scan/path/path_command.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/scan/pre_commit/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/scan/pre_commit/pre_commit_command.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/scan/pre_push/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/scan/pre_push/pre_push_command.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/scan/pre_receive/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/scan/pre_receive/pre_receive_command.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/scan/remote_url_resolver.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/scan/repository/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/scan/repository/repository_command.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/scan/scan_ci/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/scan/scan_ci/ci_integrations.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/scan/scan_ci/scan_ci_command.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/scan/scan_command.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/scan/scan_parameters.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/scan/scan_result.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/status/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/status/get_cli_status.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/status/models.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/status/status_command.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/status/version_command.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/cli_types.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/config.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/console.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/consts.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/exceptions/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/exceptions/custom_exceptions.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/exceptions/handle_ai_remediation_errors.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/exceptions/handle_auth_errors.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/exceptions/handle_errors.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/exceptions/handle_report_sbom_errors.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/exceptions/handle_scan_errors.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/files_collector/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/files_collector/documents_walk_ignore.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/files_collector/file_excluder.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/files_collector/iac/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/files_collector/iac/tf_content_generator.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/files_collector/models/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/files_collector/models/in_memory_zip.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/files_collector/path_documents.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/files_collector/repository_documents.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/files_collector/sca/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/files_collector/sca/base_restore_dependencies.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/files_collector/sca/go/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/files_collector/sca/go/restore_go_dependencies.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/files_collector/sca/maven/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/files_collector/sca/maven/restore_gradle_dependencies.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/files_collector/sca/maven/restore_maven_dependencies.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/files_collector/sca/npm/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/files_collector/sca/npm/restore_npm_dependencies.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/files_collector/sca/nuget/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/files_collector/sca/nuget/restore_nuget_dependencies.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/files_collector/sca/ruby/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/files_collector/sca/ruby/restore_ruby_dependencies.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/files_collector/sca/sbt/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/files_collector/sca/sbt/restore_sbt_dependencies.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/files_collector/sca/sca_file_collector.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/files_collector/walk_ignore.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/files_collector/zip_documents.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/logger.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/main.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/models.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/printers/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/printers/console_printer.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/printers/json_printer.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/printers/printer_base.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/printers/rich_printer.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/printers/tables/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/printers/tables/sca_table_printer.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/printers/tables/table.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/printers/tables/table_models.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/printers/tables/table_printer.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/printers/tables/table_printer_base.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/printers/text_printer.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/printers/utils/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/printers/utils/code_snippet_syntax.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/printers/utils/detection_data.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/printers/utils/detection_ordering/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/printers/utils/detection_ordering/common_ordering.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/printers/utils/detection_ordering/sca_ordering.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/printers/utils/rich_helpers.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/user_settings/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/user_settings/base_file_manager.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/user_settings/config_file_manager.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/user_settings/configuration_manager.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/user_settings/credentials_manager.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/user_settings/jwt_creator.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/utils/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/utils/enum_utils.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/utils/get_api_client.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/utils/git_proxy.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/utils/ignore_utils.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/utils/jwt_utils.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/utils/path_utils.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/utils/progress_bar.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/utils/scan_batch.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/utils/scan_utils.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/utils/sentry.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/utils/shell_executor.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/utils/string_utils.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/utils/task_timer.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/utils/version_checker.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/utils/yaml_utils.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/config.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cyclient/__init__.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cyclient/auth_client.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cyclient/client_creator.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cyclient/config.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cyclient/config_dev.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cyclient/cycode_client.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cyclient/cycode_client_base.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cyclient/cycode_dev_based_client.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cyclient/cycode_token_based_client.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cyclient/headers.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cyclient/logger.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cyclient/models.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cyclient/report_client.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cyclient/scan_client.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cyclient/scan_config_base.py +0 -0
- {cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/logger.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
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
|
-
|
|
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 =
|
|
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 =
|
|
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,
|
{cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/files_collector/commit_range_documents.py
RENAMED
|
@@ -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
|
|
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
|
[tool.poetry]
|
|
2
2
|
name = "cycode"
|
|
3
|
-
version = "3.5.3.
|
|
3
|
+
version = "3.5.3.dev2" # DON'T TOUCH. Placeholder. Will be filled automatically on poetry build from Git Tag
|
|
4
4
|
description = "Boost security in your dev lifecycle via SAST, SCA, Secrets & IaC scanning."
|
|
5
5
|
keywords=["secret-scan", "cycode", "devops", "token", "secret", "security", "cycode", "code"]
|
|
6
6
|
authors = ["Cycode <support@cycode.com>"]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '3.5.3.dev1' # DON'T TOUCH. Placeholder. Will be filled automatically on poetry build from Git Tag
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/ai_remediation/ai_remediation_command.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/report/sbom/repository_url/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/scan/pre_commit/pre_commit_command.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/scan/pre_receive/pre_receive_command.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/apps/scan/repository/repository_command.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/exceptions/handle_ai_remediation_errors.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/files_collector/iac/tf_content_generator.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/files_collector/sca/base_restore_dependencies.py
RENAMED
|
File without changes
|
|
File without changes
|
{cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/files_collector/sca/go/restore_go_dependencies.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/files_collector/sca/sca_file_collector.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/printers/utils/detection_ordering/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{cycode-3.5.3.dev1 → cycode-3.5.3.dev2}/cycode/cli/printers/utils/detection_ordering/sca_ordering.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|