cycode 0.2.6.dev15__tar.gz → 0.2.6.dev16__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.6.dev15 → cycode-0.2.6.dev16}/PKG-INFO +1 -1
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/__init__.py +1 -1
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/helpers/sca_code_scanner.py +9 -7
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/pyproject.toml +1 -1
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/README.md +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/__init__.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/auth/__init__.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/auth/auth_command.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/auth/auth_manager.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/ci_integrations.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/code_scanner.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/config.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/config.yaml +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/consts.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/exceptions/__init__.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/exceptions/custom_exceptions.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/helpers/__init__.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/helpers/maven/__init__.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/helpers/maven/base_restore_maven_dependencies.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/helpers/maven/restore_gradle_dependencies.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/helpers/maven/restore_maven_dependencies.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/main.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/models.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/printers/__init__.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/printers/base_printer.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/printers/base_table_printer.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/printers/console_printer.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/printers/json_printer.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/printers/sca_table_printer.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/printers/table.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/printers/table_models.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/printers/table_printer.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/printers/text_printer.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/user_settings/__init__.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/user_settings/base_file_manager.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/user_settings/config_file_manager.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/user_settings/configuration_manager.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/user_settings/credentials_manager.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/user_settings/user_settings_commands.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/utils/__init__.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/utils/enum_utils.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/utils/path_utils.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/utils/progress_bar.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/utils/scan_batch.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/utils/scan_utils.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/utils/shell_executor.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/utils/string_utils.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/utils/task_timer.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/utils/yaml_utils.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/zip_file.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cyclient/__init__.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cyclient/auth_client.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cyclient/config.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cyclient/config.yaml +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cyclient/config_dev.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cyclient/cycode_client.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cyclient/cycode_client_base.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cyclient/cycode_dev_based_client.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cyclient/cycode_token_based_client.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cyclient/models.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cyclient/scan_client.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cyclient/scan_config/__init__.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cyclient/scan_config/scan_config_base.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cyclient/scan_config/scan_config_creator.py +0 -0
- {cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/pre-commit-hook-version +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__version__ = '0.2.6.
|
|
1
|
+
__version__ = '0.2.6.dev16' # DON'T TOUCH. Placeholder. Will be filled automatically on poetry build from Git Tag
|
|
2
2
|
|
|
3
3
|
if __version__ == '0.0.1.dev1':
|
|
4
4
|
# If CLI was installed from shallow clone, __version__ will be 0.0.1.dev1 due to non-strict versioning.
|
|
@@ -43,13 +43,16 @@ def perform_pre_hook_range_scan_actions(
|
|
|
43
43
|
def add_ecosystem_related_files_if_exists(
|
|
44
44
|
documents: List[Document], repo: Optional[Repo] = None, commit_rev: Optional[str] = None
|
|
45
45
|
) -> None:
|
|
46
|
+
documents_to_add: List[Document] = []
|
|
46
47
|
for doc in documents:
|
|
47
48
|
ecosystem = get_project_file_ecosystem(doc)
|
|
48
49
|
if ecosystem is None:
|
|
49
50
|
logger.debug('failed to resolve project file ecosystem: %s', doc.path)
|
|
50
51
|
continue
|
|
51
|
-
|
|
52
|
-
|
|
52
|
+
|
|
53
|
+
documents_to_add.extend(get_doc_ecosystem_related_project_files(doc, documents, ecosystem, commit_rev, repo))
|
|
54
|
+
|
|
55
|
+
documents.extend(documents_to_add)
|
|
53
56
|
|
|
54
57
|
|
|
55
58
|
def get_doc_ecosystem_related_project_files(
|
|
@@ -59,11 +62,10 @@ def get_doc_ecosystem_related_project_files(
|
|
|
59
62
|
for ecosystem_project_file in consts.PROJECT_FILES_BY_ECOSYSTEM_MAP.get(ecosystem):
|
|
60
63
|
file_to_search = join_paths(get_file_dir(doc.path), ecosystem_project_file)
|
|
61
64
|
if not is_project_file_exists_in_documents(documents, file_to_search):
|
|
62
|
-
|
|
63
|
-
get_file_content_from_commit(repo, commit_rev, file_to_search)
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
)
|
|
65
|
+
if repo:
|
|
66
|
+
file_content = get_file_content_from_commit(repo, commit_rev, file_to_search)
|
|
67
|
+
else:
|
|
68
|
+
file_content = get_file_content(file_to_search)
|
|
67
69
|
|
|
68
70
|
if file_content is not None:
|
|
69
71
|
documents_to_add.append(Document(file_to_search, file_content))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "cycode"
|
|
3
|
-
version = "0.2.6.
|
|
3
|
+
version = "0.2.6.dev16" # 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>"]
|
|
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-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/helpers/maven/restore_gradle_dependencies.py
RENAMED
|
File without changes
|
{cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/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
|
{cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cli/user_settings/user_settings_commands.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
|
{cycode-0.2.6.dev15 → cycode-0.2.6.dev16}/cycode/cyclient/scan_config/scan_config_creator.py
RENAMED
|
File without changes
|
|
File without changes
|