cycode 0.2.4.dev8__tar.gz → 0.2.4.dev10__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-0.2.4.dev8 → cycode-0.2.4.dev10}/PKG-INFO +1 -1
- cycode-0.2.4.dev10/cycode/__init__.py +1 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/printers/table_printer.py +12 -6
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/pyproject.toml +1 -1
- cycode-0.2.4.dev8/cycode/__init__.py +0 -1
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/README.md +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/__init__.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/auth/__init__.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/auth/auth_command.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/auth/auth_manager.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/ci_integrations.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/code_scanner.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/config.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/config.yaml +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/consts.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/exceptions/__init__.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/exceptions/custom_exceptions.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/helpers/__init__.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/helpers/maven/__init__.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/helpers/maven/base_restore_maven_dependencies.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/helpers/maven/restore_gradle_dependencies.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/helpers/maven/restore_maven_dependencies.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/helpers/sca_code_scanner.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/main.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/models.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/printers/__init__.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/printers/base_printer.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/printers/json_printer.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/printers/results_printer.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/printers/text_printer.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/user_settings/__init__.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/user_settings/base_file_manager.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/user_settings/config_file_manager.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/user_settings/configuration_manager.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/user_settings/credentials_manager.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/user_settings/user_settings_commands.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/utils/__init__.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/utils/path_utils.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/utils/scan_utils.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/utils/shell_executor.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/utils/string_utils.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/utils/task_timer.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/utils/yaml_utils.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/zip_file.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cyclient/__init__.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cyclient/auth_client.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cyclient/config.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cyclient/config.yaml +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cyclient/config_dev.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cyclient/cycode_client.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cyclient/cycode_client_base.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cyclient/cycode_dev_based_client.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cyclient/cycode_token_based_client.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cyclient/models.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cyclient/scan_client.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cyclient/scan_config/__init__.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cyclient/scan_config/scan_config_base.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cyclient/scan_config/scan_config_creator.py +0 -0
- {cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cyclient/utils.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '0.2.4.dev10' # placeholder. Will be filled automatically on poetry build from Git Tag
|
|
@@ -12,6 +12,7 @@ SEVERITY_COLUMN = 'Severity'
|
|
|
12
12
|
LICENSE_COLUMN = 'License'
|
|
13
13
|
UPGRADE_COLUMN = 'Upgrade'
|
|
14
14
|
REPOSITORY_COLUMN = 'Repository'
|
|
15
|
+
CVE_COLUMN = 'CVE'
|
|
15
16
|
PREVIEW_DETECTIONS_COMMON_HEADERS = ['File Path', 'Ecosystem', 'Dependency Name',
|
|
16
17
|
'Direct Dependency',
|
|
17
18
|
'Development Dependency']
|
|
@@ -42,7 +43,8 @@ class TablePrinter(BasePrinter):
|
|
|
42
43
|
if self.context.obj.get('report_url'):
|
|
43
44
|
click.secho(f"Report URL: {self.context.obj.get('report_url')}")
|
|
44
45
|
|
|
45
|
-
|
|
46
|
+
@staticmethod
|
|
47
|
+
def _extract_detections_per_detection_type_id(results: List[DocumentDetections]):
|
|
46
48
|
detections_per_detection_type_id = {}
|
|
47
49
|
|
|
48
50
|
for document_detection in results:
|
|
@@ -57,13 +59,15 @@ class TablePrinter(BasePrinter):
|
|
|
57
59
|
for detection_type_id in detections_per_detection_type_id:
|
|
58
60
|
detections = detections_per_detection_type_id[detection_type_id]
|
|
59
61
|
headers = self._get_table_headers()
|
|
62
|
+
rows = []
|
|
63
|
+
title = ""
|
|
60
64
|
|
|
61
65
|
if detection_type_id == PACKAGE_VULNERABILITY_POLICY_ID:
|
|
62
66
|
title = "Dependencies Vulnerabilities"
|
|
63
67
|
headers = [SEVERITY_COLUMN] + headers
|
|
64
68
|
headers.extend(PREVIEW_DETECTIONS_COMMON_HEADERS)
|
|
69
|
+
headers.append(CVE_COLUMN)
|
|
65
70
|
headers.append(UPGRADE_COLUMN)
|
|
66
|
-
rows = []
|
|
67
71
|
for detection in detections:
|
|
68
72
|
rows.append(self._get_upgrade_package_vulnerability(detection))
|
|
69
73
|
|
|
@@ -71,7 +75,6 @@ class TablePrinter(BasePrinter):
|
|
|
71
75
|
title = "License Compliance"
|
|
72
76
|
headers.extend(PREVIEW_DETECTIONS_COMMON_HEADERS)
|
|
73
77
|
headers.append(LICENSE_COLUMN)
|
|
74
|
-
rows = []
|
|
75
78
|
for detection in detections:
|
|
76
79
|
rows.append(self._get_license(detection))
|
|
77
80
|
|
|
@@ -96,13 +99,15 @@ class TablePrinter(BasePrinter):
|
|
|
96
99
|
text_table.add_row(row)
|
|
97
100
|
click.echo(text_table.draw())
|
|
98
101
|
|
|
99
|
-
|
|
102
|
+
@staticmethod
|
|
103
|
+
def set_table_width(headers, text_table):
|
|
100
104
|
header_width_size_cols = []
|
|
101
105
|
for header in headers:
|
|
102
106
|
header_width_size_cols.append(len(header))
|
|
103
107
|
text_table.set_cols_width(header_width_size_cols)
|
|
104
108
|
|
|
105
|
-
|
|
109
|
+
@staticmethod
|
|
110
|
+
def _print_summary_issues(detections: List, title: str):
|
|
106
111
|
click.echo(
|
|
107
112
|
f'⛔ Found {len(detections)} issues of type: {click.style(title, bold=True)}')
|
|
108
113
|
|
|
@@ -112,7 +117,8 @@ class TablePrinter(BasePrinter):
|
|
|
112
117
|
detection.detection_details.get('ecosystem'),
|
|
113
118
|
detection.detection_details.get('package_name'),
|
|
114
119
|
detection.detection_details.get('is_direct_dependency_str'),
|
|
115
|
-
detection.detection_details.get('is_dev_dependency_str')
|
|
120
|
+
detection.detection_details.get('is_dev_dependency_str'),
|
|
121
|
+
detection.detection_details.get('vulnerability_id')
|
|
116
122
|
]
|
|
117
123
|
|
|
118
124
|
if self._is_git_repository():
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "cycode"
|
|
3
|
-
version = "0.2.4.
|
|
3
|
+
version = "0.2.4.dev10" # placeholder. Will be filled automatically on poetry build from Git Tag
|
|
4
4
|
description = "Perform secrets/iac scans for your sources using Cycode's engine"
|
|
5
5
|
keywords=["secret-scan", "cycode", "devops", "token", "secret", "security", "cycode", "code"]
|
|
6
6
|
authors = ["Cycode <support@cycode.com>"]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '0.2.4.dev8' # 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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/helpers/maven/base_restore_maven_dependencies.py
RENAMED
|
File without changes
|
{cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/helpers/maven/restore_gradle_dependencies.py
RENAMED
|
File without changes
|
{cycode-0.2.4.dev8 → cycode-0.2.4.dev10}/cycode/cli/helpers/maven/restore_maven_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
|
|
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
|