cycode 3.9.2.dev2__py3-none-any.whl → 3.9.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 +1 -1
- cycode/cli/apps/ai_guardrails/scan/scan_command.py +3 -3
- cycode/cli/apps/scan/scan_result.py +1 -1
- cycode/cli/printers/tables/sca_table_printer.py +1 -1
- cycode/cli/printers/utils/detection_data.py +1 -1
- cycode/cli/printers/utils/detection_ordering/sca_ordering.py +1 -1
- {cycode-3.9.2.dev2.dist-info → cycode-3.9.3.dev2.dist-info}/METADATA +1 -1
- {cycode-3.9.2.dev2.dist-info → cycode-3.9.3.dev2.dist-info}/RECORD +11 -11
- {cycode-3.9.2.dev2.dist-info → cycode-3.9.3.dev2.dist-info}/WHEEL +0 -0
- {cycode-3.9.2.dev2.dist-info → cycode-3.9.3.dev2.dist-info}/entry_points.txt +0 -0
- {cycode-3.9.2.dev2.dist-info → cycode-3.9.3.dev2.dist-info}/licenses/LICENCE +0 -0
cycode/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '3.9.
|
|
1
|
+
__version__ = '3.9.3.dev2' # DON'T TOUCH. Placeholder. Will be filled automatically on poetry build from Git Tag
|
|
@@ -34,17 +34,17 @@ def _get_auth_error_message(error: Exception) -> str:
|
|
|
34
34
|
"""Get user-friendly message for authentication errors."""
|
|
35
35
|
if isinstance(error, click.ClickException):
|
|
36
36
|
# Missing credentials
|
|
37
|
-
return f'{error.message} Please run `cycode
|
|
37
|
+
return f'{error.message} Please run `cycode auth` to set up your credentials.'
|
|
38
38
|
|
|
39
39
|
if isinstance(error, HttpUnauthorizedError):
|
|
40
40
|
# Invalid/expired credentials
|
|
41
41
|
return (
|
|
42
42
|
'Unable to authenticate to Cycode. Your credentials are invalid or have expired. '
|
|
43
|
-
'Please run `cycode
|
|
43
|
+
'Please run `cycode auth` to update your credentials.'
|
|
44
44
|
)
|
|
45
45
|
|
|
46
46
|
# Fallback
|
|
47
|
-
return 'Authentication failed. Please run `cycode
|
|
47
|
+
return 'Authentication failed. Please run `cycode auth` to set up your credentials.'
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
def _initialize_clients(ctx: typer.Context) -> None:
|
|
@@ -88,7 +88,7 @@ def _get_file_name_from_detection(scan_type: str, raw_detection: dict) -> str:
|
|
|
88
88
|
if scan_type == consts.SECRET_SCAN_TYPE:
|
|
89
89
|
return _get_secret_file_name_from_detection(raw_detection)
|
|
90
90
|
|
|
91
|
-
return raw_detection['detection_details']['
|
|
91
|
+
return raw_detection['detection_details']['file_path']
|
|
92
92
|
|
|
93
93
|
|
|
94
94
|
def _get_secret_file_name_from_detection(raw_detection: dict) -> str:
|
|
@@ -86,7 +86,7 @@ class ScaTablePrinter(TablePrinterBase):
|
|
|
86
86
|
table.add_cell(SEVERITY_COLUMN, 'N/A')
|
|
87
87
|
|
|
88
88
|
table.add_cell(REPOSITORY_COLUMN, detection_details.get('repository_name'))
|
|
89
|
-
table.add_file_path_cell(CODE_PROJECT_COLUMN, detection_details.get('
|
|
89
|
+
table.add_file_path_cell(CODE_PROJECT_COLUMN, detection_details.get('file_path'))
|
|
90
90
|
table.add_cell(ECOSYSTEM_COLUMN, detection_details.get('ecosystem'))
|
|
91
91
|
table.add_cell(PACKAGE_COLUMN, detection_details.get('package_name'))
|
|
92
92
|
|
|
@@ -49,7 +49,7 @@ def sort_and_group_detections(detections: list['Detection']) -> tuple[list['Dete
|
|
|
49
49
|
|
|
50
50
|
grouped_by_repository = __group_by(sorted_detections, 'repository_name')
|
|
51
51
|
for repository_group in grouped_by_repository.values():
|
|
52
|
-
grouped_by_code_project = __group_by(repository_group, '
|
|
52
|
+
grouped_by_code_project = __group_by(repository_group, 'file_path')
|
|
53
53
|
for code_project_group in grouped_by_code_project.values():
|
|
54
54
|
grouped_by_package = __group_by(code_project_group, 'package_name')
|
|
55
55
|
for package_group in grouped_by_package.values():
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
cycode/__init__.py,sha256=
|
|
1
|
+
cycode/__init__.py,sha256=NAdduhtOdR4WJuzFR1szntrtA7oM875uEjkINTFXtfY,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=euQuMmLSM7Flq-mIPrie1ogdk09t1l6R_B6PQE_ib8w,6348
|
|
@@ -14,7 +14,7 @@ cycode/cli/apps/ai_guardrails/scan/handlers.py,sha256=nVFMGtxNFkfiWlhQlIHmx2T1J4
|
|
|
14
14
|
cycode/cli/apps/ai_guardrails/scan/payload.py,sha256=-r8BsvP-VPD3XibyIPKreCjJNVXGpe_9ENPF78NlnkQ,10178
|
|
15
15
|
cycode/cli/apps/ai_guardrails/scan/policy.py,sha256=39s8hnxgjny1l6XAO59wsRcAlpW-LG00GUnO0PfqvuY,2566
|
|
16
16
|
cycode/cli/apps/ai_guardrails/scan/response_builders.py,sha256=tVFJCnGdqSmyileg-idypOihygct7F6T4KHXYlX8y_c,4653
|
|
17
|
-
cycode/cli/apps/ai_guardrails/scan/scan_command.py,sha256=
|
|
17
|
+
cycode/cli/apps/ai_guardrails/scan/scan_command.py,sha256=_2fa6vz8ZmJlvCYrYNoWfX9fWrrpzcNCwL1UD-JxqLM,5618
|
|
18
18
|
cycode/cli/apps/ai_guardrails/scan/types.py,sha256=H25MKJhAXmp7Mz1YeCIRmAY1Zg5GSpgBq8G1TEI9PFk,1868
|
|
19
19
|
cycode/cli/apps/ai_guardrails/scan/utils.py,sha256=KVfX-NrcM-QW4quLtoNqfmz4GF0FlDs-TkqUOu1hAWM,2057
|
|
20
20
|
cycode/cli/apps/ai_guardrails/status_command.py,sha256=UerHtjIGi6sY4RXGR06Es6jQFQAEWTx2Dvhk784WQIM,3539
|
|
@@ -74,7 +74,7 @@ cycode/cli/apps/scan/scan_ci/ci_integrations.py,sha256=3ZUv1uLsHC13KTNQ4erQKKDXA
|
|
|
74
74
|
cycode/cli/apps/scan/scan_ci/scan_ci_command.py,sha256=37I6YTs5UWYtbnDe1EeYZnhV1twFTDUrniZ4Sf2_6Kk,562
|
|
75
75
|
cycode/cli/apps/scan/scan_command.py,sha256=3JGUntzhHzymR95Aos22hxUTESqIVwnVNV3SiqCwaKI,7171
|
|
76
76
|
cycode/cli/apps/scan/scan_parameters.py,sha256=66Ft8c_L6_BxDvRgJoXP5ItUQfzSHGF_XJWBdQismrg,1341
|
|
77
|
-
cycode/cli/apps/scan/scan_result.py,sha256=
|
|
77
|
+
cycode/cli/apps/scan/scan_result.py,sha256=mIxALi_qUfXHoauSU7SknX0xLp8P9WdhV3oFc8jp_SA,8497
|
|
78
78
|
cycode/cli/apps/status/__init__.py,sha256=uxfkEBafO7Da0mPc1fZhwoO0RTtyXp2a5T3LJTZxubU,371
|
|
79
79
|
cycode/cli/apps/status/get_cli_status.py,sha256=qAuDdtWTCMI8ChYrQzgeJI31v8dDu-aEirMN8rThafk,2166
|
|
80
80
|
cycode/cli/apps/status/models.py,sha256=2SBpJlh_MNCPxv8aXMV5D4GfK6-G-XB0GlMFZ3Nep_o,1907
|
|
@@ -128,7 +128,7 @@ cycode/cli/printers/json_printer.py,sha256=kqCH_C0llPADwbXRBni0wq1kjVz08kbc7R6cG
|
|
|
128
128
|
cycode/cli/printers/printer_base.py,sha256=zo6on_3hos1Ywxz-vfyHUKqCGgq4jiRGaKXw9o-SCNM,3739
|
|
129
129
|
cycode/cli/printers/rich_printer.py,sha256=tedqYgoDcnD-qObFxJB5TuduJwNu2_ky4YtcAte6KnY,7618
|
|
130
130
|
cycode/cli/printers/tables/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
131
|
-
cycode/cli/printers/tables/sca_table_printer.py,sha256
|
|
131
|
+
cycode/cli/printers/tables/sca_table_printer.py,sha256=-zGwPB_gUp8fXErxqqhnhRSW7oK0LrkATbdZ6VSsKtk,6315
|
|
132
132
|
cycode/cli/printers/tables/table.py,sha256=mdSUvAIGO2gMFvJxhkAJOrNzAh6x42BlqaZVAO127zA,2559
|
|
133
133
|
cycode/cli/printers/tables/table_models.py,sha256=e8FBUD-XZHEarwwF632DFK9vpyPatcWMedyFe14kUtU,738
|
|
134
134
|
cycode/cli/printers/tables/table_printer.py,sha256=8lYrjX_jaQrckOe7SSdIl6_uvyGbCsWaoxym8TTfhRQ,4693
|
|
@@ -136,10 +136,10 @@ cycode/cli/printers/tables/table_printer_base.py,sha256=qCXn9ahV0ZeJ2MqxEeMhrecu
|
|
|
136
136
|
cycode/cli/printers/text_printer.py,sha256=jx_URpXbDbd5NyZVOt44u0TkZW1wIHJX_vS8CEWkazE,5735
|
|
137
137
|
cycode/cli/printers/utils/__init__.py,sha256=eTrDlfmd8LsaWk8D33kCbypPjYMBsE8-7TQ3SUMbrog,169
|
|
138
138
|
cycode/cli/printers/utils/code_snippet_syntax.py,sha256=2rfw1T3Nac-8gZFVlJLjceCMp3u3CHEx5xxLykBQGqY,4680
|
|
139
|
-
cycode/cli/printers/utils/detection_data.py,sha256
|
|
139
|
+
cycode/cli/printers/utils/detection_data.py,sha256=-JR4oDLQ-MA0TXWPYuly1ju2GpQB2fsAfd0053zMFBw,3522
|
|
140
140
|
cycode/cli/printers/utils/detection_ordering/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
141
141
|
cycode/cli/printers/utils/detection_ordering/common_ordering.py,sha256=WxdDGL9Hj8ne4sdWcmTjUIwWecOOJO7JE3baC9gSTzQ,2211
|
|
142
|
-
cycode/cli/printers/utils/detection_ordering/sca_ordering.py,sha256=
|
|
142
|
+
cycode/cli/printers/utils/detection_ordering/sca_ordering.py,sha256=nEy9PIrApLBi1hrhKbIZ5x8XVK0LW4jsKxzax3leM7o,2315
|
|
143
143
|
cycode/cli/printers/utils/rich_helpers.py,sha256=mUd9hIgZdRp0ZKfL26NHCrGdITKb2dvVtUSrYpZicck,1079
|
|
144
144
|
cycode/cli/user_settings/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
145
145
|
cycode/cli/user_settings/base_file_manager.py,sha256=SLA5xRMTqSY-PtbeKCtVc9rP_ljxUYe3z3ZU-XE2x0w,844
|
|
@@ -185,8 +185,8 @@ cycode/cyclient/report_client.py,sha256=Scq30NeJPzgXv0hPLO1U05AdE9i_2iu6cIrSKpEJ
|
|
|
185
185
|
cycode/cyclient/scan_client.py,sha256=uTBEjgfaCVuJREo73p_zkIVA23NQfdJ1d1-bzc7nSKk,12682
|
|
186
186
|
cycode/cyclient/scan_config_base.py,sha256=mXsPZGYCtp85rv5GIige40yQZXuRcEKUW-VQJ0vgFzk,1201
|
|
187
187
|
cycode/logger.py,sha256=xAzpkWLZhixO4egRcYn4HXM9lIfx5wHdpkHxNc5jrX8,2225
|
|
188
|
-
cycode-3.9.
|
|
189
|
-
cycode-3.9.
|
|
190
|
-
cycode-3.9.
|
|
191
|
-
cycode-3.9.
|
|
192
|
-
cycode-3.9.
|
|
188
|
+
cycode-3.9.3.dev2.dist-info/METADATA,sha256=sCfo4wfO60Sozz3qEq7cOOyVYU629aJnOaV3YCYwrgA,78996
|
|
189
|
+
cycode-3.9.3.dev2.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
190
|
+
cycode-3.9.3.dev2.dist-info/entry_points.txt,sha256=iDcVJM8ByLElVgvBgtYxDjw1kT7O8Mo0LcWZIT5L3Ig,45
|
|
191
|
+
cycode-3.9.3.dev2.dist-info/licenses/LICENCE,sha256=2Wx4N6mD_4xB7-E3hPkZ3MPhpJy__k_I8MaCSO-PDRo,1068
|
|
192
|
+
cycode-3.9.3.dev2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|