cycode 2.3.3.dev1__tar.gz → 2.3.4.dev2__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-2.3.3.dev1 → cycode-2.3.4.dev2}/PKG-INFO +1 -1
- cycode-2.3.4.dev2/cycode/__init__.py +1 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/scan/code_scanner.py +91 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/consts.py +4 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/pyproject.toml +1 -1
- cycode-2.3.3.dev1/cycode/__init__.py +0 -1
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/LICENCE +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/README.md +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/__init__.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/__init__.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/ai_remediation/__init__.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/ai_remediation/ai_remediation_command.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/auth/__init__.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/auth/auth_command.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/auth/auth_manager.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/auth_common.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/configure/__init__.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/configure/configure_command.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/ignore/__init__.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/ignore/ignore_command.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/main_cli.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/report/__init__.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/report/report_command.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/report/sbom/__init__.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/report/sbom/common.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/report/sbom/path/__init__.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/report/sbom/path/path_command.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/report/sbom/repository_url/__init__.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/report/sbom/repository_url/repository_url_command.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/report/sbom/sbom_command.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/report/sbom/sbom_report_file.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/scan/__init__.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/scan/commit_history/__init__.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/scan/commit_history/commit_history_command.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/scan/path/__init__.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/scan/path/path_command.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/scan/pre_commit/__init__.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/scan/pre_commit/pre_commit_command.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/scan/pre_receive/__init__.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/scan/pre_receive/pre_receive_command.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/scan/repository/__init__.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/scan/repository/repository_command.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/scan/scan_ci/__init__.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/scan/scan_ci/ci_integrations.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/scan/scan_ci/scan_ci_command.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/scan/scan_command.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/status/__init__.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/status/status_command.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/version/__init__.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/version/version_checker.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/version/version_command.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/config.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/config.yaml +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/exceptions/__init__.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/exceptions/common.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/exceptions/custom_exceptions.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/exceptions/handle_ai_remediation_errors.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/exceptions/handle_report_sbom_errors.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/exceptions/handle_scan_errors.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/files_collector/__init__.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/files_collector/excluder.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/files_collector/iac/__init__.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/files_collector/iac/tf_content_generator.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/files_collector/models/__init__.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/files_collector/models/in_memory_zip.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/files_collector/path_documents.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/files_collector/repository_documents.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/files_collector/sca/__init__.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/files_collector/sca/base_restore_dependencies.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/files_collector/sca/go/__init__.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/files_collector/sca/go/restore_go_dependencies.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/files_collector/sca/maven/__init__.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/files_collector/sca/maven/restore_gradle_dependencies.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/files_collector/sca/maven/restore_maven_dependencies.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/files_collector/sca/npm/__init__.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/files_collector/sca/npm/restore_npm_dependencies.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/files_collector/sca/nuget/__init__.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/files_collector/sca/nuget/restore_nuget_dependencies.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/files_collector/sca/ruby/__init__.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/files_collector/sca/ruby/restore_ruby_dependencies.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/files_collector/sca/sbt/__init__.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/files_collector/sca/sbt/restore_sbt_dependencies.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/files_collector/sca/sca_code_scanner.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/files_collector/walk_ignore.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/files_collector/zip_documents.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/main.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/models.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/printers/__init__.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/printers/console_printer.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/printers/json_printer.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/printers/printer_base.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/printers/tables/__init__.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/printers/tables/sca_table_printer.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/printers/tables/table.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/printers/tables/table_models.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/printers/tables/table_printer.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/printers/tables/table_printer_base.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/printers/text_printer.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/sentry.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/user_settings/__init__.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/user_settings/base_file_manager.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/user_settings/config_file_manager.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/user_settings/configuration_manager.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/user_settings/credentials_manager.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/user_settings/jwt_creator.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/utils/__init__.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/utils/enum_utils.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/utils/get_api_client.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/utils/git_proxy.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/utils/ignore_utils.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/utils/jwt_utils.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/utils/path_utils.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/utils/progress_bar.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/utils/scan_batch.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/utils/scan_utils.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/utils/shell_executor.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/utils/string_utils.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/utils/task_timer.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/utils/yaml_utils.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cyclient/__init__.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cyclient/auth_client.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cyclient/client_creator.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cyclient/config.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cyclient/config.yaml +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cyclient/config_dev.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cyclient/cycode_client.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cyclient/cycode_client_base.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cyclient/cycode_dev_based_client.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cyclient/cycode_token_based_client.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cyclient/headers.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cyclient/models.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cyclient/report_client.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cyclient/scan_client.py +0 -0
- {cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cyclient/scan_config_base.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '2.3.4.dev2' # DON'T TOUCH. Placeholder. Will be filled automatically on poetry build from Git Tag
|
|
@@ -32,6 +32,7 @@ from cycode.cli.utils.path_utils import get_path_by_os
|
|
|
32
32
|
from cycode.cli.utils.progress_bar import ScanProgressBarSection
|
|
33
33
|
from cycode.cli.utils.scan_batch import run_parallel_batched_scan
|
|
34
34
|
from cycode.cli.utils.scan_utils import set_issue_detected
|
|
35
|
+
from cycode.cli.utils.shell_executor import shell
|
|
35
36
|
from cycode.cyclient import logger
|
|
36
37
|
from cycode.cyclient.config import set_logging_level
|
|
37
38
|
from cycode.cyclient.models import Detection, DetectionSchema, DetectionsPerFile, ZippedFileScanResult
|
|
@@ -666,6 +667,9 @@ def get_scan_parameters(context: click.Context, paths: Optional[Tuple[str]] = No
|
|
|
666
667
|
return scan_parameters
|
|
667
668
|
|
|
668
669
|
remote_url = try_get_git_remote_url(paths[0])
|
|
670
|
+
if not remote_url:
|
|
671
|
+
remote_url = try_to_get_plastic_remote_url(paths[0])
|
|
672
|
+
|
|
669
673
|
if remote_url:
|
|
670
674
|
# TODO(MarshalX): remove hardcode in context
|
|
671
675
|
context.obj['remote_url'] = remote_url
|
|
@@ -684,6 +688,93 @@ def try_get_git_remote_url(path: str) -> Optional[str]:
|
|
|
684
688
|
return None
|
|
685
689
|
|
|
686
690
|
|
|
691
|
+
def _get_plastic_repository_name(path: str) -> Optional[str]:
|
|
692
|
+
"""Gets the name of the Plastic repository from the current working directory.
|
|
693
|
+
|
|
694
|
+
The command to execute is:
|
|
695
|
+
cm status --header --machinereadable --fieldseparator=":::"
|
|
696
|
+
|
|
697
|
+
Example of status header in machine-readable format:
|
|
698
|
+
STATUS:::0:::Project/RepoName:::OrgName@ServerInfo
|
|
699
|
+
"""
|
|
700
|
+
|
|
701
|
+
try:
|
|
702
|
+
command = [
|
|
703
|
+
'cm',
|
|
704
|
+
'status',
|
|
705
|
+
'--header',
|
|
706
|
+
'--machinereadable',
|
|
707
|
+
f'--fieldseparator={consts.PLASTIC_VCS_DATA_SEPARATOR}',
|
|
708
|
+
]
|
|
709
|
+
|
|
710
|
+
status = shell(command=command, timeout=consts.PLASTIC_VSC_CLI_TIMEOUT, working_directory=path)
|
|
711
|
+
if not status:
|
|
712
|
+
logger.debug('Failed to get Plastic repository name (command failed)')
|
|
713
|
+
return None
|
|
714
|
+
|
|
715
|
+
status_parts = status.split(consts.PLASTIC_VCS_DATA_SEPARATOR)
|
|
716
|
+
if len(status_parts) < 2:
|
|
717
|
+
logger.debug('Failed to parse Plastic repository name (command returned unexpected format)')
|
|
718
|
+
return None
|
|
719
|
+
|
|
720
|
+
return status_parts[2].strip()
|
|
721
|
+
except Exception as e:
|
|
722
|
+
logger.debug('Failed to get Plastic repository name', exc_info=e)
|
|
723
|
+
return None
|
|
724
|
+
|
|
725
|
+
|
|
726
|
+
def _get_plastic_repository_list(working_dir: Optional[str] = None) -> Dict[str, str]:
|
|
727
|
+
"""Gets the list of Plastic repositories and their GUIDs.
|
|
728
|
+
|
|
729
|
+
The command to execute is:
|
|
730
|
+
cm repo list --format="{repname}:::{repguid}"
|
|
731
|
+
|
|
732
|
+
Example line with data:
|
|
733
|
+
Project/RepoName:::tapo1zqt-wn99-4752-h61m-7d9k79d40r4v
|
|
734
|
+
|
|
735
|
+
Each line represents an individual repository.
|
|
736
|
+
"""
|
|
737
|
+
|
|
738
|
+
repo_name_to_guid = {}
|
|
739
|
+
|
|
740
|
+
try:
|
|
741
|
+
command = ['cm', 'repo', 'ls', f'--format={{repname}}{consts.PLASTIC_VCS_DATA_SEPARATOR}{{repguid}}']
|
|
742
|
+
|
|
743
|
+
status = shell(command=command, timeout=consts.PLASTIC_VSC_CLI_TIMEOUT, working_directory=working_dir)
|
|
744
|
+
if not status:
|
|
745
|
+
logger.debug('Failed to get Plastic repository list (command failed)')
|
|
746
|
+
return repo_name_to_guid
|
|
747
|
+
|
|
748
|
+
status_lines = status.splitlines()
|
|
749
|
+
for line in status_lines:
|
|
750
|
+
data_parts = line.split(consts.PLASTIC_VCS_DATA_SEPARATOR)
|
|
751
|
+
if len(data_parts) < 2:
|
|
752
|
+
logger.debug('Failed to parse Plastic repository list line (unexpected format), %s', {'line': line})
|
|
753
|
+
continue
|
|
754
|
+
|
|
755
|
+
repo_name, repo_guid = data_parts
|
|
756
|
+
repo_name_to_guid[repo_name.strip()] = repo_guid.strip()
|
|
757
|
+
|
|
758
|
+
return repo_name_to_guid
|
|
759
|
+
except Exception as e:
|
|
760
|
+
logger.debug('Failed to get Plastic repository list', exc_info=e)
|
|
761
|
+
return repo_name_to_guid
|
|
762
|
+
|
|
763
|
+
|
|
764
|
+
def try_to_get_plastic_remote_url(path: str) -> Optional[str]:
|
|
765
|
+
repository_name = _get_plastic_repository_name(path)
|
|
766
|
+
if not repository_name:
|
|
767
|
+
return None
|
|
768
|
+
|
|
769
|
+
repository_map = _get_plastic_repository_list(path)
|
|
770
|
+
if repository_name not in repository_map:
|
|
771
|
+
logger.debug('Failed to get Plastic repository GUID (repository not found in the list)')
|
|
772
|
+
return None
|
|
773
|
+
|
|
774
|
+
repository_guid = repository_map[repository_name]
|
|
775
|
+
return f'{consts.PLASTIC_VCS_REMOTE_URI_PREFIX}{repository_guid}'
|
|
776
|
+
|
|
777
|
+
|
|
687
778
|
def exclude_irrelevant_detections(
|
|
688
779
|
detections: List[Detection], scan_type: str, command_scan_type: str, severity_threshold: str
|
|
689
780
|
) -> List[Detection]:
|
|
@@ -230,3 +230,7 @@ SCA_SHORTCUT_DEPENDENCY_PATHS = 2
|
|
|
230
230
|
SCA_SKIP_RESTORE_DEPENDENCIES_FLAG = 'no-restore'
|
|
231
231
|
|
|
232
232
|
SCA_GRADLE_ALL_SUB_PROJECTS_FLAG = 'gradle-all-sub-projects'
|
|
233
|
+
|
|
234
|
+
PLASTIC_VCS_DATA_SEPARATOR = ':::'
|
|
235
|
+
PLASTIC_VSC_CLI_TIMEOUT = 10
|
|
236
|
+
PLASTIC_VCS_REMOTE_URI_PREFIX = 'plastic::'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "cycode"
|
|
3
|
-
version = "2.3.
|
|
3
|
+
version = "2.3.4.dev2" # 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>"]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '2.3.3.dev1' # 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
|
{cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/ai_remediation/ai_remediation_command.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
|
{cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/report/sbom/path/path_command.py
RENAMED
|
File without changes
|
{cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/report/sbom/repository_url/__init__.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
|
{cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/scan/pre_commit/pre_commit_command.py
RENAMED
|
File without changes
|
|
File without changes
|
{cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/scan/pre_receive/pre_receive_command.py
RENAMED
|
File without changes
|
|
File without changes
|
{cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/commands/scan/repository/repository_command.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
|
{cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/exceptions/handle_ai_remediation_errors.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/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
|
{cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/files_collector/sca/base_restore_dependencies.py
RENAMED
|
File without changes
|
|
File without changes
|
{cycode-2.3.3.dev1 → cycode-2.3.4.dev2}/cycode/cli/files_collector/sca/go/restore_go_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
|
|
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
|