cycode 1.4.1.dev11__tar.gz → 1.4.1.dev12__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-1.4.1.dev11 → cycode-1.4.1.dev12}/PKG-INFO +1 -1
- cycode-1.4.1.dev12/cycode/__init__.py +1 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/code_scanner.py +4 -8
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cyclient/scan_config_base.py +2 -4
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/pyproject.toml +1 -1
- cycode-1.4.1.dev11/cycode/__init__.py +0 -1
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/README.md +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/__init__.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/auth/__init__.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/auth/auth_command.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/auth/auth_manager.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/ci_integrations.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/commands/configure/__init__.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/commands/configure/configure_command.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/commands/ignore/__init__.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/commands/ignore/ignore_command.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/commands/report/__init__.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/commands/report/report_command.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/commands/report/sbom/__init__.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/commands/report/sbom/common.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/commands/report/sbom/handle_errors.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/commands/report/sbom/sbom_command.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/commands/report/sbom/sbom_path_command.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/commands/report/sbom/sbom_report_file.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/commands/report/sbom/sbom_repository_url_command.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/config.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/config.yaml +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/consts.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/exceptions/__init__.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/exceptions/custom_exceptions.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/files_collector/__init__.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/files_collector/excluder.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/files_collector/iac/__init__.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/files_collector/iac/tf_content_generator.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/files_collector/models/__init__.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/files_collector/models/in_memory_zip.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/files_collector/path_documents.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/files_collector/repository_documents.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/files_collector/sca/__init__.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/files_collector/sca/maven/__init__.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/files_collector/sca/maven/base_restore_maven_dependencies.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/files_collector/sca/maven/restore_gradle_dependencies.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/files_collector/sca/maven/restore_maven_dependencies.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/files_collector/sca/sca_code_scanner.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/files_collector/zip_documents.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/main.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/models.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/printers/__init__.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/printers/console_printer.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/printers/json_printer.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/printers/printer_base.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/printers/tables/__init__.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/printers/tables/sca_table_printer.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/printers/tables/table.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/printers/tables/table_models.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/printers/tables/table_printer.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/printers/tables/table_printer_base.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/printers/text_printer.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/user_settings/__init__.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/user_settings/base_file_manager.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/user_settings/config_file_manager.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/user_settings/configuration_manager.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/user_settings/credentials_manager.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/utils/__init__.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/utils/enum_utils.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/utils/get_api_client.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/utils/path_utils.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/utils/progress_bar.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/utils/scan_batch.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/utils/scan_utils.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/utils/shell_executor.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/utils/string_utils.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/utils/task_timer.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/utils/yaml_utils.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cyclient/__init__.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cyclient/auth_client.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cyclient/client_creator.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cyclient/config.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cyclient/config.yaml +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cyclient/config_dev.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cyclient/cycode_client.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cyclient/cycode_client_base.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cyclient/cycode_dev_based_client.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cyclient/cycode_token_based_client.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cyclient/models.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cyclient/report_client.py +0 -0
- {cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cyclient/scan_client.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.4.1.dev12' # DON'T TOUCH. Placeholder. Will be filled automatically on poetry build from Git Tag
|
|
@@ -546,13 +546,13 @@ def perform_scan(
|
|
|
546
546
|
is_commit_range: bool,
|
|
547
547
|
scan_parameters: dict,
|
|
548
548
|
) -> ZippedFileScanResult:
|
|
549
|
+
if scan_type in (consts.SCA_SCAN_TYPE, consts.SAST_SCAN_TYPE):
|
|
550
|
+
return perform_scan_async(cycode_client, zipped_documents, scan_type, scan_parameters)
|
|
551
|
+
|
|
549
552
|
if is_commit_range:
|
|
550
553
|
return cycode_client.commit_range_zipped_file_scan(scan_type, zipped_documents, scan_id)
|
|
551
554
|
|
|
552
|
-
|
|
553
|
-
return cycode_client.zipped_file_scan(scan_type, zipped_documents, scan_id, scan_parameters, is_git_diff)
|
|
554
|
-
|
|
555
|
-
return perform_scan_async(cycode_client, zipped_documents, scan_type, scan_parameters)
|
|
555
|
+
return cycode_client.zipped_file_scan(scan_type, zipped_documents, scan_id, scan_parameters, is_git_diff)
|
|
556
556
|
|
|
557
557
|
|
|
558
558
|
def perform_scan_async(
|
|
@@ -1025,10 +1025,6 @@ def _map_detections_per_file(detections: List[dict]) -> List[DetectionsPerFile]:
|
|
|
1025
1025
|
def _get_file_name_from_detection(detection: dict) -> str:
|
|
1026
1026
|
if detection['category'] == 'SAST':
|
|
1027
1027
|
return detection['detection_details']['file_path']
|
|
1028
|
-
if detection['category'] == 'SecretDetection':
|
|
1029
|
-
file_path = detection['detection_details']['file_path']
|
|
1030
|
-
file_name = detection['detection_details']['file_name']
|
|
1031
|
-
return os.path.join(file_path, file_name)
|
|
1032
1028
|
|
|
1033
1029
|
return detection['detection_details']['file_name']
|
|
1034
1030
|
|
|
@@ -16,10 +16,8 @@ class ScanConfigBase(ABC):
|
|
|
16
16
|
return scan_type.upper()
|
|
17
17
|
|
|
18
18
|
@staticmethod
|
|
19
|
-
def get_async_entity_type(
|
|
20
|
-
|
|
21
|
-
return 'zippedfile'
|
|
22
|
-
|
|
19
|
+
def get_async_entity_type(_: str) -> str:
|
|
20
|
+
# we are migrating to "zippedfile" entity type. will be used later
|
|
23
21
|
return 'repository'
|
|
24
22
|
|
|
25
23
|
@abstractmethod
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "cycode"
|
|
3
|
-
version = "1.4.1.
|
|
3
|
+
version = "1.4.1.dev12" # 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__ = '1.4.1.dev11' # 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-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/commands/configure/configure_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
|
{cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/commands/report/sbom/sbom_path_command.py
RENAMED
|
File without changes
|
{cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/commands/report/sbom/sbom_report_file.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
|
{cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/files_collector/iac/tf_content_generator.py
RENAMED
|
File without changes
|
|
File without changes
|
{cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/files_collector/models/in_memory_zip.py
RENAMED
|
File without changes
|
|
File without changes
|
{cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/files_collector/repository_documents.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cycode-1.4.1.dev11 → cycode-1.4.1.dev12}/cycode/cli/files_collector/sca/sca_code_scanner.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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|