cycode 0.2.4.dev16__tar.gz → 0.2.5.dev1__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.dev16 → cycode-0.2.5.dev1}/PKG-INFO +1 -1
- cycode-0.2.5.dev1/cycode/__init__.py +1 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/code_scanner.py +14 -2
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/consts.py +4 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/pyproject.toml +1 -1
- cycode-0.2.4.dev16/cycode/__init__.py +0 -1
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/README.md +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/__init__.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/auth/__init__.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/auth/auth_command.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/auth/auth_manager.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/ci_integrations.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/config.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/config.yaml +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/exceptions/__init__.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/exceptions/custom_exceptions.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/helpers/__init__.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/helpers/maven/__init__.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/helpers/maven/base_restore_maven_dependencies.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/helpers/maven/restore_gradle_dependencies.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/helpers/maven/restore_maven_dependencies.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/helpers/sca_code_scanner.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/main.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/models.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/printers/__init__.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/printers/base_printer.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/printers/console_printer.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/printers/json_printer.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/printers/table_printer.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/printers/text_printer.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/user_settings/__init__.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/user_settings/base_file_manager.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/user_settings/config_file_manager.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/user_settings/configuration_manager.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/user_settings/credentials_manager.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/user_settings/user_settings_commands.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/utils/__init__.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/utils/path_utils.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/utils/scan_utils.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/utils/shell_executor.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/utils/string_utils.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/utils/task_timer.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/utils/yaml_utils.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/zip_file.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cyclient/__init__.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cyclient/auth_client.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cyclient/config.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cyclient/config.yaml +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cyclient/config_dev.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cyclient/cycode_client.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cyclient/cycode_client_base.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cyclient/cycode_dev_based_client.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cyclient/cycode_token_based_client.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cyclient/models.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cyclient/scan_client.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cyclient/scan_config/__init__.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cyclient/scan_config/scan_config_base.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cyclient/scan_config/scan_config_creator.py +0 -0
- {cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cyclient/utils.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '0.2.5.dev1' # DON'T TOUCH. Placeholder. Will be filled automatically on poetry build from Git Tag
|
|
@@ -730,6 +730,14 @@ def _get_package_name(detection) -> str:
|
|
|
730
730
|
return f'{package_name}@{package_version}'
|
|
731
731
|
|
|
732
732
|
|
|
733
|
+
def _is_file_relevant_for_sca_scan(filename: str) -> bool:
|
|
734
|
+
if any([sca_excluded_path in filename for sca_excluded_path in SCA_EXCLUDED_PATHS]):
|
|
735
|
+
logger.debug("file is irrelevant because it is from node_modules's inner path, %s",
|
|
736
|
+
{'filename': filename})
|
|
737
|
+
return False
|
|
738
|
+
return True
|
|
739
|
+
|
|
740
|
+
|
|
733
741
|
def _is_relevant_file_to_scan(scan_type: str, filename: str) -> bool:
|
|
734
742
|
if _is_subpath_of_cycode_configuration_folder(filename):
|
|
735
743
|
logger.debug("file is irrelevant because it is in cycode configuration directory, %s",
|
|
@@ -755,6 +763,10 @@ def _is_relevant_file_to_scan(scan_type: str, filename: str) -> bool:
|
|
|
755
763
|
logger.debug("file is irrelevant because its exceeded max size limit, %s",
|
|
756
764
|
{'filename': filename})
|
|
757
765
|
return False
|
|
766
|
+
|
|
767
|
+
if scan_type == SCA_SCAN_TYPE and not _is_file_relevant_for_sca_scan(filename):
|
|
768
|
+
return False
|
|
769
|
+
|
|
758
770
|
return True
|
|
759
771
|
|
|
760
772
|
|
|
@@ -814,8 +826,8 @@ def _does_document_exceed_max_size_limit(content: str) -> bool:
|
|
|
814
826
|
|
|
815
827
|
def _is_subpath_of_cycode_configuration_folder(filename: str) -> bool:
|
|
816
828
|
return is_sub_path(configuration_manager.global_config_file_manager.get_config_directory_path(), filename) \
|
|
817
|
-
|
|
818
|
-
|
|
829
|
+
or is_sub_path(configuration_manager.local_config_file_manager.get_config_directory_path(), filename) \
|
|
830
|
+
or filename.endswith(ConfigFileManager.get_config_file_route())
|
|
819
831
|
|
|
820
832
|
|
|
821
833
|
def _handle_exception(context: click.Context, e: Exception):
|
|
@@ -30,6 +30,10 @@ SCA_CONFIGURATION_SCAN_SUPPORTED_FILES = [
|
|
|
30
30
|
'pipfile', 'pipfile.lock', 'requirements.txt', 'setup.py'
|
|
31
31
|
]
|
|
32
32
|
|
|
33
|
+
SCA_EXCLUDED_PATHS = [
|
|
34
|
+
'node_modules'
|
|
35
|
+
]
|
|
36
|
+
|
|
33
37
|
PROJECT_FILES_BY_ECOSYSTEM_MAP = {
|
|
34
38
|
"crates": ["Cargo.lock", "Cargo.toml"],
|
|
35
39
|
"composer": ["composer.json", "composer.lock"],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "cycode"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.5.dev1" # DON'T TOUCH. 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.dev16' # 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
|
{cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/helpers/maven/base_restore_maven_dependencies.py
RENAMED
|
File without changes
|
{cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/cycode/cli/helpers/maven/restore_gradle_dependencies.py
RENAMED
|
File without changes
|
{cycode-0.2.4.dev16 → cycode-0.2.5.dev1}/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
|
|
File without changes
|