cycode 3.4.1.dev1__py3-none-any.whl → 3.4.1.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 CHANGED
@@ -1 +1 @@
1
- __version__ = '3.4.1.dev1' # DON'T TOUCH. Placeholder. Will be filled automatically on poetry build from Git Tag
1
+ __version__ = '3.4.1.dev2' # DON'T TOUCH. Placeholder. Will be filled automatically on poetry build from Git Tag
cycode/cli/consts.py CHANGED
@@ -105,7 +105,7 @@ SCA_CONFIGURATION_SCAN_SUPPORTED_FILES = ( # keep in lowercase
105
105
  'conan.lock',
106
106
  )
107
107
 
108
- SCA_EXCLUDED_PATHS = (
108
+ SCA_EXCLUDED_FOLDER_IN_PATH = (
109
109
  'node_modules',
110
110
  'venv',
111
111
  '.venv',
@@ -1,3 +1,4 @@
1
+ from pathlib import Path
1
2
  from typing import TYPE_CHECKING
2
3
 
3
4
  from cycode.cli import consts
@@ -40,11 +41,13 @@ def _does_document_exceed_max_size_limit(content: str) -> bool:
40
41
 
41
42
 
42
43
  def _is_file_relevant_for_sca_scan(filename: str) -> bool:
43
- if any(sca_excluded_path in filename for sca_excluded_path in consts.SCA_EXCLUDED_PATHS):
44
- logger.debug(
45
- 'The file is irrelevant because it is from the inner path of node_modules, %s', {'filename': filename}
46
- )
47
- return False
44
+ for part in Path(filename).parts:
45
+ if part in consts.SCA_EXCLUDED_FOLDER_IN_PATH:
46
+ logger.debug(
47
+ 'The file is irrelevant because it is from an excluded directory, %s',
48
+ {'filename': filename, 'excluded_directory': part},
49
+ )
50
+ return False
48
51
 
49
52
  return True
50
53
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cycode
3
- Version: 3.4.1.dev1
3
+ Version: 3.4.1.dev2
4
4
  Summary: Boost security in your dev lifecycle via SAST, SCA, Secrets & IaC scanning.
5
5
  Home-page: https://github.com/cycodehq/cycode-cli
6
6
  License: MIT
@@ -1,4 +1,4 @@
1
- cycode/__init__.py,sha256=HWAqYQIqXsU8dr6XKgVSEsxYrQI2FqUg4lUgGzscTQc,114
1
+ cycode/__init__.py,sha256=B9hp2AibvqIGoMgw1bEA-t1ZCNK7WAwrFCgoXCWyPpk,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=UC5A5TKIvlxOYKERfJykN8apTT0VyMY5pUjRh_LM-dw,6098
@@ -61,7 +61,7 @@ cycode/cli/apps/status/version_command.py,sha256=c6Iko_rmZo9T_kQSd3HUloBi40Qv7cj
61
61
  cycode/cli/cli_types.py,sha256=cI9_XPG9LDofh6e2qyPtegD76KZYzcPwLj8jFK3Kmp4,2790
62
62
  cycode/cli/config.py,sha256=EblYUlUA4lTp_lrL3gMG-cW7FUOTE1jtGIOljcLnEzk,250
63
63
  cycode/cli/console.py,sha256=vp-DHwlkwpwdsPyfwGdjsPF-6-Bi3f8W7G-W_YXCMH8,1914
64
- cycode/cli/consts.py,sha256=VZ7jwYfbnDTsy1h_EEMXoVpmiF-dd1-2gvnRlWJzYYY,8397
64
+ cycode/cli/consts.py,sha256=xowssaJU81d8v4jg0W29oD33BdqzIOi5GY_9LQZU-vI,8406
65
65
  cycode/cli/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
66
66
  cycode/cli/exceptions/custom_exceptions.py,sha256=Uh4Lqp4moTIFRTRtnT5b8dqb07L3wSAnAuFonS6-omQ,3610
67
67
  cycode/cli/exceptions/handle_ai_remediation_errors.py,sha256=mA70upSYXK3rL_fmanzKYeUzLENhpXdkW8k3aIHrKzU,785
@@ -71,7 +71,7 @@ cycode/cli/exceptions/handle_report_sbom_errors.py,sha256=bi0EizHtQLL-ovhHRH98CZ
71
71
  cycode/cli/exceptions/handle_scan_errors.py,sha256=-QIYvbBXmZVOvAdNwGYwAdmBma6Z_pPpS0a77aDICp8,1916
72
72
  cycode/cli/files_collector/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
73
73
  cycode/cli/files_collector/commit_range_documents.py,sha256=bMp6SmeIC2sQKIoGCE6bWN8yabGVq8KpeDCvNRA_3Ng,10780
74
- cycode/cli/files_collector/file_excluder.py,sha256=JN0KmK95WCk7p_QCcHClVnIpMHV_opM6I6FfiEderss,7224
74
+ cycode/cli/files_collector/file_excluder.py,sha256=FhBnYF889BOwx3fRjNyBaFix6-65jCejglf8MmiVxSk,7300
75
75
  cycode/cli/files_collector/iac/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
76
76
  cycode/cli/files_collector/iac/tf_content_generator.py,sha256=a65zA0Ejv_LSA5jac2omHck4IKoNS5MX6v6ltF2wo4E,2873
77
77
  cycode/cli/files_collector/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -157,8 +157,8 @@ cycode/cyclient/report_client.py,sha256=h12pz3vWCwDF73BhqFX7iDSxBgQDFwkiGh3hmul2
157
157
  cycode/cyclient/scan_client.py,sha256=nQJyt34Bne8UAQNj9OHSgvoCfI1EJFKNaEeeGPnrKcg,12471
158
158
  cycode/cyclient/scan_config_base.py,sha256=mXsPZGYCtp85rv5GIige40yQZXuRcEKUW-VQJ0vgFzk,1201
159
159
  cycode/logger.py,sha256=xAzpkWLZhixO4egRcYn4HXM9lIfx5wHdpkHxNc5jrX8,2225
160
- cycode-3.4.1.dev1.dist-info/LICENCE,sha256=2Wx4N6mD_4xB7-E3hPkZ3MPhpJy__k_I8MaCSO-PDRo,1068
161
- cycode-3.4.1.dev1.dist-info/METADATA,sha256=vbx4oqra28NcFB1JSKKG7L6lz1UR3nP_PzxaxbFlvAg,71912
162
- cycode-3.4.1.dev1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
163
- cycode-3.4.1.dev1.dist-info/entry_points.txt,sha256=iDcVJM8ByLElVgvBgtYxDjw1kT7O8Mo0LcWZIT5L3Ig,45
164
- cycode-3.4.1.dev1.dist-info/RECORD,,
160
+ cycode-3.4.1.dev2.dist-info/LICENCE,sha256=2Wx4N6mD_4xB7-E3hPkZ3MPhpJy__k_I8MaCSO-PDRo,1068
161
+ cycode-3.4.1.dev2.dist-info/METADATA,sha256=slnNCDTycu4C6MKHxNHisO23TvBrItbtYB2-mlQvkNk,71912
162
+ cycode-3.4.1.dev2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
163
+ cycode-3.4.1.dev2.dist-info/entry_points.txt,sha256=iDcVJM8ByLElVgvBgtYxDjw1kT7O8Mo0LcWZIT5L3Ig,45
164
+ cycode-3.4.1.dev2.dist-info/RECORD,,