cycode 1.3.1.dev2__tar.gz → 1.3.1.dev4__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.3.1.dev2 → cycode-1.3.1.dev4}/PKG-INFO +4 -4
- cycode-1.3.1.dev4/cycode/__init__.py +1 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/commands/report/report_command.py +0 -4
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/commands/report/sbom/sbom_path_command.py +2 -1
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/commands/report/sbom/sbom_repository_url_command.py +2 -1
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cyclient/client_creator.py +2 -2
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cyclient/report_client.py +4 -4
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/pyproject.toml +4 -4
- cycode-1.3.1.dev2/cycode/__init__.py +0 -1
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/README.md +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/__init__.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/auth/__init__.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/auth/auth_command.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/auth/auth_manager.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/ci_integrations.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/code_scanner.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/commands/configure/__init__.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/commands/configure/configure_command.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/commands/ignore/__init__.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/commands/ignore/ignore_command.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/commands/report/__init__.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/commands/report/sbom/__init__.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/commands/report/sbom/common.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/commands/report/sbom/handle_errors.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/commands/report/sbom/sbom_command.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/commands/report/sbom/sbom_report_file.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/config.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/config.yaml +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/consts.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/exceptions/__init__.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/exceptions/custom_exceptions.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/files_collector/__init__.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/files_collector/excluder.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/files_collector/iac/__init__.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/files_collector/iac/tf_content_generator.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/files_collector/models/__init__.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/files_collector/models/in_memory_zip.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/files_collector/path_documents.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/files_collector/repository_documents.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/files_collector/sca/__init__.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/files_collector/sca/maven/__init__.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/files_collector/sca/maven/base_restore_maven_dependencies.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/files_collector/sca/maven/restore_gradle_dependencies.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/files_collector/sca/maven/restore_maven_dependencies.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/files_collector/sca/sca_code_scanner.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/files_collector/zip_documents.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/main.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/models.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/printers/__init__.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/printers/console_printer.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/printers/json_printer.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/printers/printer_base.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/printers/tables/__init__.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/printers/tables/sca_table_printer.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/printers/tables/table.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/printers/tables/table_models.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/printers/tables/table_printer.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/printers/tables/table_printer_base.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/printers/text_printer.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/user_settings/__init__.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/user_settings/base_file_manager.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/user_settings/config_file_manager.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/user_settings/configuration_manager.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/user_settings/credentials_manager.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/utils/__init__.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/utils/enum_utils.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/utils/get_api_client.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/utils/path_utils.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/utils/progress_bar.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/utils/scan_batch.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/utils/scan_utils.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/utils/shell_executor.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/utils/string_utils.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/utils/task_timer.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/utils/yaml_utils.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cyclient/__init__.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cyclient/auth_client.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cyclient/config.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cyclient/config.yaml +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cyclient/config_dev.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cyclient/cycode_client.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cyclient/cycode_client_base.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cyclient/cycode_dev_based_client.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cyclient/cycode_token_based_client.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cyclient/models.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cyclient/scan_client.py +0 -0
- {cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cyclient/scan_config_base.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cycode
|
|
3
|
-
Version: 1.3.1.
|
|
3
|
+
Version: 1.3.1.dev4
|
|
4
4
|
Summary: Boost security in your dev lifecycle via SAST, SCA, Secrets & IaC scanning.
|
|
5
5
|
Home-page: https://github.com/cycodehq-public/cycode-cli
|
|
6
6
|
License: MIT
|
|
@@ -22,16 +22,16 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
22
22
|
Classifier: Programming Language :: Python :: 3.11
|
|
23
23
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
24
24
|
Classifier: Programming Language :: Python :: 3.12
|
|
25
|
-
Requires-Dist: arrow (>=0.17.0,<
|
|
25
|
+
Requires-Dist: arrow (>=0.17.0,<1.3.0)
|
|
26
26
|
Requires-Dist: binaryornot (>=0.4.4,<0.5.0)
|
|
27
27
|
Requires-Dist: click (>=8.1.0,<8.2.0)
|
|
28
28
|
Requires-Dist: colorama (>=0.4.3,<0.5.0)
|
|
29
29
|
Requires-Dist: gitpython (>=3.1.30,<3.2.0)
|
|
30
|
-
Requires-Dist: marshmallow (>=3.
|
|
30
|
+
Requires-Dist: marshmallow (>=3.15.0,<3.21.0)
|
|
31
31
|
Requires-Dist: pathspec (>=0.11.1,<0.12.0)
|
|
32
32
|
Requires-Dist: pyyaml (>=6.0,<7.0)
|
|
33
33
|
Requires-Dist: requests (>=2.24,<3.0)
|
|
34
|
-
Requires-Dist: texttable (>=1.6.7,<1.
|
|
34
|
+
Requires-Dist: texttable (>=1.6.7,<1.8.0)
|
|
35
35
|
Requires-Dist: urllib3 (==1.26.17)
|
|
36
36
|
Project-URL: Repository, https://github.com/cycodehq-public/cycode-cli
|
|
37
37
|
Description-Content-Type: text/markdown
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.3.1.dev4' # DON'T TOUCH. Placeholder. Will be filled automatically on poetry build from Git Tag
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import click
|
|
2
2
|
|
|
3
3
|
from cycode.cli.commands.report.sbom.sbom_command import sbom_command
|
|
4
|
-
from cycode.cli.utils.get_api_client import get_report_cycode_client
|
|
5
4
|
from cycode.cli.utils.progress_bar import SBOM_REPORT_PROGRESS_BAR_SECTIONS, get_progress_bar
|
|
6
5
|
|
|
7
6
|
|
|
@@ -16,8 +15,5 @@ def report_command(
|
|
|
16
15
|
context: click.Context,
|
|
17
16
|
) -> int:
|
|
18
17
|
"""Generate report."""
|
|
19
|
-
|
|
20
|
-
context.obj['client'] = get_report_cycode_client(hide_response_log=False) # TODO disable log
|
|
21
18
|
context.obj['progress_bar'] = get_progress_bar(hidden=False, sections=SBOM_REPORT_PROGRESS_BAR_SECTIONS)
|
|
22
|
-
|
|
23
19
|
return 1
|
{cycode-1.3.1.dev2 → cycode-1.3.1.dev4}/cycode/cli/commands/report/sbom/sbom_path_command.py
RENAMED
|
@@ -8,6 +8,7 @@ from cycode.cli.commands.report.sbom.handle_errors import handle_report_exceptio
|
|
|
8
8
|
from cycode.cli.files_collector.path_documents import get_relevant_document
|
|
9
9
|
from cycode.cli.files_collector.sca.sca_code_scanner import perform_pre_scan_documents_actions
|
|
10
10
|
from cycode.cli.files_collector.zip_documents import zip_documents
|
|
11
|
+
from cycode.cli.utils.get_api_client import get_report_cycode_client
|
|
11
12
|
from cycode.cli.utils.progress_bar import SbomReportProgressBarSection
|
|
12
13
|
|
|
13
14
|
|
|
@@ -15,7 +16,7 @@ from cycode.cli.utils.progress_bar import SbomReportProgressBarSection
|
|
|
15
16
|
@click.argument('path', nargs=1, type=click.Path(exists=True, resolve_path=True), required=True)
|
|
16
17
|
@click.pass_context
|
|
17
18
|
def sbom_path_command(context: click.Context, path: str) -> None:
|
|
18
|
-
client =
|
|
19
|
+
client = get_report_cycode_client()
|
|
19
20
|
report_parameters = context.obj['report_parameters']
|
|
20
21
|
output_format = report_parameters.output_format
|
|
21
22
|
output_file = context.obj['output_file']
|
|
@@ -4,6 +4,7 @@ import click
|
|
|
4
4
|
|
|
5
5
|
from cycode.cli.commands.report.sbom.common import create_sbom_report, send_report_feedback
|
|
6
6
|
from cycode.cli.commands.report.sbom.handle_errors import handle_report_exception
|
|
7
|
+
from cycode.cli.utils.get_api_client import get_report_cycode_client
|
|
7
8
|
from cycode.cli.utils.progress_bar import SbomReportProgressBarSection
|
|
8
9
|
|
|
9
10
|
|
|
@@ -15,7 +16,7 @@ def sbom_repository_url_command(context: click.Context, uri: str) -> None:
|
|
|
15
16
|
progress_bar.start()
|
|
16
17
|
progress_bar.set_section_length(SbomReportProgressBarSection.PREPARE_LOCAL_FILES)
|
|
17
18
|
|
|
18
|
-
client =
|
|
19
|
+
client = get_report_cycode_client()
|
|
19
20
|
report_parameters = context.obj['report_parameters']
|
|
20
21
|
output_file = context.obj['output_file']
|
|
21
22
|
output_format = report_parameters.output_format
|
|
@@ -18,6 +18,6 @@ def create_scan_client(client_id: str, client_secret: str, hide_response_log: bo
|
|
|
18
18
|
return ScanClient(client, scan_config, hide_response_log)
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
def create_report_client(client_id: str, client_secret: str,
|
|
21
|
+
def create_report_client(client_id: str, client_secret: str, _: bool) -> ReportClient:
|
|
22
22
|
client = CycodeDevBasedClient(DEV_CYCODE_API_URL) if dev_mode else CycodeTokenBasedClient(client_id, client_secret)
|
|
23
|
-
return ReportClient(client
|
|
23
|
+
return ReportClient(client)
|
|
@@ -37,9 +37,8 @@ class ReportClient:
|
|
|
37
37
|
|
|
38
38
|
DOWNLOAD_REPORT_PATH: str = 'files/api/v1/file/sbom/{file_name}' # not in the report service
|
|
39
39
|
|
|
40
|
-
def __init__(self, client: CycodeClientBase
|
|
40
|
+
def __init__(self, client: CycodeClientBase) -> None:
|
|
41
41
|
self.client = client
|
|
42
|
-
self._hide_response_log = hide_response_log
|
|
43
42
|
|
|
44
43
|
def request_sbom_report_execution(
|
|
45
44
|
self, params: ReportParameters, zip_file: InMemoryZip = None, repository_url: Optional[str] = None
|
|
@@ -55,7 +54,6 @@ class ReportClient:
|
|
|
55
54
|
request_args = {
|
|
56
55
|
'url_path': url_path,
|
|
57
56
|
'data': request_data,
|
|
58
|
-
'hide_response_content_log': self._hide_response_log,
|
|
59
57
|
}
|
|
60
58
|
|
|
61
59
|
if zip_file:
|
|
@@ -84,7 +82,9 @@ class ReportClient:
|
|
|
84
82
|
|
|
85
83
|
def get_file_content(self, file_name: str) -> str:
|
|
86
84
|
response = self.client.get(
|
|
87
|
-
url_path=self.DOWNLOAD_REPORT_PATH.format(file_name=file_name),
|
|
85
|
+
url_path=self.DOWNLOAD_REPORT_PATH.format(file_name=file_name),
|
|
86
|
+
params={'include_hidden': True},
|
|
87
|
+
hide_response_content_log=True,
|
|
88
88
|
)
|
|
89
89
|
return response.text
|
|
90
90
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "cycode"
|
|
3
|
-
version = "1.3.1.
|
|
3
|
+
version = "1.3.1.dev4" # 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>"]
|
|
@@ -31,12 +31,12 @@ python = ">=3.7,<3.13"
|
|
|
31
31
|
click = ">=8.1.0,<8.2.0"
|
|
32
32
|
colorama = ">=0.4.3,<0.5.0"
|
|
33
33
|
pyyaml = ">=6.0,<7.0"
|
|
34
|
-
marshmallow = ">=3.
|
|
34
|
+
marshmallow = ">=3.15.0,<3.21.0"
|
|
35
35
|
pathspec = ">=0.11.1,<0.12.0"
|
|
36
36
|
gitpython = ">=3.1.30,<3.2.0"
|
|
37
|
-
arrow = ">=0.17.0,<
|
|
37
|
+
arrow = ">=0.17.0,<1.3.0"
|
|
38
38
|
binaryornot = ">=0.4.4,<0.5.0"
|
|
39
|
-
texttable = ">=1.6.7,<1.
|
|
39
|
+
texttable = ">=1.6.7,<1.8.0"
|
|
40
40
|
requests = ">=2.24,<3.0"
|
|
41
41
|
urllib3 = "1.26.17" # lock v1 to avoid issues with openssl and old Python versions (<3.9.11) on macOS
|
|
42
42
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '1.3.1.dev2' # 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
|
|
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-1.3.1.dev2 → cycode-1.3.1.dev4}/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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|