Software to automate the management and configuration of infrastructure and applications at scale.
14968 matches across 19 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | setup.py | 1017 | def _property_install_requires(self): |
| LOW | setup.py | 1040 | def _property_freezer_options(self): |
| LOW | setup.py | 1043 | def get_esky_freezer_includes(self): |
| LOW | noxfile.py | 167 | def _get_session_python_version_info(session): |
| LOW | noxfile.py | 196 | def _get_pip_requirements_file(session, crypto=None, requirements_type="ci"): |
| LOW | noxfile.py | 254 | def _upgrade_pip_setuptools_and_wheel(session, upgrade=True): |
| LOW | noxfile.py | 333 | def _install_coverage_requirement(session): |
| LOW | noxfile.py | 905 | def pytest_zeromq_pycryptodome(session, coverage): |
| LOW | noxfile.py | 1482 | def create_html_coverage_report(session): |
| LOW | noxfile.py | 1486 | def _create_xml_coverage_reports(session): |
| LOW | noxfile.py | 1496 | def create_xml_coverage_reports(session): |
| LOW | noxfile.py | 1505 | def create_xml_coverage_reports_onedir(session): |
| LOW | noxfile.py | 1510 | def create_json_coverage_reports(session): |
| LOW | noxfile.py | 1519 | def create_json_coverage_reports_onedir(session): |
| LOW | tools/ci.py | 205 | def get_release_changelog_target(ctx: Context, event_name: str): |
| LOW | tools/ci.py | 254 | def _get_pr_test_labels_from_api( |
| LOW | tools/ci.py | 284 | def _get_pr_test_labels_from_event_payload( |
| LOW | tools/changelog.py | 60 | def _get_pkg_changelog_contents(ctx: Context, version: Version): |
| LOW | tools/utils/__init__.py | 411 | def get_platform_and_arch_from_slug(slug: str) -> tuple[str, str]: |
| LOW | tools/utils/repo.py | 36 | def get_repo_json_file_contents( |
| LOW | tools/utils/repo.py | 75 | def create_top_level_repo_path( |
| LOW | tools/precommit/docs.py | 153 | def build_python_module_paths(files): |
| LOW | tools/precommit/docstrings.py | 1081 | def _check_valid_versions_on_docstrings(docstring): |
| LOW | tools/precommit/docstrings.py | 1101 | def _check_cli_example_present(docstring): |
| LOW | tools/precommit/docstrings.py | 1110 | def _check_cli_example_proper_formatting(docstring): |
| LOW | tools/pkg/build.py | 1206 | def _check_pkg_build_files_exist(ctx: Context, **kwargs): |
| LOW | tools/pkg/salt_build_backend.py | 56 | def prepare_metadata_for_build_editable(metadata_directory, config_settings=None): |
| LOW | tests/conftest.py | 31 | def _pin_multiprocessing_fork_for_tests() -> None: |
| LOW | tests/conftest.py | 65 | def _patch_psutil_pidfd_open_einval() -> None: |
| LOW | tests/conftest.py | 105 | def _remove_redundant_salt_utils_vault_py() -> None: |
| LOW | tests/conftest.py | 448 | def set_max_open_files_limits(min_soft=3072, min_hard=4096): |
| LOW | tests/conftest.py | 533 | def pytest_collection_modifyitems(config, items): |
| LOW | tests/conftest.py | 577 | def pytest_markeval_namespace(config): |
| LOW | tests/conftest.py | 841 | def groups_collection_modifyitems(config, items): |
| LOW | tests/conftest.py | 890 | def salt_factories_default_root_dir(salt_factories_default_root_dir): |
| LOW | tests/conftest.py | 1021 | def base_env_state_tree_root_dir(state_tree_root_dir): |
| LOW | tests/conftest.py | 1034 | def prod_env_state_tree_root_dir(state_tree_root_dir): |
| LOW | tests/conftest.py | 1046 | def base_env_pillar_tree_root_dir(pillar_tree_root_dir): |
| LOW | tests/conftest.py | 1059 | def ext_pillar_file_tree_root_dir(pillar_tree_root_dir): |
| LOW | tests/conftest.py | 1070 | def prod_env_pillar_tree_root_dir(pillar_tree_root_dir): |
| LOW | tests/conftest.py | 1082 | def salt_syndic_master_factory( |
| LOW | tests/conftest.py | 1466 | def bridge_pytest_and_runtests( |
| LOW | tests/conftest.py | 1633 | def from_filenames_collection_modifyitems(config, items): |
| LOW | tests/eventlisten.py | 86 | def check_access_and_print_warning(sock_dir): |
| LOW | tests/unit/test_loader.py | 1113 | def test_module_package_collision(self): |
| LOW | tests/unit/test_loader.py | 1333 | def test_loader_clean_modules(self): |
| LOW | tests/unit/test_loader.py | 1689 | def test_osrelease_info_has_correct_type(self): |
| LOW | tests/unit/test_loader.py | 1697 | def test_deserialization_error_caught(self): |
| LOW | tests/unit/test_loader.py | 1760 | def test_lazyloader_refresh_file_mapping_called_with_lock_at___init__(self): |
| LOW | tests/unit/test_loader.py | 1774 | def test_lazyloader_zip_modules(self): |
| LOW | tests/unit/test_loader.py | 1786 | def test_lazyloader_pyx_modules(self): |
| LOW | tests/unit/test_module_names.py | 103 | def test_module_name_source_match(self): |
| LOW | tests/unit/test_config.py | 1583 | def test_is_provider_configured_no_alias(self): |
| LOW | tests/unit/test_config.py | 1591 | def test_is_provider_configured_no_driver(self): |
| LOW | tests/unit/test_config.py | 1599 | def test_is_provider_configured_key_is_none(self): |
| LOW | tests/unit/test_config.py | 81 | def test_conf_master_sample_is_commented(self): |
| LOW | tests/unit/test_config.py | 94 | def test_conf_minion_sample_is_commented(self): |
| LOW | tests/unit/test_config.py | 107 | def test_conf_cloud_sample_is_commented(self): |
| LOW | tests/unit/test_config.py | 120 | def test_conf_cloud_profiles_sample_is_commented(self): |
| LOW | tests/unit/test_config.py | 135 | def test_conf_cloud_providers_sample_is_commented(self): |
| 8026 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tools/precommit/docstrings.py | 1114 | # --------------------------------------------------------------------------- |
| MEDIUM | tools/precommit/docstrings.py | 1128 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/pytests/smoke-tests.txt | 15 | # ───────────────────────────────────────────────────────────────────────────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 17 | # ───────────────────────────────────────────────────────────────────────────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 19 | # ── UNIT: core data structures ─────────────────────────────────────────────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 29 | # ── UNIT: SaltStorage (per-entry log keys, state, snapshot round-trip) ─────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 37 | # used by cluster/peer/join-reply state-sync) ────────────────────────────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 41 | # install helpers, and StateSyncSession state machine) ────────────────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 48 | # ── FUNCTIONAL: HashRing under realistic clustering ────────────────────────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 51 | # ── UNIT: salt.scripts CLI entry-point pin (Python 3.14 forkserver fix) ────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 55 | # ── UNIT: node state machine ───────────────────────────────────────────────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 82 | # ── FUNCTIONAL: transport + dispatcher ─────────────────────────────────────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 88 | # ── FUNCTIONAL: election + replication ─────────────────────────────────────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 94 | # ── FUNCTIONAL: RaftService lifecycle ──────────────────────────────────────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 102 | # ── SCENARIO: full join-and-promote path ───────────────────────────────────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 133 | # ───────────────────────────────────────────────────────────────────────────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 135 | # ───────────────────────────────────────────────────────────────────────────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 138 | # SaltPeer non-blocking publish, TCP pool router) ────────────────────────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 148 | # join-reply, multi-minion routing across all peers ────────────────────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 158 | # ── SCENARIO: notify_peer_joined on receiver, dynamic 4th-master join ──────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 162 | # ───────────────────────────────────────────────────────────────────────────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 164 | # ───────────────────────────────────────────────────────────────────────────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 194 | # ───────────────────────────────────────────────────────────────────────────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 196 | # ───────────────────────────────────────────────────────────────────────────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 198 | # ── UNIT: per-ring SaltStorage path keying (slice 1) ──────────────────────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 211 | # ── UNIT: cluster-log SMs — registry + routing + entry dispatch ───────────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 221 | # ── UNIT: multi-ring runner fan-out wire shape (cluster_aes envelope) ─────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 224 | # ── UNIT: state-sync bank: channel + selective key_filter ─────────────────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 236 | # ── UNIT: salt_cache returner — every public function + bank layout ───────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 239 | # ── UNIT: cluster runner surface — every new operator-facing runner ───────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 242 | # ── UNIT: master.py gate sites + delegate-on-miss on routed drops ─────────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 245 | # ── FUNCTIONAL: per-ring Raft — propose helpers, lifecycle, watchdog ──────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 251 | # ── FUNCTIONAL: salt_cache returner-in-the-loop (loader + dispatch) ───────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 254 | # ── INTEGRATION: multi-ring lifecycle on isolated-FS cluster ──────────────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 257 | # ── INTEGRATION: multi-ring lifecycle on shared-FS cluster ────────────────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 260 | # ── INTEGRATION: full jobs migration round-trip (shed + collect) ──────────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 263 | # ───────────────────────────────────────────────────────────────────────────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 265 | # ───────────────────────────────────────────────────────────────────────────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 113 | # ── FUNCTIONAL: on_ready callback ──────────────────────────────────────────── |
| MEDIUM | tests/pytests/smoke-tests.txt | 119 | # ── FUNCTIONAL/INTEGRATION/SCENARIO: cluster-ready gate ────────────────────── |
| MEDIUM | tests/pytests/unit/test_event_monitor_ring_gating.py | 61 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/pytests/unit/test_event_monitor_ring_gating.py | 63 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/pytests/unit/test_event_monitor_ring_gating.py | 107 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/pytests/unit/test_event_monitor_ring_gating.py | 109 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/pytests/unit/test_event_monitor_ring_gating.py | 247 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/pytests/unit/test_event_monitor_ring_gating.py | 249 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/pytests/unit/test_master.py | 1630 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/pytests/unit/test_master.py | 1632 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/pytests/unit/test_minion_resources.py | 39 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/pytests/unit/test_minion_resources.py | 41 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/pytests/unit/test_minion_resources.py | 158 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/pytests/unit/test_minion_resources.py | 160 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/pytests/unit/test_minion_resources.py | 187 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/pytests/unit/test_minion_resources.py | 189 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/pytests/unit/test_minion_resources.py | 350 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/pytests/unit/test_minion_resources.py | 352 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/pytests/unit/test_minion_resources.py | 547 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/pytests/unit/test_minion_resources.py | 549 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/pytests/unit/test_minion_resources.py | 582 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/pytests/unit/test_minion_resources.py | 584 | # --------------------------------------------------------------------------- |
| 1344 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | noxfile.py | 0 | pytest session with zeromq transport and default crypto |
| HIGH | noxfile.py | 0 | pytest session with zeromq transport and default crypto |
| HIGH | noxfile.py | 0 | pytest session with zeromq transport and default crypto |
| HIGH | noxfile.py | 0 | pytest session with zeromq transport and default crypto |
| HIGH | noxfile.py | 0 | pytest session with zeromq transport and pycryptodome |
| HIGH | noxfile.py | 0 | pytest session with zeromq transport and pycryptodome |
| HIGH | noxfile.py | 0 | pytest session with zeromq transport and pycryptodome |
| HIGH | noxfile.py | 0 | pytest session with zeromq transport and pycryptodome |
| HIGH | tests/conftest.py | 0 | fixture which returns the salt integration files directory path. creates the directory if it does not yet exist. |
| HIGH | tests/pytests/scenarios/compat/conftest.py | 0 | fixture which returns the salt integration files directory path. creates the directory if it does not yet exist. |
| HIGH | tests/pytests/scenarios/performance/conftest.py | 0 | fixture which returns the salt integration files directory path. creates the directory if it does not yet exist. |
| HIGH | tests/conftest.py | 0 | fixture which returns the salt state tree root directory path. creates the directory if it does not yet exist. |
| HIGH | tests/pytests/scenarios/compat/conftest.py | 0 | fixture which returns the salt state tree root directory path. creates the directory if it does not yet exist. |
| HIGH | tests/pytests/scenarios/performance/conftest.py | 0 | fixture which returns the salt state tree root directory path. creates the directory if it does not yet exist. |
| HIGH | tests/unit/test_config.py | 0 | this ensures that any strings which are loaded are unicode strings |
| HIGH | tests/unit/test_config.py | 0 | this ensures that any strings which are loaded are unicode strings |
| HIGH | tests/unit/test_config.py | 0 | this ensures that any strings which are loaded are unicode strings |
| HIGH | tests/unit/utils/test_hashutils.py | 0 | ensure that this function converts the value passed to bytes before attempting to encode, avoiding a unicodeencodeerror |
| HIGH | tests/unit/utils/test_hashutils.py | 0 | ensure that this function converts the value passed to bytes before attempting to encode, avoiding a unicodeencodeerror |
| HIGH | tests/unit/utils/test_hashutils.py | 0 | ensure that this function converts the value passed to bytes before attempting to encode, avoiding a unicodeencodeerror |
| HIGH | tests/unit/utils/test_hashutils.py | 0 | ensure that this function converts the value passed to bytes before attempting to encode, avoiding a unicodeencodeerror |
| HIGH | tests/unit/utils/test_hashutils.py | 0 | ensure that this function converts the value passed to bytes before attempting to encode, avoiding a unicodeencodeerror |
| HIGH | tests/unit/utils/test_hashutils.py | 0 | ensure that this function converts the value passed to bytes before attempting to encode, avoiding a unicodeencodeerror |
| HIGH | tests/unit/utils/test_systemd.py | 0 | test with invalid context data. the context value must be a dict, so this should raise a saltinvocationerror. |
| HIGH | tests/unit/utils/test_systemd.py | 0 | test with invalid context data. the context value must be a dict, so this should raise a saltinvocationerror. |
| HIGH | tests/unit/utils/test_systemd.py | 0 | test with invalid context data. the context value must be a dict, so this should raise a saltinvocationerror. |
| HIGH | tests/unit/utils/test_systemd.py | 0 | test with invalid context data. the context value must be a dict, so this should raise a saltinvocationerror. |
| HIGH | tests/unit/utils/test_systemd.py | 0 | scopes are available in systemd>=205. make sure that this function returns the expected boolean. we do three separate un |
| HIGH | tests/unit/utils/test_systemd.py | 0 | scopes are available in systemd>=205. make sure that this function returns the expected boolean. we do three separate un |
| HIGH | tests/unit/utils/test_systemd.py | 0 | scopes are available in systemd>=205. make sure that this function returns the expected boolean. we do three separate un |
| HIGH | tests/unit/modules/test_x509.py | 0 | test private function _parse_subject(subject) it handles a missing fields :return: |
| HIGH | tests/unit/modules/test_x509.py | 0 | test private function _parse_subject(subject) it handles a missing fields :return: |
| HIGH | tests/unit/modules/test_x509.py | 0 | test private function _parse_subject(subject) it handles a missing fields :return: |
| HIGH | tests/unit/modules/test_x509.py | 0 | test private function _parse_subject(subject) it handles a missing fields :return: |
| HIGH | tests/unit/modules/test_supervisord.py | 0 | tests if it returns bool results for process status check |
| HIGH | tests/unit/modules/test_supervisord.py | 0 | tests if it returns bool results for process status check |
| HIGH | tests/unit/modules/test_supervisord.py | 0 | tests if it returns bool results for process status check |
| HIGH | tests/unit/modules/test_supervisord.py | 0 | tests if it returns bool results for process status check |
| HIGH | tests/unit/modules/test_zypperpkg.py | 0 | <?xml version='1.0'?><stream> <search-result version="0.0"><solvable-list> <solvable status="installed" name="libzypp" k |
| HIGH | tests/unit/modules/test_zypperpkg.py | 0 | <?xml version='1.0'?><stream> <search-result version="0.0"><solvable-list> <solvable status="installed" name="libzypp" k |
| HIGH | tests/unit/modules/test_zypperpkg.py | 0 | <?xml version='1.0'?><stream> <search-result version="0.0"><solvable-list> <solvable status="installed" name="libzypp" k |
| HIGH | tests/unit/modules/test_zypperpkg.py | 0 | <?xml version='1.0'?><stream> <search-result version="0.0"><solvable-list> <solvable status="installed" name="libzypp" k |
| HIGH | tests/unit/modules/test_zypperpkg.py | 0 | <?xml version='1.0'?><stream> <search-result version="0.0"><solvable-list> <solvable status="installed" name="libzypp" k |
| HIGH | tests/unit/modules/test_zypperpkg.py | 0 | <?xml version='1.0'?><stream> <search-result version="0.0"><solvable-list> <solvable status="installed" name="libzypp" k |
| HIGH | tests/unit/modules/test_network.py | 0 | test for return the inet address for a given interface |
| HIGH | tests/unit/modules/test_network.py | 0 | test for return the inet address for a given interface |
| HIGH | tests/pytests/unit/modules/test_network.py | 0 | test for return the inet address for a given interface |
| HIGH | tests/pytests/unit/modules/test_network.py | 0 | test for return the inet address for a given interface |
| HIGH | tests/unit/modules/test_napalm_probes.py | 0 | :codeauthor: :email:`anthony shaw <anthonyshaw@apache.org>` |
| HIGH | tests/unit/modules/test_napalm_yang_mod.py | 0 | :codeauthor: :email:`anthony shaw <anthonyshaw@apache.org>` |
| HIGH | tests/pytests/unit/modules/napalm/test_bgp.py | 0 | :codeauthor: :email:`anthony shaw <anthonyshaw@apache.org>` |
| HIGH | tests/pytests/unit/modules/napalm/test_ntp.py | 0 | :codeauthor: :email:`anthony shaw <anthonyshaw@apache.org>` |
| HIGH | tests/pytests/unit/modules/napalm/test_snmp.py | 0 | :codeauthor: :email:`anthony shaw <anthonyshaw@apache.org>` |
| HIGH | tests/pytests/unit/modules/napalm/test_netacl.py | 0 | :codeauthor: :email:`anthony shaw <anthonyshaw@apache.org>` |
| HIGH | tests/pytests/unit/modules/napalm/test_users.py | 0 | :codeauthor: :email:`anthony shaw <anthonyshaw@apache.org>` |
| HIGH | tests/pytests/unit/modules/napalm/test_route.py | 0 | :codeauthor: :email:`anthony shaw <anthonyshaw@apache.org>` |
| HIGH | tests/unit/modules/test_vsphere.py | 0 | tests commandexecutionerror is raised when esxi_hosts is provided, but is not a list. |
| HIGH | tests/unit/modules/test_vsphere.py | 0 | tests commandexecutionerror is raised when esxi_hosts is provided, but is not a list. |
| HIGH | tests/unit/modules/test_vsphere.py | 0 | tests commandexecutionerror is raised when esxi_hosts is provided, but is not a list. |
| HIGH | tests/unit/modules/test_vsphere.py | 0 | tests commandexecutionerror is raised when esxi_hosts is provided, but is not a list. |
| 767 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | setup.py | 197 | |
| LOW | setup.py | 896 | |
| LOW | setup.py | 1043 | |
| LOW | noxfile.py | 133 | |
| LOW | noxfile.py | 196 | |
| LOW | noxfile.py | 333 | |
| LOW | noxfile.py | 414 | |
| LOW | noxfile.py | 1080 | |
| LOW | noxfile.py | 1251 | |
| LOW | noxfile.py | 1804 | |
| LOW | tools/release.py | 43 | |
| LOW | tools/release.py | 207 | |
| LOW | tools/gh.py | 37 | |
| LOW | tools/ci.py | 77 | |
| LOW | tools/ci.py | 205 | |
| LOW | tools/ci.py | 446 | |
| LOW | tools/ci.py | 580 | |
| LOW | tools/ci.py | 665 | |
| LOW | tools/ci.py | 766 | |
| LOW | tools/container.py | 43 | |
| LOW | tools/changelog.py | 97 | |
| LOW | tools/changelog.py | 148 | |
| LOW | tools/testsuite/container_test.py | 312 | |
| LOW | tools/testsuite/ci_failure.py | 186 | |
| LOW | tools/testsuite/ci_failure.py | 311 | |
| LOW | tools/testsuite/ci_failure.py | 420 | |
| LOW | tools/testsuite/download.py | 271 | |
| LOW | tools/utils/gh.py | 269 | |
| LOW | tools/utils/gh.py | 347 | |
| LOW | tools/utils/__init__.py | 343 | |
| LOW | tools/utils/__init__.py | 361 | |
| LOW | tools/utils/__init__.py | 411 | |
| LOW | tools/precommit/docs.py | 62 | |
| LOW | tools/precommit/docs.py | 255 | |
| LOW | tools/precommit/filemap.py | 41 | |
| LOW | tools/precommit/docstrings.py | 852 | |
| LOW | tools/precommit/docstrings.py | 1140 | |
| LOW | tools/precommit/loader.py | 30 | |
| LOW | tools/precommit/workflows.py | 105 | |
| LOW | tools/pkg/build.py | 36 | |
| LOW | tools/pkg/build.py | 92 | |
| LOW | tools/pkg/build.py | 929 | |
| LOW | tools/pkg/__init__.py | 111 | |
| LOW | tools/pkg/__init__.py | 235 | |
| LOW | tools/pkg/__init__.py | 343 | |
| LOW | tools/pkg/__init__.py | 55 | |
| LOW | tools/pkg/salt_build_backend.py | 65 | |
| LOW | tests/conftest.py | 105 | |
| LOW | tests/conftest.py | 533 | |
| LOW | tests/conftest.py | 1633 | |
| LOW | tests/eventlisten.py | 105 | |
| LOW | tests/salt-tcpdump.py | 296 | |
| LOW | tests/salt-tcpdump.py | 350 | |
| LOW | tests/salt-tcpdump.py | 271 | |
| LOW | tests/buildpackage.py | 64 | |
| LOW | tests/buildpackage.py | 232 | |
| LOW | tests/minionswarm.py | 258 | |
| LOW | tests/committer_parser.py | 45 | |
| LOW | tests/unit/test_loader.py | 1374 | |
| LOW | tests/unit/test_mock.py | 35 | |
| 1965 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tools/release.py | 24 | # Define the command group |
| MEDIUM | tools/gh.py | 21 | # Define the command group |
| MEDIUM | tools/ci.py | 33 | # Define the command group |
| MEDIUM | tools/docs.py | 21 | # Define the command group |
| MEDIUM | tools/changelog.py | 23 | # Define the command group |
| MEDIUM | tools/testsuite/container_test.py | 18 | # Define the command group |
| MEDIUM | tools/testsuite/ci_failure.py | 20 | # Define the command group |
| MEDIUM | tools/testsuite/download.py | 29 | # Define the command group |
| MEDIUM | tools/testsuite/__init__.py | 20 | # Define the command group |
| MEDIUM | tools/testsuite/pytest.py | 19 | # Define the command group |
| MEDIUM | tools/precommit/__init__.py | 9 | # Define the command group |
| MEDIUM | tools/precommit/changelog.py | 33 | # Define the command group |
| MEDIUM | tools/precommit/workflows.py | 31 | # Define the command group |
| MEDIUM | tools/pkg/build.py | 197 | # Define the command group |
| MEDIUM | tools/pkg/__init__.py | 28 | # Define the command group |
| MEDIUM | tests/saltsh.py | 62 | # Create the Salt __opts__ variable |
| MEDIUM | tests/conftest.py | 167 | # Define the pytest plugins we rely on |
| MEDIUM | tests/eventlisten.sh | 53 | # Create the event tags to listen for. |
| MEDIUM | tests/unit/utils/test_process.py | 186 | # Create a pool with no workers and 1 queue size |
| MEDIUM | tests/unit/modules/test_win_system.py | 637 | # Create a mock processor class that does not have the |
| MEDIUM | tests/integration/cloud/test_cloud.py | 49 | # Create the VM using salt.cloud.CloudClient.create() instead of calling salt-cloud |
| MEDIUM | tests/integration/cloud/helpers/cloud_test_base.py | 158 | # Create the cloud instance name to be used throughout the tests |
| MEDIUM | tests/integration/cloud/helpers/virtualbox.py | 11 | # Create the cloud instance name to be used throughout the tests |
| MEDIUM | tests/integration/states/test_ssh_auth.py | 83 | # Create the keyfile that we expect to get back on the state call |
| MEDIUM | tests/integration/states/test_ssh_auth.py | 89 | # Create a bogus key file on base environment |
| MEDIUM | tests/integration/states/test_git.py | 110 | # Create a URL to clone |
| MEDIUM | tests/integration/states/test_cmd.py | 83 | # Create the testfile and release the handle |
| MEDIUM | tests/integration/states/test_cmd.py | 91 | # Create the testfile and release the handle |
| MEDIUM | tests/integration/modules/test_config.py | 42 | # This function is generally only used with cross calls, the yaml |
| MEDIUM | tests/integration/client/test_standard.py | 150 | # Create a minion key, but do not start the "fake" minion. This mimics |
| MEDIUM | tests/support/mixins.py | 369 | # Create the class instance |
| MEDIUM | tests/support/win_installer.py | 33 | # Create a class so we can define how to handle the starttag |
| MEDIUM | tests/support/unit.py | 134 | # This class is not defined in the module being tested? Carry on... |
| MEDIUM | tests/support/unit.py | 137 | # This class is not a subclass of TestCase, carry on |
| MEDIUM | tests/support/pytest/transport_ssl.py | 207 | # Create a persistent temp directory that won't be cleaned up mid-session |
| MEDIUM | tests/pytests/unit/test_minion.py | 547 | # Create a simple test that just verifies the queue processing method exists |
| MEDIUM | tests/pytests/unit/test_minion.py | 565 | # Create a simple test that just verifies the method exists and can be called |
| MEDIUM | tests/pytests/unit/test_minion.py | 1705 | # Create a MinionManager instance with a mock minion |
| MEDIUM | tests/pytests/unit/test_minion.py | 1780 | # Create a Tornado IOLoop |
| MEDIUM | tests/pytests/unit/fileclient/test_fileclient_cache.py | 104 | # Create the CACHE_ROOT |
| MEDIUM | tests/pytests/unit/utils/test_files.py | 118 | # Create the file structures in both src and dest dirs |
| MEDIUM | tests/pytests/unit/utils/test_nxos.py | 20 | # Create a mock response object |
| MEDIUM | tests/pytests/unit/utils/test_nxos.py | 57 | # Create a mock response object |
| MEDIUM | tests/pytests/unit/utils/test_mmap_cache_errors.py | 98 | # Create a file with unexpected size |
| MEDIUM | tests/pytests/unit/utils/test_mmap_cache_segments.py | 319 | # Create a gap: remove seg 1, add a seg 2 (simulates corruption) |
| MEDIUM | …sts/pytests/unit/utils/jinja/test_salt_cache_loader.py | 111 | # Create a mock file client and attach it to the loader |
| MEDIUM | tests/pytests/unit/loader/test_grains_cleanup.py | 87 | # Create a loader to get some module references |
| MEDIUM | tests/pytests/unit/loader/test_grains_cleanup.py | 185 | # Create a loader |
| MEDIUM | …ts/pytests/unit/modules/win_lgpo/test_admx_policies.py | 136 | # Create a bogus ADML file in PolicyDefinitions directory |
| MEDIUM | tests/pytests/unit/client/ssh/wrapper/test_cp.py | 222 | # Create the CACHE_ROOT |
| MEDIUM | tests/pytests/integration/cli/test_matcher.py | 388 | # Create a minion key, but do not start the "fake" minion. This mimics a |
| MEDIUM | …ts/pytests/integration/cli/test_salt_call_ownership.py | 16 | # Create a wrapper script for salt-call |
| MEDIUM | tests/pytests/integration/cli/test_salt_pip_user.py | 15 | # Create a wrapper script for salt-pip |
| MEDIUM | tests/pytests/integration/cli/test_salt_pip_user.py | 63 | # Create a config file that sets 'user' to the current non-root user |
| MEDIUM | tests/pytests/integration/minion/test_process_name.py | 36 | # Create a fresh master for this test |
| MEDIUM | tests/pytests/integration/minion/test_process_name.py | 42 | # Create a fresh minion with multiprocessing=False |
| MEDIUM | tests/pytests/integration/minion/test_process_name.py | 93 | # Create a fresh master for this test |
| MEDIUM | tests/pytests/integration/minion/test_process_name.py | 99 | # Create a fresh minion with multiprocessing=True |
| MEDIUM | tests/pytests/integration/minion/test_process_name.py | 149 | # Create a fresh master for this test |
| MEDIUM | tests/pytests/integration/minion/test_process_name.py | 155 | # Create a fresh minion |
| 390 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/ci.py | 54 | except Exception as exc: |
| LOW | tools/ci.py | 106 | except Exception as exc: |
| LOW | tools/ci.py | 219 | except Exception as exc: |
| LOW | tools/ci.py | 402 | except Exception as exc: |
| LOW | tools/ci.py | 475 | except Exception as exc: |
| LOW | tools/ci.py | 590 | except Exception as exc: |
| LOW | tools/ci.py | 792 | except Exception as exc: |
| LOW | tools/precommit/docs.py | 236 | except Exception as exc: # pylint: disable=broad-except |
| LOW | tools/pkg/build.py | 163 | except Exception: |
| LOW | tools/pkg/build.py | 1115 | except Exception as e: |
| LOW | tools/pkg/__init__.py | 177 | except Exception as exc: |
| MEDIUM | tests/conftest.py | 90 | def wrapper(pid, timeout=None): |
| LOW | tests/conftest.py | 491 | except Exception as err: # pylint: disable=broad-except |
| LOW | tests/unit/utils/test_win_system.py | 10 | except Exception as exc: # pylint: disable=broad-except |
| LOW | tests/unit/utils/test_vt.py | 134 | except Exception as exc: # pylint: disable=broad-except |
| LOW | tests/unit/utils/test_vt.py | 156 | except Exception as exc: # pylint: disable=broad-except |
| LOW | tests/unit/utils/test_process.py | 463 | except Exception: # pylint: disable=broad-except |
| LOW | tests/unit/utils/test_process.py | 469 | except Exception: # pylint: disable=broad-except |
| LOW | tests/unit/utils/test_process.py | 491 | except Exception: # pylint: disable=broad-except |
| LOW | tests/unit/utils/test_process.py | 497 | except Exception: # pylint: disable=broad-except |
| LOW | tests/unit/utils/test_process.py | 518 | except Exception: # pylint: disable=broad-except |
| LOW | tests/unit/utils/test_win_service.py | 7 | except Exception as exc: # pylint: disable=broad-except |
| LOW | tests/integration/output/test_output.py | 117 | except Exception: # pylint: disable=broad-except |
| LOW | tests/integration/utils/test_win_runas.py | 142 | except Exception as exc: # pylint: disable=broad-except |
| LOW | tests/integration/utils/test_win_runas.py | 249 | except Exception as exc: # pylint: disable=broad-except |
| LOW | tests/integration/utils/test_win_runas.py | 253 | except Exception as exc: # pylint: disable=broad-except |
| LOW | tests/integration/pillar/test_git_pillar.py | 96 | except Exception: # pylint: disable=broad-except |
| LOW | tests/integration/pillar/test_git_pillar.py | 101 | except Exception: # pylint: disable=broad-except |
| LOW | tests/integration/netapi/rest_tornado/test_app.py | 258 | except Exception as exc: # pylint: disable=broad-except |
| LOW | tests/integration/cloud/helpers/virtualbox.py | 35 | except Exception as e: # pylint: disable=broad-except |
| MEDIUM | tests/integration/cloud/helpers/virtualbox.py | 32 | def assertMachineExists(self, name, msg=None): |
| LOW | tests/integration/modules/test_mysql.py | 15 | except Exception: # pylint: disable=broad-except |
| LOW | tests/integration/modules/test_ssh.py | 29 | except Exception: # pylint: disable=broad-except |
| LOW | tests/support/mixins.py | 613 | except Exception as exc: # pylint: disable=broad-except |
| LOW | tests/support/unit.py | 260 | except Exception: # pylint: disable=broad-except |
| LOW | tests/support/case.py | 871 | except Exception: # pylint: disable=broad-except |
| LOW | tests/support/helpers.py | 232 | except Exception as exc: # pylint: disable=broad-except |
| LOW | tests/support/helpers.py | 251 | except Exception as exc: # pylint: disable=broad-except |
| LOW | tests/support/helpers.py | 350 | except Exception: # pylint: disable=broad-except |
| LOW | tests/support/helpers.py | 354 | except Exception: # pylint: disable=broad-except |
| LOW | tests/support/helpers.py | 741 | except Exception as exc: # pylint: disable=W0703 |
| LOW | tests/support/helpers.py | 835 | except Exception as exc: # pylint: disable=W0703 |
| LOW | tests/support/helpers.py | 959 | except Exception as exc: # pylint: disable=W0703 |
| LOW | tests/support/helpers.py | 1259 | except Exception as exc: # pylint: disable=broad-except |
| LOW | tests/support/pytest/transport.py | 160 | except Exception: # pylint: disable=broad-except |
| MEDIUM | tests/support/pytest/transport.py | 157 | def _run(self, loop): |
| LOW | tests/support/pytest/loader.py | 116 | except Exception as exc: # pylint: disable=broad-except |
| LOW | tests/support/pytest/helpers.py | 256 | except Exception: # pylint: disable=broad-except |
| LOW | tests/support/pytest/helpers.py | 367 | except Exception: # pylint: disable=broad-except |
| LOW | tests/support/pytest/helpers.py | 386 | except Exception: # pylint: disable=broad-except |
| LOW | tests/support/pytest/helpers.py | 399 | except Exception: # pylint: disable=broad-except |
| MEDIUM | tests/pytests/unit/test_master.py | 1824 | def _register(aes, minion_id, resource_id, grain_value): |
| LOW | tests/pytests/unit/test_master.py | 1836 | except Exception as exc: # pylint: disable=broad-except |
| MEDIUM | tests/pytests/unit/test_minion_resources.py | 232 | def run_job(name, target): |
| LOW | tests/pytests/unit/test_minion_resources.py | 242 | except Exception as exc: # pylint: disable=broad-except |
| LOW | tests/pytests/unit/test_log.py | 35 | except Exception as err: # pylint: disable=broad-except |
| LOW | tests/pytests/unit/test_log.py | 52 | except Exception as err: # pylint: disable=broad-except |
| LOW | tests/pytests/unit/cluster/test_ring.py | 430 | except Exception as exc: # pylint: disable=broad-except |
| LOW | tests/pytests/unit/cluster/test_ring.py | 453 | except Exception as exc: # pylint: disable=broad-except |
| LOW | tests/pytests/unit/transport/test_zeromq.py | 1678 | except Exception as exc: # pylint: disable=broad-except |
| 1024 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | tools/testsuite/container_test.py | 170 | "mkdir -p /root/.local/relenv && ln -sf /root/.cache/relenv/toolchains /root/.local/relenv/toolchain", |
| HIGH | tools/testsuite/container_test.py | 183 | f"test -f /root/.local/relenv/toolchain/{arch}-linux-gnu/bin/{arch}-linux-gnu-gcc && echo 'OK' || echo ' |
| HIGH | tests/unit/utils/test_json.py | 26 | '{"None": null, "True": false, "dict": {"subdict": {"спам": "яйца"}}, "float":' |
| HIGH | tests/unit/utils/test_json.py | 34 | "None": null, |
| HIGH | tests/pytests/unit/test_pool_name_validation.py | 48 | "!@#$%^&*()", # NOW ALLOWED - special chars (except / \ null) |
| HIGH | tests/pytests/unit/renderers/test_yamlex.py | 60 | placeholder: {foo: !aggregate {bar: null}} |
| HIGH | tests/pytests/unit/fileclient/test_fileclient.py | 125 | # Authenticate must return true |
| HIGH | tests/pytests/unit/utils/test_yamldumper.py | 110 | exp_yaml = "{foo: null}\n" |
| HIGH | tests/pytests/unit/serializers/test_serializers.py | 220 | placeholder: !aggregate {bar: null} |
| HIGH | tests/pytests/unit/serializers/test_serializers.py | 232 | placeholder: {foo: !aggregate {bar: null}} |
| HIGH | tests/pytests/unit/serializers/test_serializers.py | 247 | placeholder: {!aggregate foo: {bar: null}} |
| HIGH | tests/pytests/unit/serializers/test_serializers.py | 263 | placeholder: {!aggregate foo: {bar: null}} |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 77 | "auto_updates": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 78 | "bundle_short_version": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 79 | "bundle_version": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 80 | "caveats": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 81 | "conflicts_with": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 82 | "container": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 85 | "deprecation_date": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 86 | "deprecation_reason": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 88 | "disable_date": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 89 | "disable_reason": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 141 | "caveats": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 142 | "conflicts_with": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 143 | "container": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 152 | "deprecation_date": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 153 | "deprecation_reason": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 155 | "disable_date": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 156 | "disable_reason": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 230 | "caveats": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 237 | "deprecation_date": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 238 | "deprecation_reason": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 240 | "disable_date": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 241 | "disable_reason": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 393 | "deprecation_date": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 394 | "deprecation_reason": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 396 | "disable_date": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 397 | "disable_reason": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 848 | "full_token": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 281 | "keg_only_reason": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 292 | "pour_bottle_only_if": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 300 | "service": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 312 | "revision": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 313 | "tag": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 378 | "caveats": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 478 | "keg_only_reason": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 489 | "pour_bottle_only_if": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 497 | "service": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 509 | "revision": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 510 | "tag": null, |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 1417 | "tap": null, |
| HIGH | tests/pytests/unit/modules/test_minion.py | 112 | == "systemctl is-active salt-minion || systemctl start salt-minion" |
| HIGH | tests/pytests/unit/modules/test_cp.py | 114 | assert cp.push(path) == ret |
| HIGH | tests/pytests/unit/modules/test_cp.py | 151 | response = cp.push(filename) |
| HIGH | tests/pytests/unit/modules/test_debian_service.py | 156 | "insserv foo && update-rc.d foo enable", python_shell=True |
| HIGH | tests/pytests/unit/modules/test_grains.py | 649 | res = grainsmod.equals("a", "aval") |
| HIGH | tests/pytests/unit/modules/test_grains.py | 652 | res = grainsmod.equals("b:z", "zval") |
| HIGH | tests/pytests/unit/modules/test_grains.py | 654 | res = grainsmod.equals("b:z", "aval") |
| HIGH | tests/pytests/unit/modules/test_win_service.py | 257 | "/c ping -n 3 127.0.0.1 && net stop salt-minion && " |
| HIGH | tests/pytests/unit/modules/test_cmdmod.py | 1229 | 'data { if ($null) { "To get help for this cmdlet, type Get-Help New-Dictionary." } }', |
| 73 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | salt/ext/ipaddress.py | 52 | Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP |
| HIGH | salt/ext/ipaddress.py | 82 | Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP |
| HIGH | salt/ext/ipaddress.py | 112 | Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP |
| HIGH | salt/ext/ipaddress.py | 147 | Represent an address as 4 packed bytes in network (big-endian) order. Args: address: An integer representat |
| HIGH | salt/ext/ipaddress.py | 331 | Collapse a list of IP objects. Example: collapse_addresses([IPv4Network('192.0.2.0/25'), |
| HIGH | salt/ext/ipaddress.py | 472 | Return prefix length from the bitwise netmask. Args: ip_int: An integer, the netmask in expanded bi |
| HIGH | salt/ext/ipaddress.py | 502 | Return prefix length from a numeric string Args: prefixlen_str: The string to be converted |
| HIGH | salt/ext/ipaddress.py | 527 | Turn a netmask/hostmask string into a prefix length Args: ip_str: The netmask/hostmask to be conver |
| HIGH | salt/ext/ipaddress.py | 844 | Remove an address from a larger block. For example: addr1 = ip_network('192.0.2.0/28') |
| HIGH | salt/ext/ipaddress.py | 919 | Compare two IP objects. This is only concerned about the comparison of the integer representation of th |
| HIGH | salt/ext/ipaddress.py | 977 | The subnets which join to make the current subnet. In the case that self contains only one IP (self._pr |
| HIGH | salt/ext/ipaddress.py | 1030 | The supernet containing the current network. Args: prefixlen_diff: An integer, the amount the prefi |
| HIGH | salt/ext/ipaddress.py | 1231 | Turn the given IP string into an integer for comparison. Args: ip_str: A string, the IP ip_str. |
| HIGH | salt/ext/ipaddress.py | 1257 | Convert a decimal octet into an integer. Args: octet_str: A string, the number to parse. R |
| HIGH | salt/ext/ipaddress.py | 1670 | Turn an IPv6 ip_str into an integer. Args: ip_str: A string, the IPv6 ip_str. Returns: |
| HIGH | salt/ext/ipaddress.py | 1774 | Convert an IPv6 hextet string into an integer. Args: hextet_str: A string, the number to parse. |
| HIGH | salt/ext/ipaddress.py | 1848 | Turns a 128-bit integer into hexadecimal notation. Args: ip_int: An integer, the IP address. |
| HIGH | salt/utils/win_lgpo_netsh.py | 189 | Get the firewall property from the specified profile in the specified store as returned by ``netsh advfirewall` |
| HIGH | salt/utils/win_lgpo_netsh.py | 293 | Gets all the properties for the specified profile in the specified store Args: profile (str): |
| HIGH | salt/utils/win_lgpo_netsh.py | 352 | Set the firewall inbound/outbound settings for the specified profile and store Args: profile (str |
| HIGH | salt/utils/win_lgpo_netsh.py | 468 | Configure logging settings for the Windows firewall. Args: profile (str): The firewall pr |
| HIGH | salt/utils/win_lgpo_netsh.py | 595 | Configure firewall settings. Args: profile (str): The firewall profile to configure. Vali |
| HIGH | salt/utils/win_lgpo_netsh.py | 689 | Enable or disable the firewall profile. Args: profile (str): The firewall profile to conf |
| HIGH | salt/utils/files.py | 944 | Detect a file's encoding using the following: - Check for Byte Order Marks (BOM) - Check for UTF-8 Markers |
| HIGH | salt/utils/win_chcp.py | 34 | Gets or sets the codepage of the shell. Args: page_id (str, int): A number representing t |
| HIGH | salt/utils/win_chcp.py | 82 | Get the currently set code page on windows Args: raise_error (bool): ``True`` will raise |
| HIGH | salt/utils/win_chcp.py | 110 | Set the code page on windows Args: page_id (str, int): A number representing the codepage |
| HIGH | salt/utils/cloud.py | 2580 | Helper function that waits for an IP address for a specific maximum amount of time. :param update_callback |
| HIGH | salt/utils/win_pdh.py | 133 | Makes a fully resolved counter path. Counter names are formatted like this: ``\Processor(*)\% |
| HIGH | salt/utils/win_lgpo_reg.py | 124 | Helper function to actually write the data to a Registry.pol file Also updates/edits the gpt.ini file to inclu |
| HIGH | salt/utils/win_lgpo_reg.py | 278 | Convert the data obtained from a Registry.pol file to a dictionary. Args: policy_data (bytes): The dat |
| HIGH | salt/utils/win_pwsh.py | 31 | Execute the PowerShell command and return the data as a dictionary .. versionadded:: 3006.9 Args: |
| HIGH | salt/utils/win_pwsh.py | 210 | Run a PowerShell command and return the result as a parsed Python object. Unless the command already c |
| HIGH | salt/utils/win_pwsh.py | 263 | Run a PowerShell command and raise on any error. Identical to :meth:`run` except that a ``CommandExecu |
| HIGH | salt/utils/requisite.py | 285 | Topological sort with lexicographical ordering via custom key function. Uses Kahn's algorithm with a p |
| HIGH | salt/utils/win_lgpo_auditpol.py | 647 | Get the current configuration for all audit settings in the given category. Reads effective policy via ``Audit |
| HIGH | salt/utils/win_lgpo_auditpol.py | 692 | Get the current configuration for a single subcategory. Args: name (str): English subcategory name (ma |
| HIGH | salt/utils/win_lgpo_auditpol.py | 727 | Set the auditing bitmask for one subcategory. Enables ``SeSecurityPrivilege`` on the current process token for |
| HIGH | salt/utils/mac_utils.py | 271 | Run a launchctl command and raise an error if it fails Args: additional args are passed to launchctl s |
| HIGH | salt/utils/win_dacl.py | 2066 | Copy the security descriptor of the Source to the Target. You can specify a specific portion of the security de |
| HIGH | salt/utils/win_dacl.py | 2662 | Set permissions for the given path .. versionadded:: 2019.2.0 Args: obj_name (str): |
| HIGH | salt/utils/win_runas.py | 232 | Run ``cmd`` as ``username`` using a logon token and ``CreateProcessWithTokenW``. The minion must be able t |
| HIGH | salt/utils/win_runas.py | 539 | Run ``cmd`` as ``username`` using ``CreateProcessWithLogonW`` (with profile). Used when :func:`runas` cannot u |
| HIGH | salt/states/file.py | 1535 | Helper function for creating directories when the ``makedirs`` option is set to ``True``. Handles Unix and Wind |
| HIGH | salt/states/win_appx.py | 33 | Removes Microsoft Store packages from the system. If the package is part of a bundle, the entire bundle will be |
| HIGH | salt/modules/win_dsc.py | 496 | Remove the current DSC Configuration. Removes current, pending, and previous dsc configurations. .. versio |
| HIGH | salt/modules/win_snmp.py | 379 | Manage the SNMP accepted community names and their permissions. .. note:: Settings managed by Group Po |
| HIGH | salt/modules/win_file.py | 719 | Chown a file, pass the file the desired user and group Under Windows, the group parameter will be ignored. |
| HIGH | salt/modules/win_file.py | 789 | Change the group of a file Under Windows, this will set the rarely used primary group of a file. This gene |
| HIGH | salt/modules/win_file.py | 1055 | .. versionadded:: 3005 Get the version of a file. .. note:: Not all files have version informatio |
| HIGH | salt/modules/win_file.py | 1095 | .. versionadded:: 3005 Get file details for a file. Similar to what's in the details tab on the file prope |
| HIGH | salt/modules/win_file.py | 1459 | Create a symbolic link to a file This is only supported with Windows Vista or later and must be executed by |
| HIGH | salt/modules/win_file.py | 1621 | Ensure that the directory is available and permissions are set. Args: path (str): The ful |
| HIGH | salt/modules/win_file.py | 1731 | Ensure that the parent directory containing this path is available. Args: path (str): Th |
| HIGH | salt/modules/win_file.py | 1865 | Set owner and permissions for each directory created. Args: path (str): The full path to |
| HIGH | salt/modules/win_file.py | 2071 | Set permissions for the given path Args: path (str): The full path to the directory. |
| HIGH | salt/modules/win_firewall.py | 65 | Disable firewall profile Args: profile (:obj:`str`, optional): The name of the profile to |
| HIGH | salt/modules/win_firewall.py | 101 | .. versionadded:: 2015.5.0 Enable firewall profile Args: profile (:obj:`str`, optional): |
| HIGH | salt/modules/win_firewall.py | 138 | .. versionadded:: 2015.5.0 Display all matching rules as specified by name Args: name (:obj:`str |
| HIGH | salt/modules/win_firewall.py | 170 | .. versionadded:: 2015.5.0 Add a new inbound or outbound rule to the firewall policy Args: name |
| 47 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | setup.py | 108 | |
| LOW | setup.py | 109 | |
| LOW | setup.py | 1108 | |
| LOW | tools/release.py | 6 | |
| LOW | tools/gh.py | 6 | |
| LOW | tools/ci.py | 6 | |
| LOW | tools/__init__.py | 1 | |
| LOW | tools/__init__.py | 6 | |
| LOW | tools/docs.py | 6 | |
| LOW | tools/changelog.py | 6 | |
| LOW | tools/testsuite/container_test.py | 6 | |
| LOW | tools/testsuite/ci_failure.py | 6 | |
| LOW | tools/testsuite/download.py | 6 | |
| LOW | tools/testsuite/__init__.py | 6 | |
| LOW | tools/testsuite/pytest.py | 6 | |
| LOW | tools/utils/gh.py | 2 | |
| LOW | tools/utils/__init__.py | 2 | |
| LOW | tools/utils/repo.py | 2 | |
| LOW | tools/precommit/docs.py | 6 | |
| LOW | tools/precommit/docstrings.py | 8 | |
| LOW | tools/precommit/changelog.py | 6 | |
| LOW | tools/precommit/workflows.py | 6 | |
| LOW | tools/pkg/build.py | 6 | |
| LOW | tools/pkg/__init__.py | 6 | |
| LOW | tests/saltsh.py | 28 | |
| LOW | tests/conftest.py | 144 | |
| LOW | tests/unit/utils/test_dateutils.py | 14 | |
| LOW | tests/unit/utils/test_schema.py | 25 | |
| LOW | tests/unit/utils/test_schema.py | 32 | |
| LOW | tests/unit/states/test_x509.py | 14 | |
| LOW | tests/unit/modules/test_win_groupadd.py | 16 | |
| LOW | tests/unit/modules/test_win_groupadd.py | 18 | |
| LOW | tests/unit/modules/test_vsphere.py | 24 | |
| LOW | tests/unit/modules/test_vsphere.py | 24 | |
| LOW | tests/unit/modules/test_vsphere.py | 31 | |
| LOW | tests/integration/pillar/test_git_pillar.py | 82 | |
| LOW | tests/integration/pillar/test_git_pillar.py | 82 | |
| LOW | tests/integration/pillar/test_git_pillar.py | 82 | |
| LOW | tests/integration/states/test_x509.py | 17 | |
| LOW | tests/integration/modules/test_mysql.py | 14 | |
| LOW | tests/integration/modules/test_timezone.py | 15 | |
| LOW | tests/support/unit.py | 33 | |
| LOW | tests/support/unit.py | 37 | |
| LOW | tests/support/unit.py | 37 | |
| LOW | tests/support/unit.py | 37 | |
| LOW | tests/support/unit.py | 38 | |
| LOW | tests/support/unit.py | 38 | |
| LOW | tests/support/sshd_runtime.py | 13 | |
| LOW | tests/support/mock.py | 21 | |
| LOW | tests/support/mock.py | 27 | |
| LOW | tests/support/mock.py | 27 | |
| LOW | tests/support/mock.py | 27 | |
| LOW | tests/support/mock.py | 27 | |
| LOW | tests/support/mock.py | 27 | |
| LOW | tests/support/mock.py | 27 | |
| LOW | tests/support/mock.py | 27 | |
| LOW | tests/support/mock.py | 27 | |
| LOW | tests/support/mock.py | 27 | |
| LOW | tests/support/mock.py | 27 | |
| LOW | tests/support/mock.py | 27 | |
| 246 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/pkg/build.py | 661 | "-C", |
| LOW | tests/conftest.py | 1721 | # Let's try a direct match between the passed file and possible test modules |
| LOW | tests/smoke-tests-before-commit.txt | 1 | # Commands to run locally before pushing Salt changes that touch integration tests |
| LOW | tests/unit/ext/test_ipaddress.py | 1 | # Copyright 2007 Google Inc. |
| LOW | tests/unit/ext/test_ipaddress.py | 61 | SMALLEST = _SMALLEST() |
| LOW | tests/unit/utils/test_process.py | 381 | |
| LOW | tests/unit/netapi/rest_tornado/test_saltnado.py | 1001 | ), patch.dict( |
| LOW | tests/unit/netapi/rest_tornado/test_saltnado.py | 1041 | # be testing that when minions are added within job_not_running, that it |
| LOW | tests/unit/modules/test_x509.py | 1 | # |
| LOW | tests/unit/modules/test_win_status.py | 161 | # call_count = 5 |
| LOW | tests/unit/modules/test_nxos_upgrade.py | 1 | """ |
| LOW | tests/unit/modules/nxos/nxos_n5k.py | 1 | """ |
| LOW | tests/unit/modules/nxos/nxos_n7k.py | 1 | """ |
| LOW | tests/unit/modules/nxos/nxos_n3k.py | 1 | """ |
| LOW | tests/unit/modules/nxos/nxos_n93klxc.py | 1 | """ |
| LOW | tests/unit/modules/nxos/nxos_platform.py | 1 | """ |
| LOW | tests/unit/modules/nxos/nxos_n36k.py | 1 | """ |
| LOW | tests/unit/modules/nxos/nxos_n95k.py | 1 | """ |
| LOW | tests/unit/modules/nxos/nxos_n93k.py | 1 | """ |
| LOW | tests/integration/modules/test_mysql.py | 1061 | ) |
| LOW | tests/integration/modules/test_mysql.py | 1161 | # query='SELECT 1', |
| LOW | tests/integration/modules/test_mysql.py | 1201 | # saltenv={"LC_ALL": "en_US.utf8"} |
| LOW | tests/support/unit.py | 161 | |
| LOW | tests/support/pkg.py | 1001 | if stop_services: |
| LOW | tests/support/pkg.py | 1281 | f"{root_url}/saltproject-deb/ stable main" |
| LOW | tests/support/pkg.py | 1321 | # # TODO: But maybe that's done elsewhere, hopefully in self.salt_pkgs |
| LOW | tests/pytests/smoke-tests.txt | 1 | # Salt cluster + mmap_cache smoke test selection. |
| LOW | tests/pytests/unit/transport/test_tcp.py | 361 | ) |
| LOW | tests/pytests/unit/transport/test_tcp.py | 381 | # |
| LOW | tests/pytests/unit/transport/test_tcp.py | 401 | # # assert the timeout callback was created |
| LOW | tests/pytests/unit/transport/test_tcp.py | 421 | # |
| LOW | tests/pytests/unit/transport/test_tcp.py | 441 | # |
| LOW | tests/pytests/unit/output/test_nested.py | 41 | # - two |
| LOW | tests/pytests/unit/utils/test_data.py | 121 | # so this should return False. |
| LOW | …sts/pytests/unit/fileserver/gitfs/test_gitfs_config.py | 141 | |
| LOW | tests/pytests/unit/modules/test_yumpkg.py | 1721 | assert yumpkg.install("spongebob") == {} |
| LOW | tests/pytests/unit/beacons/test_network_settings.py | 161 | # |
| LOW | tests/pytests/unit/beacons/test_network_settings.py | 181 | # |
| LOW | tests/pytests/integration/cluster/conftest.py | 21 | # attributed failures to slow runners. Reproducing them with stress-ng on |
| LOW | …sts/pytests/integration/cluster/test_ring_lifecycle.py | 141 | # RING_REGISTRY entry. We don't have a runner that reads the |
| LOW | tests/pytests/integration/resources/conftest.py | 161 | # --------------------------------------------------------------------------- |
| LOW | tests/pytests/integration/cli/test_salt.py | 201 | # proc = subprocess.Popen( |
| LOW | tests/pytests/integration/cli/test_salt_key.py | 121 | # We can't load JSON because we print to stdout! |
| LOW | tests/pytests/integration/loader/test_ext_grains.py | 1 | import pytest |
| LOW | tests/pytests/scenarios/cluster_kind/conftest.py | 401 | {"name": "ret", "containerPort": 4506}, |
| LOW | …s/pytests/scenarios/cluster_kind/setup-in-container.sh | 1 | #!/usr/bin/env bash |
| LOW | tests/pytests/scenarios/performance/test_performance.py | 541 | |
| LOW | tests/pytests/functional/cluster/consensus/smoke.txt | 1 | # Raft consensus smoke test selection |
| LOW | tests/pytests/functional/states/file/test_keyvalue.py | 21 | #Port 22 |
| LOW | tests/pytests/functional/states/file/test_replace.py | 321 | ) |
| LOW | tests/pytests/functional/modules/test_cmdmod.py | 601 | # in 3.11 and greater Python's subprocess module will not allow abc |
| LOW | tests/pytests/functional/modules/test_cmdmod.py | 621 | # ) |
| LOW | …ests/functional/modules/state/requisites/test_mixed.py | 261 | # test Infinite recursion prereq+require #8785 v3 |
| LOW | …ytests/functional/modules/state/requisites/test_use.py | 41 | - cmd: E |
| LOW | …ytests/functional/modules/state/requisites/test_use.py | 221 | # cmd.run: |
| LOW | …sts/functional/modules/state/requisites/test_prereq.py | 261 | Ensure that the order is right. |
| LOW | …sts/functional/modules/state/requisites/test_prereq.py | 421 | # B --+ | 2 |
| LOW | …ts/functional/modules/state/requisites/test_require.py | 61 | |
| LOW | requirements/constraints.txt | 1 | # IMPORTANT: The versions here must be compatible with the environment where |
| LOW | requirements/windows.txt | 1 | # Windows source distribution requirements |
| 191 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/testsuite/container_test.py | 53 | # Check if docker daemon is running |
| LOW | tools/testsuite/container_test.py | 112 | # Check if container exists |
| LOW | tests/unit/modules/test_x509.py | 212 | # Check if property is the one we've added to the certificate. The |
| LOW | tests/unit/modules/test_x509.py | 252 | # Check if property is the one we've added to the certificate. The |
| LOW | tests/unit/modules/test_x509.py | 355 | # Check if property values are the ones we've added to the certificate. |
| LOW | tests/integration/modules/test_git.py | 95 | # Check if key is missing |
| LOW | tests/integration/modules/test_git.py | 909 | # Check if this new path is a worktree |
| LOW | tests/integration/modules/test_git.py | 911 | # Check if the main repo is a worktree |
| LOW | tests/integration/modules/test_git.py | 913 | # Check if a non-repo directory is a worktree |
| LOW | tests/support/unit.py | 50 | # Set SHOW_PROC to True to show |
| LOW | tests/pytests/unit/test_pool_name_edge_cases.py | 181 | # Check if resulting path would exceed Unix socket path limit (typically 108 bytes) |
| LOW | tests/pytests/unit/test_client.py | 57 | # Check if either minion1 or minion2 was targeted in the final call |
| LOW | tests/pytests/unit/states/test_pip.py | 53 | use_wheel=False, # Set False to simplify testing |
| LOW | tests/pytests/unit/modules/test_mine.py | 277 | # Check if the mine entries have been stored properly in the FakeCache. |
| LOW | tests/pytests/integration/executors/test_sudo.py | 83 | # Check if it already exists (another test might have created it) |
| LOW | tests/pytests/integration/executors/test_sudo.py | 159 | # Check if the output is 0. |
| LOW | tests/pytests/scenarios/performance/test_performance.py | 30 | # Check if image exists first |
| LOW | tests/pytests/scenarios/performance/test_performance.py | 48 | # Check if image exists first |
| LOW | tests/pytests/functional/test_pip_install.py | 121 | # Check if they are still running |
| LOW | tests/pytests/functional/channel/test_auth_downgrade.py | 310 | # Check if attack was blocked |
| LOW | tests/pytests/pkg/upgrade/systemd/conftest.py | 39 | # Check if the test has a custom salt_install_env marker |
| LOW | tests/pytests/pkg/upgrade/systemd/conftest.py | 221 | # Check if salt user exists before chowning (similar to minion_systemd fixture) |
| LOW | tests/pytests/pkg/upgrade/systemd/conftest.py | 427 | # Check if the current salt-call version supports --priv option |
| LOW | tests/pytests/pkg/upgrade/systemd/conftest.py | 501 | # Check if the current salt-call version supports --priv option |
| LOW | …/pytests/pkg/upgrade/systemd/test_install_with_user.py | 32 | # Check if --upgrade flag is present in the test config |
| LOW | …/pytests/pkg/upgrade/systemd/test_install_with_user.py | 166 | # Check if user exists |
| LOW | …/pytests/pkg/upgrade/systemd/test_install_with_user.py | 179 | # Check if the current salt-call version supports --priv option |
| LOW | tests/pytests/pkg/upgrade/systemd/test_permissions.py | 155 | # Check if the current salt-call version supports --priv option |
| LOW | agents/mcp/launch-salt-test.sh | 19 | # Set PYTHONPATH to the project root so we can import the agents package |
| LOW | salt/crypt.py | 2057 | # Check if we can skip AES encryption |
| LOW | salt/crypt.py | 2095 | # Check if data has TLS marker (was sent without AES) |
| LOW | salt/fileclient.py | 1194 | # Check if file exists on server, before creating files and |
| LOW | salt/master.py | 543 | # Check if scheduler requires lower loop interval than |
| LOW | salt/master.py | 3166 | # Check if key is configured to be auto-rejected/signed |
| LOW | salt/master.py | 3329 | # Check if the keys are the same and error out if this is the |
| LOW | salt/master.py | 4102 | # Check if 'minions' is included in returner's save_load arg_spec. |
| LOW | salt/minion.py | 665 | # Check if scheduler requires lower loop interval than |
| LOW | salt/minion.py | 1610 | # Check if file is older than 5 minutes (300 seconds) |
| LOW | salt/minion.py | 2145 | # Check if we should bypass the process_count_max check |
| LOW | salt/minion.py | 2268 | # Check if we are running in threading mode (multiprocessing=False) |
| LOW | salt/minion.py | 4609 | # Check if this candidate is blocked by any active jobs |
| LOW | salt/template.py | 184 | # Check if it starts with a shebang and not a path |
| LOW | salt/state.py | 2731 | # Check if this low chunk is paused |
| LOW | salt/cluster/consensus/raft/node.py | 1420 | # Check if we should snapshot now that commit_index advanced and entries were applied |
| LOW | salt/transport/tcp.py | 1343 | # Check if stream is still open |
| LOW | salt/transport/tls_util.py | 45 | # Check if optimization is enabled |
| LOW | salt/transport/tls_util.py | 49 | # Check if SSL is configured |
| LOW | salt/transport/tls_util.py | 55 | # Check if cert_reqs is CERT_REQUIRED |
| LOW | salt/transport/tls_util.py | 67 | # Check if peer certificate is present |
| LOW | salt/config/__init__.py | 876 | # Set this to -1 for unlimited attempts. This allows for a master to have |
| LOW | salt/config/__init__.py | 3818 | # Check if required fields are supplied in the provider config. If they |
| LOW | salt/config/__init__.py | 4117 | # Set environment to saltenv in case someone's custom module is |
| LOW | salt/config/__init__.py | 4377 | # Set environment to saltenv in case someone's custom runner is |
| LOW | salt/config/worker_pools.py | 249 | # Check if worker_pools is explicitly configured AND not empty |
| LOW | salt/utils/gzip_util.py | 88 | # Open the file and re-attempt the read |
| LOW | salt/utils/powershell.py | 88 | # Check if defaults exist, add them if they do |
| LOW | salt/utils/minions.py | 1465 | # Check if minions are allowed |
| LOW | salt/utils/thin.py | 551 | # Check if auto_detect is enabled and update dependencies |
| LOW | salt/utils/gitfs.py | 2707 | # Check if it's a valid repo |
| LOW | salt/utils/gitfs.py | 2855 | # Check if file exists and get its metadata |
| 98 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | setup.py | 683 | # If run_frame is None, just call the parent class logic |
| MEDIUM | tests/committer_parser.py | 6 | # May leverage GitHub API in the future |
| LOW | tests/unit/modules/test_network.py | 130 | # The path exists, just return it |
| MEDIUM | tests/integration/modules/test_mine.py | 173 | # less flaky. If we still see it fail we need to look for a more robust |
| MEDIUM | tests/integration/modules/test_git.py | 507 | # TODO: More robust unset testing, try to trigger all the |
| LOW | tests/pytests/unit/cluster/consensus/test_raft_node.py | 1256 | # Should not raise — just return silently |
| LOW | tests/pytests/unit/fileserver/gitfs/test_gitfs.py | 49 | # can just use the Version instances imported along with |
| LOW | …sts/pytests/unit/fileserver/gitfs/test_gitfs_config.py | 21 | # can just use the Version instances imported along with |
| MEDIUM | tests/pytests/unit/returners/test_salt_cache.py | 183 | # test harness). The "compute matched set when tgt is set" |
| LOW | tests/pytests/unit/modules/test_pip.py | 247 | # As single string (just use the first element from pkgs and editables) |
| LOW | tests/pytests/unit/modules/test_pip.py | 318 | # As single string (just use the first element from mirrors) |
| LOW | tests/pytests/unit/modules/test_pip.py | 389 | # As single string (just use the first element from find_links) |
| LOW | tests/pytests/unit/modules/test_network.py | 218 | # The path exists, just return it |
| MEDIUM | …s/integration/cluster/test_ring_lifecycle_shared_fs.py | 125 | # of tailing logs — more robust against unrelated log lines |
| MEDIUM | …scenarios/regression/test_fd_leak_task_cancellation.py | 82 | # With comprehensive task cancellation and shutdown, leak should be minimal |
| MEDIUM | tests/pytests/perf/test_cache_benchmarks.py | 78 | # already have ``__opts__`` from the live master harness (tiny mmap tables). |
| LOW | tests/pytests/functional/cache/helpers.py | 116 | # TODO: this should actually not raise. Not sure if there's a test that we can do here... or just call the code |
| MEDIUM | salt/crypt.py | 616 | # facilitate migrating to pem named off the master id instead of master.pem |
| LOW | salt/crypt.py | 1013 | # if an auth is in flight-- and not done-- just pass that back as the future to wait on |
| LOW | salt/crypt.py | 1701 | # TODO: remove, we should just return a sync wrapper of AsyncAuth |
| LOW | salt/minion.py | 3274 | # Since we are already in the child process/thread, we just return. |
| LOW | salt/renderers/pyobjects.py | 462 | # if salt_data is not True then we just return the global scope we've |
| LOW | salt/output/highstate.py | 304 | # output() is recursive, if we aren't passed a dict just return it |
| LOW | salt/output/txt.py | 36 | # For non-dictionary, non-string data, just use print |
| MEDIUM | salt/output/table_out.py | 323 | # to facilitate re-use |
| MEDIUM | salt/utils/mmap_cache.py | 17 | # harness, and various salt-call entry points do not bundle. Importing this |
| LOW | salt/utils/url.py | 185 | # No match, just return the original string |
| LOW | salt/utils/nxos.py | 219 | # Don't just return body['ins_api']['outputs']['output'] directly. |
| LOW | salt/utils/args.py | 154 | # Therefore, skip YAML loading for these cases and just return the string |
| LOW | salt/utils/gitfs.py | 1164 | # Make sure that we have a positive integer timeout, otherwise just set |
| LOW | salt/utils/gitfs.py | 3505 | # We can't just use the return value from repo.fetch() |
| LOW | salt/utils/schedule.py | 1637 | # The "splay" configuration has been already processed, just use it |
| LOW | salt/utils/xmlutil.py | 31 | # for it, so just return a single dict representing it. |
| LOW | salt/utils/optsdict.py | 1016 | # For regular dict, just use keys() |
| LOW | salt/utils/optsdict.py | 1096 | # If setting to None, just use regular assignment |
| MEDIUM | salt/utils/win_runas.py | 340 | # Get a linked user token to elevate if needed |
| MEDIUM | salt/cloud/deploy/bootstrap-salt.sh | 6422 | # leverage the windows directories since release Windows and Linux |
| MEDIUM | salt/states/saltmod.py | 926 | # the 'highstate' outputter, we can leverage this fact when merging the |
| LOW | salt/states/pkgrepo.py | 468 | # to use. Most package providers will simply return the data provided |
| LOW | salt/modules/git.py | 711 | # in the output in case there are thousands), so just return True. If there |
| LOW | salt/modules/rpm_lowpkg.py | 522 | # available, then we can just use SIZE for older versions. See Issue #31366. |
| LOW | salt/modules/win_event.py | 220 | # rather than wait just return |
| MEDIUM | salt/modules/pacmanpkg.py | 382 | # Use a compatible structure with yum, so we can leverage the existing state.group_installed |
| LOW | salt/modules/file.py | 6336 | # Local file paths will just return the same path back when passed |
| MEDIUM | salt/modules/win_lgpo.py | 2977 | # These policies can NOT be set in conjunction with Advanced |
| LOW | salt/modules/win_pkg.py | 397 | # If no args passed, just return everything |
| LOW | salt/modules/pip.py | 983 | # just return the output without running pip. |
| LOW | salt/modules/mac_service.py | 195 | # check if KeepAlive is True and not just set. |
| LOW | salt/modules/win_timezone.py | 289 | # if it's one of the key's just use it |
| LOW | salt/modules/win_timezone.py | 332 | # if it's one of the key's just use it |
| MEDIUM | salt/modules/bcache.py | 808 | # I'll utilize 'inter_ro' as 'misc' as well |
| LOW | salt/modules/grains.py | 296 | # Return the grains we just set to confirm everything was OK |
| MEDIUM | salt/modules/chocolatey.py | 537 | # moves more functions to this new paradigm |
| MEDIUM | salt/modules/chocolatey.py | 1375 | # moves more functions to this new paradigm |
| LOW | salt/modules/mysql.py | 2980 | # if the connection fails, we simply return False |
| LOW | salt/client/mixins.py | 278 | # just return True. |
| LOW | salt/client/__init__.py | 1665 | # if we have all the minion returns, lets just return |
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | tests/pytests/unit/utils/test_thin.py | 791 | thin.salt.utils.hashutils.get_hash.assert_called() |
| CRITICAL | tests/pytests/unit/utils/test_thin.py | 808 | thin.salt.utils.hashutils.get_hash.assert_called() |
| CRITICAL | tests/pytests/unit/cli/test_ssh.py | 7 | Test that `salt.client.ssh.SSH.fsclient.destroy()` is called. |
| CRITICAL | salt/modules/yumpkg.py | 728 | salt.utils.pkg.rpm.QUERYFORMAT.replace("%{REPOID}", "(none)") + "\n", |
| CRITICAL | salt/modules/rpm_lowpkg.py | 110 | queryformat = salt.utils.pkg.rpm.QUERYFORMAT.replace("%{REPOID}", "none") |
| CRITICAL | salt/modules/chroot.py | 244 | salt.client.ssh.wrapper.state._cleanup_slsmod_low_data(chunks) |
| CRITICAL | salt/modules/chroot.py | 358 | salt.client.ssh.wrapper.state._merge_extra_filerefs( |
| CRITICAL | salt/modules/chroot.py | 402 | salt.client.ssh.wrapper.state._merge_extra_filerefs( |
| CRITICAL | salt/modules/zypperpkg.py | 932 | salt.utils.pkg.rpm.QUERYFORMAT.replace("%{REPOID}", "(none)") + "\n", |
| CRITICAL | doc/_themes/saltstack2/static/js/core.min.js | 4 | },a,b,arguments.length>1)},show:function(){return Wb(this,!0)},hide:function(){return Wb(this)},toggle:function(a){retur |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/integration/states/test_git.py | 277 | fp_.write("Lorem ipsum dolor blah blah blah....\n") |
| LOW | tests/support/unit.py | 56 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque eget urna a arcu lacinia sagittis. |
| LOW | tests/support/unit.py | 56 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque eget urna a arcu lacinia sagittis. |
| LOW | tests/pytests/unit/utils/test_x509.py | 555 | cx509.RFC822Name("user@example.com"), |
| LOW | tests/pytests/unit/utils/test_stringutils.py | 296 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque eget urna a arcu lacinia sagittis. |
| LOW | tests/pytests/unit/utils/test_stringutils.py | 296 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque eget urna a arcu lacinia sagittis. |
| LOW | …s/pytests/unit/modules/file/test_file_block_replace.py | 75 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam rhoncus |
| LOW | …s/pytests/unit/modules/file/test_file_block_replace.py | 75 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam rhoncus |
| LOW | …s/pytests/unit/modules/file/test_file_block_replace.py | 95 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec |
| LOW | …s/pytests/unit/modules/file/test_file_block_replace.py | 95 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec |
| LOW | tests/pytests/unit/modules/file/test_file_grep.py | 56 | Lorem ipsum dolor sit amet, consectetur |
| LOW | tests/pytests/unit/modules/file/test_file_grep.py | 56 | Lorem ipsum dolor sit amet, consectetur |
| LOW | tests/pytests/unit/modules/file/test_file_grep.py | 79 | result = filemod.grep(multiline_file, "Lorem ipsum") |
| LOW | tests/pytests/unit/modules/file/test_file_grep.py | 83 | assert result["stdout"] == "Lorem ipsum dolor sit amet, consectetur" |
| LOW | tests/pytests/unit/modules/file/test_file_grep.py | 83 | assert result["stdout"] == "Lorem ipsum dolor sit amet, consectetur" |
| LOW | tests/pytests/unit/modules/file/test_file_grep.py | 96 | result = filemod.grep(multiline_file, "Lorem ipsum", "-i") |
| LOW | tests/pytests/unit/modules/file/test_file_grep.py | 100 | assert result["stdout"] == "Lorem ipsum dolor sit amet, consectetur" |
| LOW | tests/pytests/unit/modules/file/test_file_grep.py | 100 | assert result["stdout"] == "Lorem ipsum dolor sit amet, consectetur" |
| LOW | tests/pytests/unit/modules/file/test_file_grep.py | 121 | result = filemod.grep(_file, "Lorem ipsum") |
| LOW | tests/pytests/unit/modules/file/test_file_grep.py | 125 | assert result["stdout"] == "Lorem ipsum dolor sit amet, consectetur" |
| LOW | tests/pytests/unit/modules/file/test_file_grep.py | 125 | assert result["stdout"] == "Lorem ipsum dolor sit amet, consectetur" |
| LOW | tests/pytests/unit/modules/file/test_file_grep.py | 131 | result = filemod.grep(_file, "Lorem ipsum") |
| LOW | tests/pytests/unit/modules/file/test_file_grep.py | 135 | assert not result["stdout"] == "Lorem ipsum dolor sit amet, consectetur" |
| LOW | tests/pytests/unit/modules/file/test_file_grep.py | 135 | assert not result["stdout"] == "Lorem ipsum dolor sit amet, consectetur" |
| LOW | tests/pytests/functional/modules/file/test_replace.py | 23 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam rhoncus |
| LOW | tests/pytests/functional/modules/file/test_replace.py | 23 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam rhoncus |
| LOW | tests/pytests/functional/modules/file/test_replace.py | 32 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec |
| LOW | tests/pytests/functional/modules/file/test_replace.py | 32 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | salt/modules/cron.py | 210 | # If Salt is running from same user as requested in cron module we don't need any user switch |
| HIGH | salt/modules/cron.py | 250 | # If Salt is running from same user as requested in cron module we don't need any user switch |
| HIGH | salt/modules/cron.py | 278 | # If Salt is running from same user as requested in cron module we don't need any user switch |
| HIGH | salt/modules/cron.py | 335 | # If Salt is running from same user as requested in cron module we don't need any user switch |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/unit/utils/test_gitfs.py | 86 | # Clear the instance map so that we make sure to create a new instance |
| LOW | tests/pytests/unit/utils/test_gitfs_locks.py | 115 | # Clear the instance map so that we make sure to create a new instance |
| LOW | tests/pytests/unit/modules/test_mysql.py | 843 | -- Please don't forget to set up the tablenames in config.inc.php |
| LOW | tests/pytests/unit/modules/test_mysql.py | 899 | -- Please don't forget to set up the tablenames in config.inc.php |
| LOW | tests/pytests/unit/modules/file/test_file_line.py | 99 | # We need to make sure to remove the tree we just created to avoid clashes with other tests |
| LOW | salt/auth/ldap.py | 251 | # so make sure to render it first before using it |
| LOW | salt/utils/process.py | 626 | # make sure to kill the subprocesses if the parent is killed |
| MEDIUM | salt/states/x509.py | 26 | Here is a simple example scenario. In this example ``ca`` is the ca server, |
| MEDIUM | salt/states/ssh_pki.py | 29 | Here is a simple example scenario. In this example, ``ca`` is the CA server |
| MEDIUM | salt/states/x509_v2.py | 34 | Here is a simple example scenario. In this example ``ca`` is the ca server, |
| MEDIUM | salt/grains/core.py | 2443 | # It's worth noting that Ubuntu has patched their Python distribution |
| MEDIUM | salt/modules/win_task.py | 1911 | # TODO: save it. Then you can add a new function. Maybe for editing an |
| LOW | salt/client/mixins.py | 444 | # if we fired an event, make sure to delete the event object. |
| LOW | pkg/macos/build.sh | 95 | # Don't forget to pass the `-E` option when running with Sudo so that |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/testsuite/container_test.py | 129 | # Step 1: Decompress dependencies |
| LOW | tools/testsuite/container_test.py | 152 | # Step 2: Create relenv toolchain symlink (Python 3.14+) |
| LOW | tools/testsuite/container_test.py | 194 | # Step 3: Verify setup |
| LOW | …/pytests/integration/modules/state/test_state_queue.py | 55 | # Step 1: Run a state job with queue=True |
| LOW | …/pytests/integration/modules/state/test_state_queue.py | 68 | # Step 2: Verify no files were left in state_queue |
| LOW | …s/pytests/integration/modules/state/test_queue_race.py | 101 | # Step 1: Occupy the only slot using subprocess to avoid fixture argument issues |
| LOW | …s/pytests/integration/modules/state/test_queue_race.py | 143 | # Step 2: Queue Job 1 - should be queued due to process_count_max=1 |
| LOW | …s/pytests/integration/modules/state/test_queue_race.py | 155 | # Step 3: Verify Job 1 is in job_queue on disk |
| LOW | …s/pytests/integration/modules/state/test_queue_race.py | 169 | # Step 4: Queue Job 2 - should also be queued since slot is still occupied |
| LOW | …s/pytests/integration/modules/state/test_queue_race.py | 181 | # Step 5: Verify Job 2 is also in job_queue |
| LOW | …s/pytests/integration/modules/state/test_queue_race.py | 195 | # Step 6: Verify queuing actually happened under load |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | cicd/gh-rerun-failed-jobs-from-snapshot.sh | 8 | # Usage: |
| LOW | pkg/macos/sign_binaries.sh | 16 | # Usage: |
| LOW | pkg/macos/build.sh | 28 | # Usage: |
| LOW | pkg/macos/package.sh | 16 | # Usage: |
| LOW | pkg/macos/prep_salt.sh | 14 | # Usage: |
| LOW | pkg/macos/notarize.sh | 29 | # Usage: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/pytests/unit/states/saltmod/test_function.py | 16 | def test_function(): |
| LOW | …n/ssh/state/test_retcode_state_run_remote_exception.py | 32 | def do_stuff(name): |
| LOW | tests/pytests/functional/transport/tcp/test_tcp_ssl.py | 116 | async def handle_request(payload, header=None): |
| LOW | tests/pytests/functional/transport/ws/test_ws_ssl.py | 114 | async def handle_request(payload, header=None): |
| LOW | salt/transport/ws.py | 465 | async def handle_request(self, request): |
| LOW | salt/utils/files.py | 92 | def helper(*args, **kwargs): |
| LOW | salt/modules/celery.py | 36 | def run_task( |