Software to automate the management and configuration of infrastructure and applications at scale.
This report presents the forensic synthetic code analysis of saltstack/salt, a Python project with 15,553 GitHub stars. SynthScan v2.0 examined 1,063,472 lines of code across 3314 source files, recording 16224 pattern matches distributed across 25 syntactic categories. The overall adjusted score of 21.3 places this repository in the Moderate AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 16224 distinct pattern matches across 25 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 1017 | def _property_install_requires(self): | STRING |
| LOW | setup.py | 1040 | def _property_freezer_options(self): | STRING |
| LOW | setup.py | 1043 | def get_esky_freezer_includes(self): | STRING |
| LOW | noxfile.py | 167 | def _get_session_python_version_info(session): | CODE |
| LOW | noxfile.py | 196 | def _get_pip_requirements_file(session, crypto=None, requirements_type="ci"): | CODE |
| LOW | noxfile.py | 254 | def _upgrade_pip_setuptools_and_wheel(session, upgrade=True): | CODE |
| LOW | noxfile.py | 333 | def _install_coverage_requirement(session): | CODE |
| LOW | noxfile.py | 948 | def pytest_zeromq_pycryptodome(session, coverage): | CODE |
| LOW⚡ | noxfile.py | 1525 | def create_html_coverage_report(session): | CODE |
| LOW⚡ | noxfile.py | 1529 | def _create_xml_coverage_reports(session): | CODE |
| LOW⚡ | noxfile.py | 1539 | def create_xml_coverage_reports(session): | CODE |
| LOW⚡ | noxfile.py | 1548 | def create_xml_coverage_reports_onedir(session): | CODE |
| LOW⚡ | noxfile.py | 1553 | def create_json_coverage_reports(session): | CODE |
| LOW⚡ | noxfile.py | 1562 | def create_json_coverage_reports_onedir(session): | CODE |
| LOW | tools/ci.py | 206 | def get_release_changelog_target(ctx: Context, event_name: str): | CODE |
| LOW | tools/ci.py | 255 | def _get_pr_test_labels_from_api( | CODE |
| LOW | tools/ci.py | 285 | def _get_pr_test_labels_from_event_payload( | CODE |
| LOW | tools/changelog.py | 60 | def _get_pkg_changelog_contents(ctx: Context, version: Version): | CODE |
| LOW | tools/utils/__init__.py | 411 | def get_platform_and_arch_from_slug(slug: str) -> tuple[str, str]: | CODE |
| LOW | tools/utils/repo.py | 36 | def get_repo_json_file_contents( | CODE |
| LOW | tools/utils/repo.py | 75 | def create_top_level_repo_path( | CODE |
| LOW | tools/precommit/docs.py | 153 | def build_python_module_paths(files): | CODE |
| LOW | tools/precommit/docstrings.py | 1073 | def _check_valid_versions_on_docstrings(docstring): | STRING |
| LOW⚡ | tools/precommit/docstrings.py | 1093 | def _check_cli_example_present(docstring): | STRING |
| LOW⚡ | tools/precommit/docstrings.py | 1102 | def _check_cli_example_proper_formatting(docstring): | STRING |
| LOW | tools/pkg/build.py | 1239 | def _check_pkg_build_files_exist(ctx: Context, **kwargs): | CODE |
| LOW | tools/pkg/salt_build_backend.py | 56 | def prepare_metadata_for_build_editable(metadata_directory, config_settings=None): | CODE |
| LOW | tests/conftest.py | 52 | def _pin_multiprocessing_fork_for_tests() -> None: | CODE |
| LOW | tests/conftest.py | 86 | def _patch_psutil_pidfd_open_einval() -> None: | CODE |
| LOW | tests/conftest.py | 126 | def _remove_redundant_salt_utils_vault_py() -> None: | CODE |
| LOW | tests/conftest.py | 482 | def _maybe_disable_subprocess_coverage(request, monkeypatch): | CODE |
| LOW | tests/conftest.py | 513 | def set_max_open_files_limits(min_soft=8192, min_hard=16384): | CODE |
| LOW | tests/conftest.py | 598 | def pytest_collection_modifyitems(config, items): | CODE |
| LOW | tests/conftest.py | 642 | def pytest_markeval_namespace(config): | CODE |
| LOW | tests/conftest.py | 906 | def groups_collection_modifyitems(config, items): | CODE |
| LOW | tests/conftest.py | 955 | def salt_factories_default_root_dir(salt_factories_default_root_dir): | CODE |
| LOW | tests/conftest.py | 1086 | def base_env_state_tree_root_dir(state_tree_root_dir): | CODE |
| LOW | tests/conftest.py | 1099 | def prod_env_state_tree_root_dir(state_tree_root_dir): | CODE |
| LOW | tests/conftest.py | 1111 | def base_env_pillar_tree_root_dir(pillar_tree_root_dir): | CODE |
| LOW | tests/conftest.py | 1124 | def ext_pillar_file_tree_root_dir(pillar_tree_root_dir): | CODE |
| LOW | tests/conftest.py | 1135 | def prod_env_pillar_tree_root_dir(pillar_tree_root_dir): | CODE |
| LOW | tests/conftest.py | 1147 | def salt_syndic_master_factory( | CODE |
| LOW | tests/conftest.py | 1530 | def _destroy_live_zmq_asyncio_contexts(): | CODE |
| LOW | tests/conftest.py | 1728 | def bridge_pytest_and_runtests( | CODE |
| LOW | tests/conftest.py | 1895 | def from_filenames_collection_modifyitems(config, items): | STRING |
| LOW | tests/eventlisten.py | 86 | def check_access_and_print_warning(sock_dir): | CODE |
| LOW | tests/unit/test_loader.py | 1113 | def test_module_package_collision(self): | STRING |
| LOW | tests/unit/test_loader.py | 1333 | def test_loader_clean_modules(self): | STRING |
| LOW | tests/unit/test_loader.py | 1689 | def test_osrelease_info_has_correct_type(self): | STRING |
| LOW | tests/unit/test_loader.py | 1697 | def test_deserialization_error_caught(self): | STRING |
| LOW | tests/unit/test_loader.py | 1760 | def test_lazyloader_refresh_file_mapping_called_with_lock_at___init__(self): | STRING |
| LOW | tests/unit/test_loader.py | 1774 | def test_lazyloader_zip_modules(self): | STRING |
| LOW | tests/unit/test_loader.py | 1786 | def test_lazyloader_pyx_modules(self): | STRING |
| LOW | tests/unit/test_module_names.py | 104 | def test_module_name_source_match(self): | CODE |
| LOW⚡ | tests/unit/test_config.py | 1583 | def test_is_provider_configured_no_alias(self): | CODE |
| LOW⚡ | tests/unit/test_config.py | 1591 | def test_is_provider_configured_no_driver(self): | CODE |
| LOW⚡ | tests/unit/test_config.py | 1599 | def test_is_provider_configured_key_is_none(self): | CODE |
| LOW | tests/unit/test_config.py | 81 | def test_conf_master_sample_is_commented(self): | CODE |
| LOW | tests/unit/test_config.py | 94 | def test_conf_minion_sample_is_commented(self): | CODE |
| LOW | tests/unit/test_config.py | 107 | def test_conf_cloud_sample_is_commented(self): | CODE |
| 8561 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tools/precommit/docstrings.py | 1106 | # --------------------------------------------------------------------------- | STRING |
| MEDIUM | tools/precommit/docstrings.py | 1120 | # --------------------------------------------------------------------------- | STRING |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 15 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 17 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 19 | # ── UNIT: core data structures ─────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 29 | # ── UNIT: SaltStorage (per-entry log keys, state, snapshot round-trip) ─────── | COMMENT |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 37 | # used by cluster/peer/join-reply state-sync) ────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 41 | # install helpers, and StateSyncSession state machine) ────────────────── | COMMENT |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 48 | # ── FUNCTIONAL: HashRing under realistic clustering ────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 51 | # ── UNIT: salt.scripts CLI entry-point pin (Python 3.14 forkserver fix) ────── | COMMENT |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 55 | # ── UNIT: node state machine ───────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 82 | # ── FUNCTIONAL: transport + dispatcher ─────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 88 | # ── FUNCTIONAL: election + replication ─────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 94 | # ── FUNCTIONAL: RaftService lifecycle ──────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 102 | # ── SCENARIO: full join-and-promote path ───────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 133 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 135 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 138 | # SaltPeer non-blocking publish, TCP pool router) ────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 148 | # join-reply, multi-minion routing across all peers ────────────────────── | COMMENT |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 158 | # ── SCENARIO: notify_peer_joined on receiver, dynamic 4th-master join ──────── | COMMENT |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 162 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 164 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 194 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 196 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 198 | # ── UNIT: per-ring SaltStorage path keying (slice 1) ──────────────────────── | COMMENT |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 211 | # ── UNIT: cluster-log SMs — registry + routing + entry dispatch ───────────── | COMMENT |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 221 | # ── UNIT: multi-ring runner fan-out wire shape (cluster_aes envelope) ─────── | COMMENT |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 224 | # ── UNIT: state-sync bank: channel + selective key_filter ─────────────────── | COMMENT |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 236 | # ── UNIT: salt_cache returner — every public function + bank layout ───────── | COMMENT |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 239 | # ── UNIT: cluster runner surface — every new operator-facing runner ───────── | COMMENT |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 242 | # ── UNIT: master.py gate sites + delegate-on-miss on routed drops ─────────── | COMMENT |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 245 | # ── FUNCTIONAL: per-ring Raft — propose helpers, lifecycle, watchdog ──────── | COMMENT |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 251 | # ── FUNCTIONAL: salt_cache returner-in-the-loop (loader + dispatch) ───────── | COMMENT |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 254 | # ── INTEGRATION: multi-ring lifecycle on isolated-FS cluster ──────────────── | COMMENT |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 257 | # ── INTEGRATION: multi-ring lifecycle on shared-FS cluster ────────────────── | COMMENT |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 260 | # ── INTEGRATION: full jobs migration round-trip (shed + collect) ──────────── | COMMENT |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 263 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/pytests/smoke-tests.txt | 265 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/pytests/smoke-tests.txt | 113 | # ── FUNCTIONAL: on_ready callback ──────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/pytests/smoke-tests.txt | 119 | # ── FUNCTIONAL/INTEGRATION/SCENARIO: cluster-ready gate ────────────────────── | COMMENT |
| MEDIUM⚡ | tests/pytests/unit/test_event_monitor_ring_gating.py | 61 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/pytests/unit/test_event_monitor_ring_gating.py | 63 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/pytests/unit/test_event_monitor_ring_gating.py | 107 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/pytests/unit/test_event_monitor_ring_gating.py | 109 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/pytests/unit/test_event_monitor_ring_gating.py | 247 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/pytests/unit/test_event_monitor_ring_gating.py | 249 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/pytests/unit/test_master.py | 1807 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/pytests/unit/test_master.py | 1809 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/pytests/unit/test_proxy_minion.py | 135 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/pytests/unit/test_proxy_minion.py | 137 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/pytests/unit/test_minion_resources.py | 39 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/pytests/unit/test_minion_resources.py | 41 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/pytests/unit/test_minion_resources.py | 158 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/pytests/unit/test_minion_resources.py | 160 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/pytests/unit/test_minion_resources.py | 187 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/pytests/unit/test_minion_resources.py | 189 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/pytests/unit/test_minion_resources.py | 350 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/pytests/unit/test_minion_resources.py | 352 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/pytests/unit/test_minion_resources.py | 547 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/pytests/unit/test_minion_resources.py | 549 | # --------------------------------------------------------------------------- | COMMENT |
| 1430 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/conftest.py | 0 | fixture which returns the salt functional files directory path. creates the directory if it does not yet exist. | STRING |
| HIGH | tests/pytests/scenarios/compat/conftest.py | 0 | fixture which returns the salt functional files directory path. creates the directory if it does not yet exist. | STRING |
| HIGH | tests/pytests/scenarios/performance/conftest.py | 0 | fixture which returns the salt functional files directory path. creates the directory if it does not yet exist. | STRING |
| HIGH | tests/conftest.py | 0 | fixture which returns the salt pillar file tree directory path. creates the directory if it does not yet exist. | STRING |
| HIGH | tests/pytests/scenarios/compat/conftest.py | 0 | fixture which returns the salt pillar file tree directory path. creates the directory if it does not yet exist. | STRING |
| HIGH | tests/pytests/scenarios/performance/conftest.py | 0 | fixture which returns the salt pillar file tree directory path. creates the directory if it does not yet exist. | STRING |
| HIGH | tests/unit/modules/test_napalm_probes.py | 0 | :codeauthor: :email:`anthony shaw <anthonyshaw@apache.org>` | STRING |
| HIGH | tests/unit/modules/test_napalm_yang_mod.py | 0 | :codeauthor: :email:`anthony shaw <anthonyshaw@apache.org>` | STRING |
| HIGH | tests/pytests/unit/modules/napalm/test_bgp.py | 0 | :codeauthor: :email:`anthony shaw <anthonyshaw@apache.org>` | STRING |
| HIGH | tests/pytests/unit/modules/napalm/test_ntp.py | 0 | :codeauthor: :email:`anthony shaw <anthonyshaw@apache.org>` | STRING |
| HIGH | tests/pytests/unit/modules/napalm/test_snmp.py | 0 | :codeauthor: :email:`anthony shaw <anthonyshaw@apache.org>` | STRING |
| HIGH | tests/pytests/unit/modules/napalm/test_netacl.py | 0 | :codeauthor: :email:`anthony shaw <anthonyshaw@apache.org>` | STRING |
| HIGH | tests/pytests/unit/modules/napalm/test_users.py | 0 | :codeauthor: :email:`anthony shaw <anthonyshaw@apache.org>` | STRING |
| HIGH | tests/pytests/unit/modules/napalm/test_route.py | 0 | :codeauthor: :email:`anthony shaw <anthonyshaw@apache.org>` | STRING |
| HIGH | tests/unit/modules/nxos/nxos_n3k.py | 0 | installer will perform impact only check. please wait. [####################] 100% -- success verifying image type. [### | STRING |
| HIGH | tests/unit/modules/nxos/nxos_platform.py | 0 | installer will perform impact only check. please wait. [####################] 100% -- success verifying image type. [### | STRING |
| HIGH | tests/unit/modules/nxos/nxos_n36k.py | 0 | installer will perform impact only check. please wait. [####################] 100% -- success verifying image type. [### | STRING |
| HIGH | tests/unit/modules/nxos/nxos_n93k.py | 0 | installer will perform impact only check. please wait. [####################] 100% -- success verifying image type. [### | STRING |
| HIGH | tests/unit/modules/nxos/nxos_n3k.py | 0 | installer will perform compatibility check first. please wait. installer is forced disruptive verifying image bootflash: | STRING |
| HIGH | tests/unit/modules/nxos/nxos_n93klxc.py | 0 | installer will perform compatibility check first. please wait. installer is forced disruptive verifying image bootflash: | STRING |
| HIGH | tests/unit/modules/nxos/nxos_n36k.py | 0 | installer will perform compatibility check first. please wait. installer is forced disruptive verifying image bootflash: | STRING |
| HIGH | tests/unit/modules/nxos/nxos_n93k.py | 0 | installer will perform compatibility check first. please wait. installer is forced disruptive verifying image bootflash: | STRING |
| HIGH | tests/integration/files/returners/noop_returner.py | 0 | do any work necessary to prepare a jid, including sending a custom id | STRING |
| HIGH | salt/returners/syslog_return.py | 0 | do any work necessary to prepare a jid, including sending a custom id | STRING |
| HIGH | salt/returners/postgres.py | 0 | do any work necessary to prepare a jid, including sending a custom id | STRING |
| HIGH | salt/returners/pgjsonb.py | 0 | do any work necessary to prepare a jid, including sending a custom id | STRING |
| HIGH | tests/integration/modules/test_cp.py | 0 | {}/testfile: file: - managed - source: salt://testfile - makedirs: true | STRING |
| HIGH | tests/pytests/unit/state/test_multi_env_highstate.py | 0 | {}/testfile: file: - managed - source: salt://testfile - makedirs: true | STRING |
| HIGH | tests/pytests/integration/ssh/test_state.py | 0 | {}/testfile: file: - managed - source: salt://testfile - makedirs: true | STRING |
| HIGH | tests/pytests/unit/utils/test_x509.py | 0 | \ -----begin certificate----- miidodccaicgawibagiibfpgqp0vgpgwdqyjkozihvcnaqelbqawkzelmakga1ue bhmcvvmxdtalbgnvbammbfrlc | STRING |
| HIGH | tests/pytests/integration/ssh/x509_v2/conftest.py | 0 | \ -----begin certificate----- miidodccaicgawibagiibfpgqp0vgpgwdqyjkozihvcnaqelbqawkzelmakga1ue bhmcvvmxdtalbgnvbammbfrlc | STRING |
| HIGH | tests/pytests/integration/states/test_x509_v2.py | 0 | \ -----begin certificate----- miidodccaicgawibagiibfpgqp0vgpgwdqyjkozihvcnaqelbqawkzelmakga1ue bhmcvvmxdtalbgnvbammbfrlc | STRING |
| HIGH | tests/pytests/integration/modules/test_x509_v2.py | 0 | \ -----begin certificate----- miidodccaicgawibagiibfpgqp0vgpgwdqyjkozihvcnaqelbqawkzelmakga1ue bhmcvvmxdtalbgnvbammbfrlc | STRING |
| HIGH | tests/pytests/functional/states/test_x509_v2.py | 0 | \ -----begin certificate----- miidodccaicgawibagiibfpgqp0vgpgwdqyjkozihvcnaqelbqawkzelmakga1ue bhmcvvmxdtalbgnvbammbfrlc | STRING |
| HIGH | tests/pytests/functional/modules/test_x509_v2.py | 0 | \ -----begin certificate----- miidodccaicgawibagiibfpgqp0vgpgwdqyjkozihvcnaqelbqawkzelmakga1ue bhmcvvmxdtalbgnvbammbfrlc | STRING |
| HIGH | tests/pytests/unit/utils/test_x509.py | 0 | \ -----begin rsa private key----- miieowibaakcaqea4znjy+unws3q+wlwb1fsnp8pom0nzmckrpsizqcr1nbqgakk +nxqnh7/wan4js3xtb3ih | STRING |
| HIGH | tests/pytests/integration/ssh/x509_v2/conftest.py | 0 | \ -----begin rsa private key----- miieowibaakcaqea4znjy+unws3q+wlwb1fsnp8pom0nzmckrpsizqcr1nbqgakk +nxqnh7/wan4js3xtb3ih | STRING |
| HIGH | tests/pytests/integration/states/test_x509_v2.py | 0 | \ -----begin rsa private key----- miieowibaakcaqea4znjy+unws3q+wlwb1fsnp8pom0nzmckrpsizqcr1nbqgakk +nxqnh7/wan4js3xtb3ih | STRING |
| HIGH | tests/pytests/integration/modules/test_x509_v2.py | 0 | \ -----begin rsa private key----- miieowibaakcaqea4znjy+unws3q+wlwb1fsnp8pom0nzmckrpsizqcr1nbqgakk +nxqnh7/wan4js3xtb3ih | STRING |
| HIGH | tests/pytests/functional/states/test_x509_v2.py | 0 | \ -----begin rsa private key----- miieowibaakcaqea4znjy+unws3q+wlwb1fsnp8pom0nzmckrpsizqcr1nbqgakk +nxqnh7/wan4js3xtb3ih | STRING |
| HIGH | tests/pytests/functional/modules/test_x509_v2.py | 0 | \ -----begin rsa private key----- miieowibaakcaqea4znjy+unws3q+wlwb1fsnp8pom0nzmckrpsizqcr1nbqgakk +nxqnh7/wan4js3xtb3ih | STRING |
| HIGH | tests/pytests/unit/states/test_service.py | 0 | :codeauthor: gareth j. greenaway <ggreenaway@vmware.com> | STRING |
| HIGH | tests/pytests/unit/states/file/test_mod_beacon.py | 0 | :codeauthor: gareth j. greenaway <ggreenaway@vmware.com> | STRING |
| HIGH | tests/pytests/unit/modules/test_textfsm_mod.py | 0 | :codeauthor: gareth j. greenaway <ggreenaway@vmware.com> | STRING |
| HIGH | tests/pytests/unit/states/postgresql/test_privileges.py | 0 | :codeauthor: andrew colin kissa <andrew@topdog.za.net> | STRING |
| HIGH | tests/pytests/unit/states/postgresql/test_initdb.py | 0 | :codeauthor: andrew colin kissa <andrew@topdog.za.net> | STRING |
| HIGH | tests/pytests/unit/states/postgresql/test_language.py | 0 | :codeauthor: andrew colin kissa <andrew@topdog.za.net> | STRING |
| HIGH | tests/pytests/unit/grains/test_disks.py | 0 | :codeauthor: :email:`shane lee <slee@saltstack.com>` | STRING |
| HIGH | tests/pytests/unit/grains/test_pending_reboot.py | 0 | :codeauthor: :email:`shane lee <slee@saltstack.com>` | STRING |
| HIGH | tests/pytests/unit/grains/test_lvm.py | 0 | :codeauthor: :email:`shane lee <slee@saltstack.com>` | STRING |
| HIGH | tests/pytests/unit/modules/test_nftables.py | 0 | test if it return a data structure of the current, in-memory rules | STRING |
| HIGH | tests/pytests/unit/modules/test_iptables.py | 0 | test if it return a data structure of the current, in-memory rules | STRING |
| HIGH | tests/pytests/unit/modules/test_restartcheck.py | 0 | test if it return a data structure of the current, in-memory rules | STRING |
| HIGH | tests/pytests/unit/modules/win_lgpo/test_adv_audit.py | 0 | helper function to set an audit setting and assert that it was successful | STRING |
| HIGH | …ional/states/win_lgpo/test_adv_audit_settings_state.py | 0 | helper function to set an audit setting and assert that it was successful | STRING |
| HIGH | …unctional/states/win_lgpo/test_audit_settings_state.py | 0 | helper function to set an audit setting and assert that it was successful | STRING |
| HIGH | …ctional/modules/win_lgpo/test_audit_settings_module.py | 0 | helper function to set an audit setting and assert that it was successful | STRING |
| HIGH | tests/pytests/integration/proxy/conftest.py | 0 | proxy: proxytype: deltaproxy parallel_startup: {} ids: | STRING |
| HIGH | tests/pytests/integration/cli/test_salt_deltaproxy.py | 0 | proxy: proxytype: deltaproxy parallel_startup: {} ids: | STRING |
| HIGH | tests/pytests/functional/cli/test_salt_deltaproxy.py | 0 | proxy: proxytype: deltaproxy parallel_startup: {} ids: | STRING |
| 414 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 197 | CODE | |
| LOW | setup.py | 896 | CODE | |
| LOW | setup.py | 1043 | CODE | |
| LOW | noxfile.py | 133 | CODE | |
| LOW | noxfile.py | 196 | CODE | |
| LOW | noxfile.py | 333 | CODE | |
| LOW | noxfile.py | 457 | CODE | |
| LOW | noxfile.py | 1123 | CODE | |
| LOW | noxfile.py | 1294 | CODE | |
| LOW | noxfile.py | 1847 | CODE | |
| LOW | tools/release.py | 43 | CODE | |
| LOW | tools/release.py | 207 | CODE | |
| LOW | tools/gh.py | 37 | CODE | |
| LOW | tools/ci.py | 78 | CODE | |
| LOW | tools/ci.py | 206 | CODE | |
| LOW | tools/ci.py | 447 | CODE | |
| LOW | tools/ci.py | 581 | CODE | |
| LOW | tools/ci.py | 666 | CODE | |
| LOW | tools/ci.py | 767 | CODE | |
| LOW | tools/container.py | 43 | CODE | |
| LOW | tools/audit_doc_links.py | 85 | CODE | |
| LOW | tools/changelog.py | 97 | CODE | |
| LOW | tools/changelog.py | 148 | CODE | |
| LOW | tools/testsuite/container_test.py | 312 | CODE | |
| LOW | tools/testsuite/ci_failure.py | 186 | CODE | |
| LOW | tools/testsuite/ci_failure.py | 311 | CODE | |
| LOW | tools/testsuite/ci_failure.py | 420 | CODE | |
| LOW | tools/testsuite/download.py | 271 | CODE | |
| LOW | tools/utils/gh.py | 269 | CODE | |
| LOW | tools/utils/gh.py | 347 | CODE | |
| LOW | tools/utils/__init__.py | 343 | CODE | |
| LOW | tools/utils/__init__.py | 361 | CODE | |
| LOW | tools/utils/__init__.py | 411 | CODE | |
| LOW | tools/precommit/docs.py | 62 | CODE | |
| LOW | tools/precommit/docs.py | 255 | CODE | |
| LOW | tools/precommit/filemap.py | 41 | CODE | |
| LOW | tools/precommit/docstrings.py | 844 | CODE | |
| LOW | tools/precommit/docstrings.py | 1132 | CODE | |
| LOW | tools/precommit/loader.py | 30 | CODE | |
| LOW | tools/precommit/workflows.py | 105 | CODE | |
| LOW | tools/pkg/build.py | 36 | CODE | |
| LOW | tools/pkg/build.py | 92 | CODE | |
| LOW | tools/pkg/build.py | 944 | CODE | |
| LOW | tools/pkg/__init__.py | 111 | CODE | |
| LOW | tools/pkg/__init__.py | 235 | CODE | |
| LOW | tools/pkg/__init__.py | 343 | CODE | |
| LOW | tools/pkg/__init__.py | 55 | CODE | |
| LOW | tools/pkg/salt_build_backend.py | 65 | CODE | |
| LOW | tests/conftest.py | 126 | CODE | |
| LOW | tests/conftest.py | 598 | CODE | |
| LOW | tests/conftest.py | 1558 | CODE | |
| LOW | tests/conftest.py | 1895 | CODE | |
| LOW | tests/conftest.py | 1657 | CODE | |
| LOW | tests/eventlisten.py | 105 | CODE | |
| LOW | tests/salt-tcpdump.py | 296 | CODE | |
| LOW | tests/salt-tcpdump.py | 350 | CODE | |
| LOW | tests/salt-tcpdump.py | 271 | CODE | |
| LOW | tests/buildpackage.py | 64 | CODE | |
| LOW | tests/buildpackage.py | 232 | CODE | |
| LOW | tests/minionswarm.py | 258 | CODE | |
| 1994 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tools/release.py | 24 | # Define the command group | COMMENT |
| MEDIUM | tools/gh.py | 21 | # Define the command group | COMMENT |
| MEDIUM | tools/ci.py | 34 | # Define the command group | COMMENT |
| MEDIUM | tools/docs.py | 21 | # Define the command group | COMMENT |
| MEDIUM | tools/changelog.py | 23 | # Define the command group | COMMENT |
| MEDIUM | tools/testsuite/container_test.py | 18 | # Define the command group | COMMENT |
| MEDIUM | tools/testsuite/ci_failure.py | 20 | # Define the command group | COMMENT |
| MEDIUM | tools/testsuite/download.py | 29 | # Define the command group | COMMENT |
| MEDIUM | tools/testsuite/__init__.py | 20 | # Define the command group | COMMENT |
| MEDIUM | tools/testsuite/pytest.py | 19 | # Define the command group | COMMENT |
| MEDIUM | tools/precommit/__init__.py | 9 | # Define the command group | COMMENT |
| MEDIUM | tools/precommit/changelog.py | 33 | # Define the command group | COMMENT |
| MEDIUM | tools/precommit/workflows.py | 31 | # Define the command group | COMMENT |
| MEDIUM | tools/pkg/build.py | 205 | # Define the command group | COMMENT |
| MEDIUM | tools/pkg/__init__.py | 28 | # Define the command group | COMMENT |
| MEDIUM | tests/saltsh.py | 62 | # Create the Salt __opts__ variable | COMMENT |
| MEDIUM | tests/conftest.py | 188 | # Define the pytest plugins we rely on | COMMENT |
| MEDIUM | tests/eventlisten.sh | 53 | # Create the event tags to listen for. | COMMENT |
| MEDIUM | tests/unit/utils/test_process.py | 186 | # Create a pool with no workers and 1 queue size | COMMENT |
| MEDIUM | tests/unit/modules/test_win_system.py | 637 | # Create a mock processor class that does not have the | COMMENT |
| MEDIUM | tests/integration/cloud/test_cloud.py | 49 | # Create the VM using salt.cloud.CloudClient.create() instead of calling salt-cloud | COMMENT |
| MEDIUM | tests/integration/cloud/helpers/cloud_test_base.py | 158 | # Create the cloud instance name to be used throughout the tests | COMMENT |
| MEDIUM | tests/integration/cloud/helpers/virtualbox.py | 11 | # Create the cloud instance name to be used throughout the tests | COMMENT |
| MEDIUM | tests/integration/states/test_ssh_auth.py | 83 | # Create the keyfile that we expect to get back on the state call | COMMENT |
| MEDIUM | tests/integration/states/test_ssh_auth.py | 89 | # Create a bogus key file on base environment | COMMENT |
| MEDIUM | tests/integration/states/test_git.py | 110 | # Create a URL to clone | COMMENT |
| MEDIUM | tests/integration/states/test_cmd.py | 83 | # Create the testfile and release the handle | COMMENT |
| MEDIUM | tests/integration/states/test_cmd.py | 91 | # Create the testfile and release the handle | COMMENT |
| MEDIUM | tests/integration/modules/test_config.py | 42 | # This function is generally only used with cross calls, the yaml | COMMENT |
| MEDIUM | tests/integration/client/test_standard.py | 150 | # Create a minion key, but do not start the "fake" minion. This mimics | COMMENT |
| MEDIUM | tests/support/mixins.py | 369 | # Create the class instance | COMMENT |
| MEDIUM | tests/support/win_installer.py | 33 | # Create a class so we can define how to handle the starttag | COMMENT |
| MEDIUM | tests/support/unit.py | 134 | # This class is not defined in the module being tested? Carry on... | COMMENT |
| MEDIUM | tests/support/unit.py | 137 | # This class is not a subclass of TestCase, carry on | COMMENT |
| MEDIUM | tests/support/pytest/transport_ssl.py | 207 | # Create a persistent temp directory that won't be cleaned up mid-session | COMMENT |
| MEDIUM | tests/pytests/unit/test_minion.py | 633 | # Create a simple test that just verifies the queue processing method exists | COMMENT |
| MEDIUM | tests/pytests/unit/test_minion.py | 651 | # Create a simple test that just verifies the method exists and can be called | COMMENT |
| MEDIUM | tests/pytests/unit/test_minion.py | 2056 | # Create a MinionManager instance with a mock minion | COMMENT |
| MEDIUM | tests/pytests/unit/test_minion.py | 2131 | # Create a Tornado IOLoop | COMMENT |
| MEDIUM | tests/pytests/unit/fileclient/test_fileclient_cache.py | 104 | # Create the CACHE_ROOT | COMMENT |
| MEDIUM | tests/pytests/unit/utils/test_files.py | 119 | # Create the file structures in both src and dest dirs | COMMENT |
| MEDIUM | tests/pytests/unit/utils/test_nxos.py | 20 | # Create a mock response object | COMMENT |
| MEDIUM | tests/pytests/unit/utils/test_nxos.py | 57 | # Create a mock response object | COMMENT |
| MEDIUM⚡ | tests/pytests/unit/utils/test_mmap_cache_errors.py | 98 | # Create a file with unexpected size | COMMENT |
| MEDIUM | tests/pytests/unit/utils/test_mmap_cache_segments.py | 319 | # Create a gap: remove seg 1, add a seg 2 (simulates corruption) | COMMENT |
| MEDIUM | …sts/pytests/unit/utils/jinja/test_salt_cache_loader.py | 111 | # Create a mock file client and attach it to the loader | STRING |
| MEDIUM⚡ | tests/pytests/unit/loader/test_grains_cleanup.py | 87 | # Create a loader to get some module references | COMMENT |
| MEDIUM⚡ | tests/pytests/unit/loader/test_grains_cleanup.py | 185 | # Create a loader | COMMENT |
| MEDIUM | …ts/pytests/unit/modules/win_lgpo/test_admx_policies.py | 136 | # Create a bogus ADML file in PolicyDefinitions directory | COMMENT |
| MEDIUM | tests/pytests/unit/client/ssh/wrapper/test_cp.py | 222 | # Create the CACHE_ROOT | COMMENT |
| MEDIUM | tests/pytests/integration/cli/test_matcher.py | 392 | # Create a minion key, but do not start the "fake" minion. This mimics a | STRING |
| MEDIUM | …ts/pytests/integration/cli/test_salt_call_ownership.py | 16 | # Create a wrapper script for salt-call | COMMENT |
| MEDIUM | tests/pytests/integration/cli/test_salt_pip_user.py | 15 | # Create a wrapper script for salt-pip | COMMENT |
| MEDIUM | tests/pytests/integration/cli/test_salt_pip_user.py | 63 | # Create a config file that sets 'user' to the current non-root user | STRING |
| MEDIUM | tests/pytests/integration/minion/test_process_name.py | 36 | # Create a fresh master for this test | COMMENT |
| MEDIUM | tests/pytests/integration/minion/test_process_name.py | 42 | # Create a fresh minion with multiprocessing=False | COMMENT |
| MEDIUM⚡ | tests/pytests/integration/minion/test_process_name.py | 93 | # Create a fresh master for this test | COMMENT |
| MEDIUM⚡ | tests/pytests/integration/minion/test_process_name.py | 99 | # Create a fresh minion with multiprocessing=True | COMMENT |
| MEDIUM⚡ | tests/pytests/integration/minion/test_process_name.py | 149 | # Create a fresh master for this test | COMMENT |
| MEDIUM⚡ | tests/pytests/integration/minion/test_process_name.py | 155 | # Create a fresh minion | COMMENT |
| 393 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/ci.py | 55 | except Exception as exc: | CODE |
| LOW | tools/ci.py | 107 | except Exception as exc: | CODE |
| LOW | tools/ci.py | 220 | except Exception as exc: | CODE |
| LOW | tools/ci.py | 403 | except Exception as exc: | CODE |
| LOW | tools/ci.py | 476 | except Exception as exc: | CODE |
| LOW | tools/ci.py | 591 | except Exception as exc: | CODE |
| LOW | tools/ci.py | 793 | except Exception as exc: | CODE |
| LOW | tools/precommit/docs.py | 236 | except Exception as exc: # pylint: disable=broad-except | CODE |
| LOW | tools/pkg/build.py | 163 | except Exception: | CODE |
| LOW | tools/pkg/build.py | 1148 | except Exception as e: | CODE |
| LOW | tools/pkg/__init__.py | 177 | except Exception as exc: | STRING |
| MEDIUM | tests/conftest.py | 111 | def wrapper(pid, timeout=None): | CODE |
| LOW | tests/conftest.py | 556 | except Exception as err: # pylint: disable=broad-except | CODE |
| LOW | tests/conftest.py | 1551 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | tests/conftest.py | 1676 | except Exception as exc: # pylint: disable=broad-except | CODE |
| LOW | tests/conftest.py | 1694 | except Exception as exc: # pylint: disable=broad-except | CODE |
| LOW | tests/conftest.py | 1715 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | tests/unit/utils/test_win_system.py | 10 | except Exception as exc: # pylint: disable=broad-except | CODE |
| LOW | tests/unit/utils/test_vt.py | 134 | except Exception as exc: # pylint: disable=broad-except | CODE |
| LOW | tests/unit/utils/test_vt.py | 156 | except Exception as exc: # pylint: disable=broad-except | CODE |
| LOW⚡ | tests/unit/utils/test_process.py | 463 | except Exception: # pylint: disable=broad-except | CODE |
| LOW⚡ | tests/unit/utils/test_process.py | 469 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | tests/unit/utils/test_process.py | 491 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | tests/unit/utils/test_process.py | 497 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | tests/unit/utils/test_process.py | 518 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | tests/unit/utils/test_win_service.py | 7 | except Exception as exc: # pylint: disable=broad-except | CODE |
| LOW | tests/integration/output/test_output.py | 117 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | tests/integration/utils/test_win_runas.py | 142 | except Exception as exc: # pylint: disable=broad-except | CODE |
| LOW | tests/integration/utils/test_win_runas.py | 249 | except Exception as exc: # pylint: disable=broad-except | CODE |
| LOW | tests/integration/utils/test_win_runas.py | 253 | except Exception as exc: # pylint: disable=broad-except | CODE |
| LOW | tests/integration/pillar/test_git_pillar.py | 96 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | tests/integration/pillar/test_git_pillar.py | 101 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | tests/integration/netapi/rest_tornado/test_app.py | 258 | except Exception as exc: # pylint: disable=broad-except | CODE |
| LOW | tests/integration/cloud/helpers/virtualbox.py | 35 | except Exception as e: # pylint: disable=broad-except | CODE |
| MEDIUM | tests/integration/cloud/helpers/virtualbox.py | 32 | def assertMachineExists(self, name, msg=None): | CODE |
| LOW | tests/integration/modules/test_mysql.py | 15 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | tests/integration/modules/test_ssh.py | 29 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | tests/support/mixins.py | 613 | except Exception as exc: # pylint: disable=broad-except | CODE |
| LOW | tests/support/unit.py | 260 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | tests/support/case.py | 871 | except Exception: # pylint: disable=broad-except | STRING |
| LOW | tests/support/helpers.py | 232 | except Exception as exc: # pylint: disable=broad-except | CODE |
| LOW | tests/support/helpers.py | 251 | except Exception as exc: # pylint: disable=broad-except | CODE |
| LOW | tests/support/helpers.py | 350 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | tests/support/helpers.py | 354 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | tests/support/helpers.py | 741 | except Exception as exc: # pylint: disable=W0703 | CODE |
| LOW | tests/support/helpers.py | 835 | except Exception as exc: # pylint: disable=W0703 | CODE |
| LOW | tests/support/helpers.py | 959 | except Exception as exc: # pylint: disable=W0703 | CODE |
| LOW | tests/support/helpers.py | 1259 | except Exception as exc: # pylint: disable=broad-except | CODE |
| LOW | tests/support/pytest/transport.py | 160 | except Exception: # pylint: disable=broad-except | CODE |
| MEDIUM | tests/support/pytest/transport.py | 157 | def _run(self, loop): | CODE |
| LOW | tests/support/pytest/loader.py | 116 | except Exception as exc: # pylint: disable=broad-except | CODE |
| LOW | tests/support/pytest/helpers.py | 256 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | tests/support/pytest/helpers.py | 367 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | tests/support/pytest/helpers.py | 386 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | tests/support/pytest/helpers.py | 399 | except Exception: # pylint: disable=broad-except | CODE |
| MEDIUM | tests/pytests/unit/test_master.py | 2001 | def _register(aes, minion_id, resource_id, grain_value): | CODE |
| LOW | tests/pytests/unit/test_master.py | 2013 | except Exception as exc: # pylint: disable=broad-except | CODE |
| MEDIUM | tests/pytests/unit/test_minion_resources.py | 232 | def run_job(name, target): | CODE |
| LOW | tests/pytests/unit/test_minion_resources.py | 242 | except Exception as exc: # pylint: disable=broad-except | CODE |
| LOW | tests/pytests/unit/test_log.py | 35 | except Exception as err: # pylint: disable=broad-except | CODE |
| 1072 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tools/testsuite/container_test.py | 170 | "mkdir -p /root/.local/relenv && ln -sf /root/.cache/relenv/toolchains /root/.local/relenv/toolchain", | CODE |
| 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 ' | CODE |
| HIGH | tests/unit/utils/test_json.py | 26 | '{"None": null, "True": false, "dict": {"subdict": {"спам": "яйца"}}, "float":' | CODE |
| HIGH | tests/unit/utils/test_json.py | 34 | "None": null, | STRING |
| HIGH | tests/pytests/unit/test_pool_name_validation.py | 48 | "!@#$%^&*()", # NOW ALLOWED - special chars (except / \ null) | CODE |
| HIGH | tests/pytests/unit/renderers/test_yamlex.py | 60 | placeholder: {foo: !aggregate {bar: null}} | CODE |
| HIGH | tests/pytests/unit/fileclient/test_fileclient.py | 125 | # Authenticate must return true | COMMENT |
| HIGH | tests/pytests/unit/utils/test_yamldumper.py | 110 | exp_yaml = "{foo: null}\n" | CODE |
| HIGH⚡ | tests/pytests/unit/serializers/test_serializers.py | 220 | placeholder: !aggregate {bar: null} | STRING |
| HIGH⚡ | tests/pytests/unit/serializers/test_serializers.py | 232 | placeholder: {foo: !aggregate {bar: null}} | STRING |
| HIGH⚡ | tests/pytests/unit/serializers/test_serializers.py | 247 | placeholder: {!aggregate foo: {bar: null}} | STRING |
| HIGH⚡ | tests/pytests/unit/serializers/test_serializers.py | 263 | placeholder: {!aggregate foo: {bar: null}} | STRING |
| HIGH⚡ | tests/pytests/unit/modules/test_mac_brew_pkg.py | 77 | "auto_updates": null, | STRING |
| HIGH⚡ | tests/pytests/unit/modules/test_mac_brew_pkg.py | 78 | "bundle_short_version": null, | STRING |
| HIGH⚡ | tests/pytests/unit/modules/test_mac_brew_pkg.py | 79 | "bundle_version": null, | STRING |
| HIGH⚡ | tests/pytests/unit/modules/test_mac_brew_pkg.py | 80 | "caveats": null, | STRING |
| HIGH⚡ | tests/pytests/unit/modules/test_mac_brew_pkg.py | 81 | "conflicts_with": null, | STRING |
| HIGH⚡ | tests/pytests/unit/modules/test_mac_brew_pkg.py | 82 | "container": null, | STRING |
| HIGH⚡ | tests/pytests/unit/modules/test_mac_brew_pkg.py | 85 | "deprecation_date": null, | STRING |
| HIGH⚡ | tests/pytests/unit/modules/test_mac_brew_pkg.py | 86 | "deprecation_reason": null, | STRING |
| HIGH⚡ | tests/pytests/unit/modules/test_mac_brew_pkg.py | 88 | "disable_date": null, | STRING |
| HIGH⚡ | tests/pytests/unit/modules/test_mac_brew_pkg.py | 89 | "disable_reason": null, | STRING |
| HIGH⚡ | tests/pytests/unit/modules/test_mac_brew_pkg.py | 141 | "caveats": null, | STRING |
| HIGH⚡ | tests/pytests/unit/modules/test_mac_brew_pkg.py | 142 | "conflicts_with": null, | STRING |
| HIGH⚡ | tests/pytests/unit/modules/test_mac_brew_pkg.py | 143 | "container": null, | STRING |
| HIGH⚡ | tests/pytests/unit/modules/test_mac_brew_pkg.py | 152 | "deprecation_date": null, | STRING |
| HIGH⚡ | tests/pytests/unit/modules/test_mac_brew_pkg.py | 153 | "deprecation_reason": null, | STRING |
| HIGH⚡ | tests/pytests/unit/modules/test_mac_brew_pkg.py | 155 | "disable_date": null, | STRING |
| HIGH⚡ | tests/pytests/unit/modules/test_mac_brew_pkg.py | 156 | "disable_reason": null, | STRING |
| HIGH⚡ | tests/pytests/unit/modules/test_mac_brew_pkg.py | 230 | "caveats": null, | STRING |
| HIGH⚡ | tests/pytests/unit/modules/test_mac_brew_pkg.py | 237 | "deprecation_date": null, | STRING |
| HIGH⚡ | tests/pytests/unit/modules/test_mac_brew_pkg.py | 238 | "deprecation_reason": null, | STRING |
| HIGH⚡ | tests/pytests/unit/modules/test_mac_brew_pkg.py | 240 | "disable_date": null, | STRING |
| HIGH⚡ | tests/pytests/unit/modules/test_mac_brew_pkg.py | 241 | "disable_reason": null, | STRING |
| HIGH⚡ | tests/pytests/unit/modules/test_mac_brew_pkg.py | 393 | "deprecation_date": null, | STRING |
| HIGH⚡ | tests/pytests/unit/modules/test_mac_brew_pkg.py | 394 | "deprecation_reason": null, | STRING |
| HIGH⚡ | tests/pytests/unit/modules/test_mac_brew_pkg.py | 396 | "disable_date": null, | STRING |
| HIGH⚡ | tests/pytests/unit/modules/test_mac_brew_pkg.py | 397 | "disable_reason": null, | STRING |
| HIGH⚡ | tests/pytests/unit/modules/test_mac_brew_pkg.py | 848 | "full_token": null, | STRING |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 281 | "keg_only_reason": null, | STRING |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 292 | "pour_bottle_only_if": null, | STRING |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 300 | "service": null, | STRING |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 312 | "revision": null, | STRING |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 313 | "tag": null, | STRING |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 378 | "caveats": null, | STRING |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 478 | "keg_only_reason": null, | STRING |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 489 | "pour_bottle_only_if": null, | STRING |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 497 | "service": null, | STRING |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 509 | "revision": null, | STRING |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 510 | "tag": null, | STRING |
| HIGH | tests/pytests/unit/modules/test_mac_brew_pkg.py | 1417 | "tap": null, | STRING |
| HIGH | tests/pytests/unit/modules/test_minion.py | 112 | == "systemctl is-active salt-minion || systemctl start salt-minion" | CODE |
| HIGH⚡ | tests/pytests/unit/modules/test_cp.py | 114 | assert cp.push(path) == ret | CODE |
| HIGH | tests/pytests/unit/modules/test_cp.py | 151 | response = cp.push(filename) | CODE |
| HIGH | tests/pytests/unit/modules/test_debian_service.py | 156 | "insserv foo && update-rc.d foo enable", python_shell=True | CODE |
| HIGH⚡ | tests/pytests/unit/modules/test_grains.py | 649 | res = grainsmod.equals("a", "aval") | CODE |
| HIGH⚡ | tests/pytests/unit/modules/test_grains.py | 652 | res = grainsmod.equals("b:z", "zval") | CODE |
| HIGH⚡ | tests/pytests/unit/modules/test_grains.py | 654 | res = grainsmod.equals("b:z", "aval") | CODE |
| HIGH | tests/pytests/unit/modules/test_win_service.py | 257 | "/c ping -n 3 127.0.0.1 && net stop salt-minion && " | CODE |
| HIGH | tests/pytests/unit/modules/test_win_dsc_resource.py | 66 | == "@($true, 1, $null, 'x')" | CODE |
| 78 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| 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 | STRING |
| 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 | STRING |
| 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 | STRING |
| HIGH | salt/ext/ipaddress.py | 147 | Represent an address as 4 packed bytes in network (big-endian) order. Args: address: An integer representat | STRING |
| HIGH | salt/ext/ipaddress.py | 331 | Collapse a list of IP objects. Example: collapse_addresses([IPv4Network('192.0.2.0/25'), | STRING |
| HIGH | salt/ext/ipaddress.py | 472 | Return prefix length from the bitwise netmask. Args: ip_int: An integer, the netmask in expanded bi | STRING |
| HIGH | salt/ext/ipaddress.py | 502 | Return prefix length from a numeric string Args: prefixlen_str: The string to be converted | STRING |
| HIGH | salt/ext/ipaddress.py | 527 | Turn a netmask/hostmask string into a prefix length Args: ip_str: The netmask/hostmask to be conver | STRING |
| HIGH | salt/ext/ipaddress.py | 844 | Remove an address from a larger block. For example: addr1 = ip_network('192.0.2.0/28') | STRING |
| HIGH | salt/ext/ipaddress.py | 919 | Compare two IP objects. This is only concerned about the comparison of the integer representation of th | STRING |
| 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 | STRING |
| HIGH | salt/ext/ipaddress.py | 1030 | The supernet containing the current network. Args: prefixlen_diff: An integer, the amount the prefi | STRING |
| 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. | STRING |
| HIGH | salt/ext/ipaddress.py | 1257 | Convert a decimal octet into an integer. Args: octet_str: A string, the number to parse. R | STRING |
| HIGH | salt/ext/ipaddress.py | 1670 | Turn an IPv6 ip_str into an integer. Args: ip_str: A string, the IPv6 ip_str. Returns: | STRING |
| HIGH | salt/ext/ipaddress.py | 1774 | Convert an IPv6 hextet string into an integer. Args: hextet_str: A string, the number to parse. | STRING |
| HIGH | salt/ext/ipaddress.py | 1848 | Turns a 128-bit integer into hexadecimal notation. Args: ip_int: An integer, the IP address. | STRING |
| 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` | STRING |
| HIGH | salt/utils/win_lgpo_netsh.py | 293 | Gets all the properties for the specified profile in the specified store Args: profile (str): | STRING |
| HIGH | salt/utils/win_lgpo_netsh.py | 352 | Set the firewall inbound/outbound settings for the specified profile and store Args: profile (str | STRING |
| HIGH | salt/utils/win_lgpo_netsh.py | 468 | Configure logging settings for the Windows firewall. Args: profile (str): The firewall pr | STRING |
| HIGH | salt/utils/win_lgpo_netsh.py | 595 | Configure firewall settings. Args: profile (str): The firewall profile to configure. Vali | STRING |
| HIGH | salt/utils/win_lgpo_netsh.py | 689 | Enable or disable the firewall profile. Args: profile (str): The firewall profile to conf | STRING |
| HIGH | salt/utils/files.py | 977 | Detect a file's encoding using the following: - Check for Byte Order Marks (BOM) - Check for UTF-8 Markers | STRING |
| HIGH | salt/utils/win_chcp.py | 34 | Gets or sets the codepage of the shell. Args: page_id (str, int): A number representing t | STRING |
| HIGH | salt/utils/win_chcp.py | 82 | Get the currently set code page on windows Args: raise_error (bool): ``True`` will raise | STRING |
| HIGH | salt/utils/win_chcp.py | 110 | Set the code page on windows Args: page_id (str, int): A number representing the codepage | STRING |
| HIGH | salt/utils/cloud.py | 2580 | Helper function that waits for an IP address for a specific maximum amount of time. :param update_callback | STRING |
| HIGH | salt/utils/win_pdh.py | 133 | Makes a fully resolved counter path. Counter names are formatted like this: ``\Processor(*)\% | STRING |
| HIGH | salt/utils/win_lgpo_reg.py | 234 | Helper function to actually write the data to a Registry.pol file Also updates/edits the gpt.ini file to inclu | STRING |
| HIGH | salt/utils/win_lgpo_reg.py | 397 | Convert the data obtained from a Registry.pol file to a dictionary. Args: policy_data (bytes): The dat | STRING |
| HIGH | salt/utils/win_pwsh.py | 31 | Execute the PowerShell command and return the data as a dictionary .. versionadded:: 3006.9 Args: | STRING |
| 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 | STRING |
| HIGH | salt/utils/win_pwsh.py | 263 | Run a PowerShell command and raise on any error. Identical to :meth:`run` except that a ``CommandExecu | STRING |
| HIGH | salt/utils/requisite.py | 285 | Topological sort with lexicographical ordering via custom key function. Uses Kahn's algorithm with a p | STRING |
| 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 | STRING |
| HIGH | salt/utils/win_lgpo_auditpol.py | 692 | Get the current configuration for a single subcategory. Args: name (str): English subcategory name (ma | STRING |
| HIGH | salt/utils/win_lgpo_auditpol.py | 727 | Set the auditing bitmask for one subcategory. Enables ``SeSecurityPrivilege`` on the current process token for | STRING |
| 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 | STRING |
| 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 | STRING |
| HIGH | salt/utils/win_dacl.py | 2662 | Set permissions for the given path .. versionadded:: 2019.2.0 Args: obj_name (str): | STRING |
| HIGH | salt/utils/win_runas.py | 232 | Run ``cmd`` as ``username`` using a logon token and ``CreateProcessWithTokenW``. The minion must be able t | STRING |
| HIGH | salt/utils/win_runas.py | 539 | Run ``cmd`` as ``username`` using ``CreateProcessWithLogonW`` (with profile). Used when :func:`runas` cannot u | STRING |
| HIGH | salt/states/file.py | 1535 | Helper function for creating directories when the ``makedirs`` option is set to ``True``. Handles Unix and Wind | STRING |
| 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 | STRING |
| HIGH | salt/modules/win_dsc.py | 496 | Remove the current DSC Configuration. Removes current, pending, and previous dsc configurations. .. versio | STRING |
| HIGH | salt/modules/win_snmp.py | 379 | Manage the SNMP accepted community names and their permissions. .. note:: Settings managed by Group Po | STRING |
| HIGH | salt/modules/win_dsc_resource.py | 127 | Return the current state of a DSC resource by calling ``Invoke-DscResource -Method Get``. Args: n | STRING |
| HIGH | salt/modules/win_dsc_resource.py | 189 | Test whether a DSC resource is in the desired state by calling ``Invoke-DscResource -Method Test``. Args: | STRING |
| HIGH | salt/modules/win_dsc_resource.py | 251 | Apply a DSC resource to the desired state by calling ``Invoke-DscResource -Method Set``. Args: na | STRING |
| 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. | STRING |
| 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 | STRING |
| HIGH | salt/modules/win_file.py | 1055 | .. versionadded:: 3005 Get the version of a file. .. note:: Not all files have version informatio | STRING |
| 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 | STRING |
| 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 | STRING |
| HIGH | salt/modules/win_file.py | 1621 | Ensure that the directory is available and permissions are set. Args: path (str): The ful | STRING |
| HIGH | salt/modules/win_file.py | 1731 | Ensure that the parent directory containing this path is available. Args: path (str): Th | STRING |
| HIGH | salt/modules/win_file.py | 1865 | Set owner and permissions for each directory created. Args: path (str): The full path to | STRING |
| HIGH | salt/modules/win_file.py | 2071 | Set permissions for the given path Args: path (str): The full path to the directory. | STRING |
| HIGH | salt/modules/win_firewall.py | 65 | Disable firewall profile Args: profile (:obj:`str`, optional): The name of the profile to | STRING |
| 50 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/unit/utils/test_vmware.py | 982 | MagicMock(return_value={"name": "fake_name"}), | CODE |
| LOW⚡ | tests/unit/utils/test_vmware.py | 985 | self.assertEqual(ret, "fake_name") | CODE |
| LOW⚡ | tests/unit/utils/test_vmware.py | 1754 | token="fake_token", | CODE |
| LOW⚡ | tests/unit/utils/test_vmware.py | 1764 | token="fake_token", | CODE |
| LOW | tests/unit/utils/test_vmware.py | 869 | self.mock_item_name = {"name": "fake_name"} | CODE |
| LOW | tests/unit/utils/test_vmware.py | 939 | "Properties of managed object 'fake_name' weren't retrieved", | CODE |
| LOW | tests/unit/utils/test_vmware.py | 1472 | MagicMock(return_value="fake_token"), | CODE |
| LOW | tests/unit/utils/test_vmware.py | 1631 | mock_token = MagicMock(return_value="fake_token") | CODE |
| LOW | tests/unit/utils/test_vmware.py | 1655 | token="fake_token", | CODE |
| LOW | tests/unit/utils/test_vmware.py | 1678 | token="fake_token", | CODE |
| LOW | tests/unit/utils/test_vmware.py | 1714 | token="fake_token", | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 39 | actual_ret = ipset.set_present(self.fake_name, self.fake_set_type) | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 40 | mock_check_set.assert_called_once_with(self.fake_name) | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 43 | self.fake_name, self.fake_set_type, "ipv4" | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 54 | "name": self.fake_name, | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 56 | "comment": f"ipset set {self.fake_name} already exists for ipv4", | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 67 | "name": self.fake_name, | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 69 | "comment": f"ipset set {self.fake_name} would be added for ipv4", | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 76 | "name": self.fake_name, | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 79 | self.fake_name | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 81 | "changes": {"locale": self.fake_name}, | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 87 | "name": self.fake_name, | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 89 | "comment": f"Failed to create set {self.fake_name} for ipv4: ", | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 129 | actual_ret = ipset.set_absent(self.fake_name) | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 130 | mock_check_set.assert_called_once_with(self.fake_name, "ipv4") | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 132 | mock_flush.assert_called_once_with(self.fake_name, "ipv4") | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 136 | mock_delete_set.assert_called_once_with(self.fake_name, "ipv4") | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 143 | "name": self.fake_name, | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 145 | "comment": f"ipset set {self.fake_name} for ipv4 is already absent", | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 152 | "name": self.fake_name, | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 154 | "comment": f"ipset set {self.fake_name} for ipv4 would be removed", | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 161 | "name": self.fake_name, | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 163 | "comment": f"Failed to delete set {self.fake_name} for ipv4: ", | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 170 | "name": self.fake_name, | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 173 | self.fake_name | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 203 | self.fake_name, self.fake_entries, set_name=self.fake_name | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 207 | [call(self.fake_name, e, "ipv4") for e in self.fake_entries], any_order=True | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 211 | call(self.fake_name, e, "ipv4", set_name=self.fake_name) | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 224 | "name": self.fake_name, | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 229 | "".format(self.fake_name) | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 237 | "name": self.fake_name, | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 242 | "".format(self.fake_name) | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 250 | "name": self.fake_name, | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 254 | "Error".format(self.fake_name) | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 262 | "name": self.fake_name, | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 267 | "".format(self.fake_name) | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 275 | "name": self.fake_name, | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 282 | self.assertDictEqual(ipset.present(self.fake_name), ret) | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 290 | fake_name = "fake_ipset" | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 311 | self.fake_name, self.fake_entries, set_name=self.fake_name | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 314 | [call(self.fake_name, e, "ipv4") for e in self.fake_entries], any_order=True | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 318 | call(self.fake_name, e, "ipv4", set_name=self.fake_name) | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 330 | "name": self.fake_name, | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 335 | "".format(self.fake_name) | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 343 | "name": self.fake_name, | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 348 | "".format(self.fake_name) | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 356 | "name": self.fake_name, | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 360 | " 192.168.1.3.\nError\n".format(self.fake_name) | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 368 | "name": self.fake_name, | CODE |
| LOW⚡ | tests/unit/states/test_ipset.py | 373 | "".format(self.fake_name) | CODE |
| 358 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/testsuite/__init__.py | 65 | CODE | |
| LOW | tests/integration/states/test_x509.py | 105 | CODE | |
| LOW | …ration/files/file/base/_modules/runtests_decorators.py | 45 | CODE | |
| LOW | …ration/files/file/base/_modules/runtests_decorators.py | 56 | CODE | |
| LOW | …ration/files/file/base/_modules/runtests_decorators.py | 62 | CODE | |
| LOW | tests/support/case.py | 90 | CODE | |
| LOW | tests/support/case.py | 339 | CODE | |
| LOW | tests/pytests/conftest.py | 671 | CODE | |
| LOW | tests/pytests/unit/transport/test_zeromq.py | 807 | CODE | |
| LOW | …ytests/unit/utils/batch_state/batch_state_scenarios.py | 34 | CODE | |
| LOW | tests/pytests/unit/states/virt/helpers.py | 4 | CODE | |
| LOW | tests/pytests/unit/states/virt/helpers.py | 49 | CODE | |
| LOW | tests/pytests/unit/modules/test_slsutil.py | 69 | CODE | |
| LOW | tests/pytests/functional/states/rabbitmq/conftest.py | 111 | CODE | |
| LOW | salt/exceptions.py | 23 | CODE | |
| LOW | salt/state.py | 832 | CODE | |
| LOW | salt/state.py | 2251 | CODE | |
| LOW | salt/state.py | 2757 | CODE | |
| LOW | salt/state.py | 3636 | CODE | |
| LOW | salt/state.py | 4891 | CODE | |
| LOW | salt/renderers/gpg.py | 517 | CODE | |
| LOW | salt/cluster/consensus/raft/node.py | 349 | CODE | |
| LOW | salt/transport/zeromq.py | 147 | CODE | |
| LOW | salt/transport/zeromq.py | 1671 | CODE | |
| LOW | salt/transport/ws.py | 275 | CODE | |
| LOW | salt/transport/tcp.py | 1606 | CODE | |
| LOW | salt/transport/base.py | 408 | CODE | |
| LOW | salt/config/__init__.py | 2919 | CODE | |
| LOW | salt/platform/win.py | 1315 | CODE | |
| LOW | salt/output/table_out.py | 70 | CODE | |
| LOW | salt/wheel/config.py | 21 | CODE | |
| LOW | salt/utils/pycrypto.py | 54 | CODE | |
| LOW | salt/utils/sshpki.py | 55 | CODE | |
| LOW | salt/utils/sshpki.py | 234 | CODE | |
| LOW | salt/utils/cloud.py | 1140 | CODE | |
| LOW | salt/utils/cloud.py | 1225 | CODE | |
| LOW | salt/utils/cloud.py | 1460 | CODE | |
| LOW | salt/utils/cloud.py | 1936 | CODE | |
| LOW | salt/utils/x509.py | 312 | CODE | |
| LOW | salt/utils/x509.py | 558 | CODE | |
| LOW | salt/utils/vt_helper.py | 29 | CODE | |
| LOW | salt/utils/vmware.py | 178 | CODE | |
| LOW | salt/utils/vmware.py | 406 | CODE | |
| LOW | salt/utils/jinja.py | 1283 | CODE | |
| LOW | salt/utils/vt.py | 104 | CODE | |
| LOW | salt/utils/vt.py | 676 | CODE | |
| LOW | salt/utils/thin.py | 743 | CODE | |
| LOW | salt/utils/aws.py | 261 | CODE | |
| LOW | salt/utils/aws.py | 399 | CODE | |
| LOW | salt/utils/win_update.py | 442 | CODE | |
| LOW | salt/utils/etcd_util.py | 135 | CODE | |
| LOW | salt/utils/master.py | 189 | CODE | |
| LOW | salt/utils/master.py | 304 | CODE | |
| LOW | salt/utils/win_osinfo.py | 88 | CODE | |
| LOW | salt/utils/http.py | 149 | CODE | |
| LOW | salt/utils/jid.py | 70 | CODE | |
| LOW | salt/utils/network.py | 102 | CODE | |
| LOW | salt/utils/network.py | 1642 | CODE | |
| LOW | salt/utils/network.py | 1650 | CODE | |
| LOW | salt/utils/napalm.py | 517 | CODE | |
| 352 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 108 | CODE | |
| LOW | setup.py | 109 | CODE | |
| LOW | setup.py | 1108 | CODE | |
| LOW | tools/release.py | 6 | CODE | |
| LOW | tools/gh.py | 6 | CODE | |
| LOW | tools/ci.py | 6 | CODE | |
| LOW | tools/__init__.py | 1 | CODE | |
| LOW | tools/__init__.py | 6 | CODE | |
| LOW | tools/docs.py | 6 | CODE | |
| LOW | tools/audit_doc_links.py | 21 | CODE | |
| LOW | tools/changelog.py | 6 | CODE | |
| LOW | tools/testsuite/container_test.py | 6 | CODE | |
| LOW | tools/testsuite/ci_failure.py | 6 | CODE | |
| LOW | tools/testsuite/download.py | 6 | CODE | |
| LOW | tools/testsuite/__init__.py | 6 | CODE | |
| LOW | tools/testsuite/pytest.py | 6 | CODE | |
| LOW | tools/utils/gh.py | 2 | CODE | |
| LOW | tools/utils/__init__.py | 2 | CODE | |
| LOW | tools/utils/repo.py | 2 | CODE | |
| LOW | tools/precommit/docs.py | 6 | CODE | |
| LOW | tools/precommit/docstrings.py | 8 | CODE | |
| LOW | tools/precommit/changelog.py | 6 | CODE | |
| LOW | tools/precommit/workflows.py | 6 | CODE | |
| LOW | tools/pkg/build.py | 6 | CODE | |
| LOW | tools/pkg/__init__.py | 6 | CODE | |
| LOW | tests/saltsh.py | 28 | CODE | |
| LOW | tests/conftest.py | 165 | CODE | |
| LOW | tests/unit/utils/test_dateutils.py | 14 | CODE | |
| LOW | tests/unit/utils/test_schema.py | 25 | CODE | |
| LOW | tests/unit/utils/test_schema.py | 32 | CODE | |
| LOW | tests/unit/states/test_x509.py | 14 | CODE | |
| LOW | tests/unit/modules/test_win_groupadd.py | 16 | CODE | |
| LOW | tests/unit/modules/test_win_groupadd.py | 18 | CODE | |
| LOW | tests/unit/modules/test_vsphere.py | 24 | CODE | |
| LOW | tests/unit/modules/test_vsphere.py | 24 | CODE | |
| LOW | tests/unit/modules/test_vsphere.py | 31 | CODE | |
| LOW | tests/integration/pillar/test_git_pillar.py | 82 | CODE | |
| LOW | tests/integration/pillar/test_git_pillar.py | 82 | CODE | |
| LOW | tests/integration/pillar/test_git_pillar.py | 82 | CODE | |
| LOW | tests/integration/states/test_x509.py | 17 | CODE | |
| LOW | tests/integration/modules/test_mysql.py | 14 | CODE | |
| LOW | tests/integration/modules/test_timezone.py | 15 | CODE | |
| LOW | tests/support/unit.py | 33 | CODE | |
| LOW | tests/support/unit.py | 37 | CODE | |
| LOW | tests/support/unit.py | 37 | CODE | |
| LOW | tests/support/unit.py | 37 | CODE | |
| LOW | tests/support/unit.py | 38 | CODE | |
| LOW | tests/support/unit.py | 38 | CODE | |
| LOW | tests/support/sshd_runtime.py | 13 | CODE | |
| LOW | tests/support/mock.py | 21 | CODE | |
| LOW | tests/support/mock.py | 27 | CODE | |
| LOW | tests/support/mock.py | 27 | CODE | |
| LOW | tests/support/mock.py | 27 | CODE | |
| LOW | tests/support/mock.py | 27 | CODE | |
| LOW | tests/support/mock.py | 27 | CODE | |
| LOW | tests/support/mock.py | 27 | CODE | |
| LOW | tests/support/mock.py | 27 | CODE | |
| LOW | tests/support/mock.py | 27 | CODE | |
| LOW | tests/support/mock.py | 27 | CODE | |
| LOW | tests/support/mock.py | 27 | CODE | |
| 252 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .pre-commit-config.yaml | 2461 | # pip 23.x trips on Py 3.14 metadata parsing; 25.x is needed. | COMMENT |
| LOW | noxfile.py | 361 | "--progress-bar=off", | COMMENT |
| LOW | tools/precommit/docstrings.py | 1101 | COMMENT | |
| LOW | tools/pkg/build.py | 881 | str(python_bin), | COMMENT |
| LOW | tests/conftest.py | 1981 | continue | COMMENT |
| LOW | tests/smoke-tests-before-commit.txt | 1 | # Commands to run locally before pushing Salt changes that touch integration tests | COMMENT |
| LOW | tests/unit/ext/test_ipaddress.py | 1 | # Copyright 2007 Google Inc. | COMMENT |
| LOW | tests/unit/ext/test_ipaddress.py | 61 | SMALLEST = _SMALLEST() | COMMENT |
| LOW | tests/unit/utils/test_process.py | 381 | COMMENT | |
| LOW | tests/unit/netapi/rest_tornado/test_saltnado.py | 1001 | ), patch.dict( | COMMENT |
| LOW | tests/unit/netapi/rest_tornado/test_saltnado.py | 1041 | # be testing that when minions are added within job_not_running, that it | COMMENT |
| LOW | tests/unit/modules/test_x509.py | 1 | # | COMMENT |
| LOW | tests/unit/modules/test_win_status.py | 161 | # call_count = 5 | COMMENT |
| LOW | tests/unit/modules/test_nxos_upgrade.py | 1 | """ | COMMENT |
| LOW | tests/unit/modules/nxos/nxos_n5k.py | 1 | """ | COMMENT |
| LOW | tests/unit/modules/nxos/nxos_n7k.py | 1 | """ | COMMENT |
| LOW | tests/unit/modules/nxos/nxos_n3k.py | 1 | """ | COMMENT |
| LOW | tests/unit/modules/nxos/nxos_n93klxc.py | 1 | """ | COMMENT |
| LOW | tests/unit/modules/nxos/nxos_platform.py | 1 | """ | COMMENT |
| LOW | tests/unit/modules/nxos/nxos_n36k.py | 1 | """ | COMMENT |
| LOW | tests/unit/modules/nxos/nxos_n95k.py | 1 | """ | COMMENT |
| LOW | tests/unit/modules/nxos/nxos_n93k.py | 1 | """ | COMMENT |
| LOW | tests/integration/modules/test_mysql.py | 1061 | ) | COMMENT |
| LOW | tests/integration/modules/test_mysql.py | 1161 | # query='SELECT 1', | COMMENT |
| LOW | tests/integration/modules/test_mysql.py | 1201 | # saltenv={"LC_ALL": "en_US.utf8"} | COMMENT |
| LOW | tests/support/unit.py | 161 | COMMENT | |
| LOW | tests/support/pkg.py | 1001 | if stop_services: | COMMENT |
| LOW | tests/support/pkg.py | 1341 | fp.write(f"Package: salt-*\nPin: version {pin}\nPin-Priority: 1001\n") | COMMENT |
| LOW | tests/pytests/smoke-tests.txt | 1 | # Salt cluster + mmap_cache smoke test selection. | COMMENT |
| LOW | tests/pytests/unit/transport/test_tcp.py | 361 | ) | COMMENT |
| LOW | tests/pytests/unit/transport/test_tcp.py | 381 | # | COMMENT |
| LOW | tests/pytests/unit/transport/test_tcp.py | 401 | # # assert the timeout callback was created | COMMENT |
| LOW | tests/pytests/unit/transport/test_tcp.py | 421 | # | COMMENT |
| LOW | tests/pytests/unit/transport/test_tcp.py | 441 | # | COMMENT |
| LOW | tests/pytests/unit/output/test_nested.py | 41 | # - two | COMMENT |
| LOW | tests/pytests/unit/utils/test_data.py | 121 | # so this should return False. | COMMENT |
| LOW | tests/pytests/unit/cli/test_batch_visibility.py | 341 | results = list(Batch.run(cli_batch)) | COMMENT |
| LOW | …sts/pytests/unit/fileserver/gitfs/test_gitfs_config.py | 141 | COMMENT | |
| LOW | tests/pytests/unit/modules/test_yumpkg.py | 1781 | }, | COMMENT |
| LOW | tests/pytests/unit/modules/test_cmdmod.py | 401 | assert error.value.args[0].endswith(expected_error) | COMMENT |
| LOW | tests/pytests/unit/beacons/test_network_settings.py | 161 | # | COMMENT |
| LOW | tests/pytests/unit/beacons/test_network_settings.py | 181 | # | COMMENT |
| LOW | tests/pytests/integration/cluster/conftest.py | 21 | # attributed failures to slow runners. Reproducing them with stress-ng on | COMMENT |
| LOW | …sts/pytests/integration/cluster/test_ring_lifecycle.py | 141 | # RING_REGISTRY entry. We don't have a runner that reads the | COMMENT |
| LOW | tests/pytests/integration/resources/conftest.py | 161 | # --------------------------------------------------------------------------- | COMMENT |
| LOW | tests/pytests/integration/cli/test_salt_key.py | 121 | # We can't load JSON because we print to stdout! | COMMENT |
| LOW | tests/pytests/integration/minion/test_return_retries.py | 61 | COMMENT | |
| LOW | tests/pytests/integration/loader/test_ext_grains.py | 1 | import pytest | COMMENT |
| LOW | tests/pytests/scenarios/cluster_kind/conftest.py | 401 | {"name": "ret", "containerPort": 4506}, | COMMENT |
| LOW | …s/pytests/scenarios/cluster_kind/setup-in-container.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tests/pytests/functional/cluster/consensus/smoke.txt | 1 | # Raft consensus smoke test selection | COMMENT |
| LOW | tests/pytests/functional/minion/test_fd_leak.py | 61 | "pki_dir": str(tmp_path / "pki"), | COMMENT |
| LOW | tests/pytests/functional/states/test_pip_state.py | 21 | VirtualEnv, | COMMENT |
| LOW | tests/pytests/functional/states/file/test_keyvalue.py | 21 | #Port 22 | COMMENT |
| LOW | tests/pytests/functional/states/file/test_replace.py | 341 | # ensure, the file content didn't change | COMMENT |
| LOW | tests/pytests/functional/modules/test_cmdmod.py | 601 | # in 3.11 and greater Python's subprocess module will not allow abc | COMMENT |
| LOW | tests/pytests/functional/modules/test_cmdmod.py | 621 | # ) | COMMENT |
| LOW | …ests/functional/modules/state/requisites/test_mixed.py | 261 | # test Infinite recursion prereq+require #8785 v3 | COMMENT |
| LOW | …ytests/functional/modules/state/requisites/test_use.py | 41 | - cmd: E | COMMENT |
| LOW | …ytests/functional/modules/state/requisites/test_use.py | 221 | # cmd.run: | COMMENT |
| 209 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/testsuite/container_test.py | 53 | # Check if docker daemon is running | COMMENT |
| LOW | tools/testsuite/container_test.py | 112 | # Check if container exists | COMMENT |
| LOW | tests/unit/modules/test_x509.py | 212 | # Check if property is the one we've added to the certificate. The | STRING |
| LOW | tests/unit/modules/test_x509.py | 252 | # Check if property is the one we've added to the certificate. The | STRING |
| LOW | tests/unit/modules/test_x509.py | 355 | # Check if property values are the ones we've added to the certificate. | STRING |
| LOW | tests/integration/modules/test_git.py | 95 | # Check if key is missing | COMMENT |
| LOW⚡ | tests/integration/modules/test_git.py | 909 | # Check if this new path is a worktree | COMMENT |
| LOW⚡ | tests/integration/modules/test_git.py | 911 | # Check if the main repo is a worktree | COMMENT |
| LOW⚡ | tests/integration/modules/test_git.py | 913 | # Check if a non-repo directory is a worktree | COMMENT |
| LOW⚡ | tests/support/unit.py | 50 | # Set SHOW_PROC to True to show | COMMENT |
| LOW | tests/pytests/unit/test_pool_name_edge_cases.py | 181 | # Check if resulting path would exceed Unix socket path limit (typically 108 bytes) | COMMENT |
| LOW | tests/pytests/unit/test_client.py | 57 | # Check if either minion1 or minion2 was targeted in the final call | COMMENT |
| LOW | tests/pytests/unit/states/test_pip.py | 53 | use_wheel=False, # Set False to simplify testing | CODE |
| LOW | tests/pytests/unit/modules/test_mine.py | 277 | # Check if the mine entries have been stored properly in the FakeCache. | COMMENT |
| LOW | tests/pytests/integration/executors/test_sudo.py | 83 | # Check if it already exists (another test might have created it) | STRING |
| LOW | tests/pytests/integration/executors/test_sudo.py | 159 | # Check if the output is 0. | STRING |
| LOW | tests/pytests/scenarios/performance/test_performance.py | 29 | # Check if image exists first | COMMENT |
| LOW | tests/pytests/scenarios/performance/test_performance.py | 47 | # Check if image exists first | COMMENT |
| LOW | tests/pytests/functional/test_pip_install.py | 121 | # Check if they are still running | COMMENT |
| LOW | tests/pytests/functional/channel/test_auth_downgrade.py | 310 | # Check if attack was blocked | COMMENT |
| LOW | tests/pytests/pkg/upgrade/systemd/conftest.py | 39 | # Check if the test has a custom salt_install_env marker | COMMENT |
| LOW | tests/pytests/pkg/upgrade/systemd/conftest.py | 221 | # Check if salt user exists before chowning (similar to minion_systemd fixture) | COMMENT |
| LOW | tests/pytests/pkg/upgrade/systemd/conftest.py | 427 | # Check if the current salt-call version supports --priv option | COMMENT |
| LOW | tests/pytests/pkg/upgrade/systemd/conftest.py | 501 | # Check if the current salt-call version supports --priv option | COMMENT |
| LOW | …/pytests/pkg/upgrade/systemd/test_install_with_user.py | 32 | # Check if --upgrade flag is present in the test config | COMMENT |
| LOW | …/pytests/pkg/upgrade/systemd/test_install_with_user.py | 166 | # Check if user exists | COMMENT |
| LOW | …/pytests/pkg/upgrade/systemd/test_install_with_user.py | 179 | # Check if the current salt-call version supports --priv option | COMMENT |
| LOW | tests/pytests/pkg/upgrade/systemd/test_permissions.py | 155 | # Check if the current salt-call version supports --priv option | COMMENT |
| LOW | agents/mcp/launch-salt-test.sh | 19 | # Set PYTHONPATH to the project root so we can import the agents package | COMMENT |
| LOW | salt/crypt.py | 2116 | # Check if we can skip AES encryption | COMMENT |
| LOW | salt/crypt.py | 2154 | # Check if data has TLS marker (was sent without AES) | COMMENT |
| LOW | salt/fileclient.py | 1266 | # Check if file exists on server, before creating files and | COMMENT |
| LOW⚡ | salt/master.py | 599 | # Check if scheduler requires lower loop interval than | COMMENT |
| LOW | salt/master.py | 3267 | # Check if key is configured to be auto-rejected/signed | COMMENT |
| LOW | salt/master.py | 3430 | # Check if the keys are the same and error out if this is the | COMMENT |
| LOW | salt/master.py | 4209 | # Check if 'minions' is included in returner's save_load arg_spec. | COMMENT |
| LOW | salt/minion.py | 717 | # Check if scheduler requires lower loop interval than | COMMENT |
| LOW | salt/minion.py | 1763 | # Check if file is older than 5 minutes (300 seconds) | COMMENT |
| LOW | salt/minion.py | 2281 | # Check if we should bypass the process_count_max check | COMMENT |
| LOW | salt/minion.py | 2404 | # Check if we are running in threading mode (multiprocessing=False) | COMMENT |
| LOW | salt/minion.py | 4765 | # Check if this candidate is blocked by any active jobs | COMMENT |
| LOW | salt/template.py | 184 | # Check if it starts with a shebang and not a path | COMMENT |
| LOW | salt/state.py | 2738 | # Check if this low chunk is paused | COMMENT |
| LOW | salt/cluster/consensus/raft/node.py | 1420 | # Check if we should snapshot now that commit_index advanced and entries were applied | COMMENT |
| LOW | salt/transport/tcp.py | 1344 | # Check if stream is still open | COMMENT |
| LOW⚡ | salt/transport/tls_util.py | 45 | # Check if optimization is enabled | COMMENT |
| LOW⚡ | salt/transport/tls_util.py | 49 | # Check if SSL is configured | COMMENT |
| LOW⚡ | salt/transport/tls_util.py | 55 | # Check if cert_reqs is CERT_REQUIRED | COMMENT |
| LOW | salt/transport/tls_util.py | 67 | # Check if peer certificate is present | COMMENT |
| LOW | salt/config/__init__.py | 883 | # Set this to -1 for unlimited attempts. This allows for a master to have | COMMENT |
| LOW | salt/config/__init__.py | 3825 | # Check if required fields are supplied in the provider config. If they | COMMENT |
| LOW | salt/config/__init__.py | 4124 | # Set environment to saltenv in case someone's custom module is | COMMENT |
| LOW | salt/config/__init__.py | 4384 | # Set environment to saltenv in case someone's custom runner is | COMMENT |
| LOW | salt/config/worker_pools.py | 249 | # Check if worker_pools is explicitly configured AND not empty | COMMENT |
| LOW | salt/utils/gzip_util.py | 88 | # Open the file and re-attempt the read | COMMENT |
| LOW | salt/utils/powershell.py | 88 | # Check if defaults exist, add them if they do | COMMENT |
| LOW | salt/utils/minions.py | 1481 | # Check if minions are allowed | COMMENT |
| LOW | salt/utils/thin.py | 551 | # Check if auto_detect is enabled and update dependencies | STRING |
| LOW | salt/utils/gitfs.py | 2707 | # Check if it's a valid repo | COMMENT |
| LOW | salt/utils/gitfs.py | 2855 | # Check if file exists and get its metadata | COMMENT |
| 98 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 683 | # If run_frame is None, just call the parent class logic | STRING |
| MEDIUM | tests/committer_parser.py | 6 | # May leverage GitHub API in the future | COMMENT |
| MEDIUM | tests/integration/modules/test_mine.py | 173 | # less flaky. If we still see it fail we need to look for a more robust | COMMENT |
| MEDIUM | tests/integration/modules/test_git.py | 507 | # TODO: More robust unset testing, try to trigger all the | COMMENT |
| LOW⚡ | tests/pytests/unit/cluster/consensus/test_raft_node.py | 1256 | # Should not raise — just return silently | COMMENT |
| LOW | tests/pytests/unit/fileserver/gitfs/test_gitfs.py | 49 | # can just use the Version instances imported along with | COMMENT |
| LOW | …sts/pytests/unit/fileserver/gitfs/test_gitfs_config.py | 21 | # can just use the Version instances imported along with | COMMENT |
| MEDIUM⚡ | tests/pytests/unit/returners/test_salt_cache.py | 183 | # test harness). The "compute matched set when tgt is set" | COMMENT |
| LOW | tests/pytests/unit/modules/test_pip.py | 247 | # As single string (just use the first element from pkgs and editables) | COMMENT |
| LOW | tests/pytests/unit/modules/test_pip.py | 318 | # As single string (just use the first element from mirrors) | COMMENT |
| LOW | tests/pytests/unit/modules/test_pip.py | 389 | # As single string (just use the first element from find_links) | COMMENT |
| LOW | tests/pytests/unit/modules/test_network.py | 221 | # The path exists, just return it | COMMENT |
| MEDIUM | tests/pytests/unit/pkg/test_rpm_minion_scriptlets.py | 94 | # response. The cheapest robust check is to ensure both tokens | COMMENT |
| MEDIUM | …s/integration/cluster/test_ring_lifecycle_shared_fs.py | 125 | # of tailing logs — more robust against unrelated log lines | COMMENT |
| MEDIUM | …scenarios/regression/test_fd_leak_task_cancellation.py | 82 | # With comprehensive task cancellation and shutdown, leak should be minimal | COMMENT |
| MEDIUM | tests/pytests/perf/test_cache_benchmarks.py | 78 | # already have ``__opts__`` from the live master harness (tiny mmap tables). | COMMENT |
| 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 | COMMENT |
| MEDIUM | salt/crypt.py | 622 | # facilitate migrating to pem named off the master id instead of master.pem | COMMENT |
| LOW | salt/crypt.py | 1044 | # if an auth is in flight-- and not done-- just pass that back as the future to wait on | COMMENT |
| LOW | salt/crypt.py | 1748 | # TODO: remove, we should just return a sync wrapper of AsyncAuth | COMMENT |
| LOW | salt/minion.py | 3410 | # Since we are already in the child process/thread, we just return. | COMMENT |
| LOW | salt/renderers/pyobjects.py | 462 | # if salt_data is not True then we just return the global scope we've | COMMENT |
| LOW | salt/output/highstate.py | 304 | # output() is recursive, if we aren't passed a dict just return it | COMMENT |
| LOW | salt/output/txt.py | 36 | # For non-dictionary, non-string data, just use print | COMMENT |
| MEDIUM | salt/output/table_out.py | 323 | # to facilitate re-use | COMMENT |
| MEDIUM | salt/utils/mmap_cache.py | 17 | # harness, and various salt-call entry points do not bundle. Importing this | COMMENT |
| LOW | salt/utils/url.py | 196 | # No match, just return the original string | COMMENT |
| LOW | salt/utils/nxos.py | 219 | # Don't just return body['ins_api']['outputs']['output'] directly. | COMMENT |
| LOW | salt/utils/args.py | 154 | # Therefore, skip YAML loading for these cases and just return the string | COMMENT |
| LOW | salt/utils/gitfs.py | 1164 | # Make sure that we have a positive integer timeout, otherwise just set | COMMENT |
| LOW | salt/utils/gitfs.py | 3505 | # We can't just use the return value from repo.fetch() | COMMENT |
| LOW | salt/utils/schedule.py | 1637 | # The "splay" configuration has been already processed, just use it | COMMENT |
| LOW | salt/utils/xmlutil.py | 31 | # for it, so just return a single dict representing it. | COMMENT |
| LOW | salt/utils/optsdict.py | 1016 | # For regular dict, just use keys() | COMMENT |
| LOW | salt/utils/optsdict.py | 1096 | # If setting to None, just use regular assignment | COMMENT |
| MEDIUM | salt/utils/win_runas.py | 340 | # Get a linked user token to elevate if needed | COMMENT |
| MEDIUM⚡ | salt/cloud/deploy/bootstrap-salt.sh | 6422 | # leverage the windows directories since release Windows and Linux | COMMENT |
| MEDIUM | salt/states/saltmod.py | 1002 | # the 'highstate' outputter, we can leverage this fact when merging the | COMMENT |
| LOW | salt/states/pkgrepo.py | 470 | # to use. Most package providers will simply return the data provided | COMMENT |
| LOW | salt/modules/git.py | 711 | # in the output in case there are thousands), so just return True. If there | COMMENT |
| LOW | salt/modules/rpm_lowpkg.py | 522 | # available, then we can just use SIZE for older versions. See Issue #31366. | COMMENT |
| LOW | salt/modules/win_event.py | 220 | # rather than wait just return | COMMENT |
| MEDIUM | salt/modules/pacmanpkg.py | 382 | # Use a compatible structure with yum, so we can leverage the existing state.group_installed | COMMENT |
| LOW | salt/modules/file.py | 6485 | # Local file paths will just return the same path back when passed | STRING |
| MEDIUM | salt/modules/win_lgpo.py | 2977 | # These policies can NOT be set in conjunction with Advanced | STRING |
| LOW | salt/modules/win_pkg.py | 410 | # If no args passed, just return everything | COMMENT |
| LOW | salt/modules/pip.py | 983 | # just return the output without running pip. | STRING |
| LOW | salt/modules/mac_service.py | 195 | # check if KeepAlive is True and not just set. | COMMENT |
| LOW | salt/modules/win_timezone.py | 282 | # if it's one of the key's just use it | COMMENT |
| LOW | salt/modules/win_timezone.py | 325 | # if it's one of the key's just use it | COMMENT |
| MEDIUM | salt/modules/bcache.py | 808 | # I'll utilize 'inter_ro' as 'misc' as well | COMMENT |
| LOW | salt/modules/grains.py | 296 | # Return the grains we just set to confirm everything was OK | COMMENT |
| MEDIUM | salt/modules/chocolatey.py | 537 | # moves more functions to this new paradigm | COMMENT |
| MEDIUM | salt/modules/chocolatey.py | 1375 | # moves more functions to this new paradigm | COMMENT |
| LOW | salt/modules/mysql.py | 3036 | # if the connection fails, we simply return False | STRING |
| LOW | salt/client/mixins.py | 278 | # just return True. | COMMENT |
| LOW | salt/client/__init__.py | 1671 | # if we have all the minion returns, lets just return | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | tests/pytests/unit/utils/test_thin.py | 791 | thin.salt.utils.hashutils.get_hash.assert_called() | CODE |
| CRITICAL | tests/pytests/unit/utils/test_thin.py | 808 | thin.salt.utils.hashutils.get_hash.assert_called() | CODE |
| CRITICAL | tests/pytests/unit/cli/test_ssh.py | 7 | Test that `salt.client.ssh.SSH.fsclient.destroy()` is called. | STRING |
| CRITICAL | salt/modules/yumpkg.py | 736 | salt.utils.pkg.rpm.QUERYFORMAT.replace("%{REPOID}", "(none)") + "\n", | CODE |
| CRITICAL | salt/modules/rpm_lowpkg.py | 110 | queryformat = salt.utils.pkg.rpm.QUERYFORMAT.replace("%{REPOID}", "none") | CODE |
| CRITICAL⚡ | salt/modules/chroot.py | 244 | salt.client.ssh.wrapper.state._cleanup_slsmod_low_data(chunks) | CODE |
| CRITICAL | salt/modules/chroot.py | 358 | salt.client.ssh.wrapper.state._merge_extra_filerefs( | CODE |
| CRITICAL | salt/modules/chroot.py | 402 | salt.client.ssh.wrapper.state._merge_extra_filerefs( | CODE |
| CRITICAL | salt/modules/zypperpkg.py | 932 | salt.utils.pkg.rpm.QUERYFORMAT.replace("%{REPOID}", "(none)") + "\n", | CODE |
| 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 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | CHANGELOG.md | 6999 | - [#54521](https://github.com/saltstack/salt/issues/54521) - `failhard` during orchestration now fails as expected - [@m | CODE |
| MEDIUM | tests/pytests/unit/states/saltmod/test_state.py | 850 | # The error message text must appear in the orchestrate comment, | COMMENT |
| MEDIUM | …egration/runners/state/orchestrate/test_orchestrate.py | 422 | # wheel modules are fully loaded before the orchestrate call. | STRING |
| MEDIUM | …s/integration/runners/state/orchestrate/test_events.py | 275 | # Without soft kill, the orchestration will fail because stage_two is set to fail | STRING |
| MEDIUM | …s/integration/runners/state/orchestrate/test_events.py | 284 | # With soft kill set, 'stage_two' will not run, thus, the orchestration will not fail | STRING |
| MEDIUM⚡ | salt/cluster/state_sync.py | 114 | # eof before falling back to event-driven replication. | COMMENT |
| MEDIUM | salt/output/highstate.py | 287 | # in the "data" key, as the orchestrate runner does. See Issue #31330, | COMMENT |
| MEDIUM | salt/output/highstate.py | 311 | # Discard retcode in dictionary as present in orchestrate data | COMMENT |
| MEDIUM | salt/utils/event.py | 194 | # Don't let a problem here hold up the rest of the orchestration | COMMENT |
| MEDIUM | salt/cli/run.py | 37 | # changed for the orchestrate runner, but external | COMMENT |
| MEDIUM | salt/channel/server.py | 3375 | # back to immediate learner start; event-driven | COMMENT |
| MEDIUM | salt/states/saltmod.py | 411 | # see *why* their orchestrate run failed instead of only seeing the | COMMENT |
| MEDIUM | salt/states/saltmod.py | 491 | # was not a state-result dict — without this, the orchestrate | COMMENT |
| MEDIUM | salt/states/saltmod.py | 940 | # state.orchestrate | COMMENT |
| MEDIUM | salt/runners/batch.py | 129 | # Ask the BatchManager to finalize via its event-driven path; it | COMMENT |
| MEDIUM | salt/runners/state.py | 149 | # Aliases for orchestrate runner | COMMENT |
| MEDIUM | salt/modules/bcache.py | 421 | # filter out 'hidden' kwargs added by our favourite orchestration system | COMMENT |
| MEDIUM | salt/client/mixins.py | 313 | # runner/wheel output during orchestration). | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| 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 | COMMENT |
| 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 | COMMENT |
| 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 | COMMENT |
| 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 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/testsuite/container_test.py | 129 | # Step 1: Decompress dependencies | COMMENT |
| LOW | tools/testsuite/container_test.py | 152 | # Step 2: Create relenv toolchain symlink (Python 3.14+) | COMMENT |
| LOW | tools/testsuite/container_test.py | 194 | # Step 3: Verify setup | COMMENT |
| LOW | tests/buildpackage.py | 3 | # WARNING: This script will recursively remove the build and artifact | COMMENT |
| LOW⚡ | tests/pytests/unit/_logging/test_impl.py | 103 | # Step 1: buffer a record using the plain factory. | COMMENT |
| LOW⚡ | tests/pytests/unit/_logging/test_impl.py | 112 | # Step 2: install the color factory and a color-format console handler. | COMMENT |
| LOW⚡ | tests/pytests/unit/_logging/test_impl.py | 120 | # Step 3: sync the deferred handler's buffered records out. | COMMENT |
| LOW | …/pytests/integration/modules/state/test_state_queue.py | 58 | # Step 1: Run a state job with queue=True | STRING |
| LOW | …/pytests/integration/modules/state/test_state_queue.py | 71 | # Step 2: Verify no files were left in state_queue | STRING |
| LOW | …s/pytests/integration/modules/state/test_queue_race.py | 102 | # Step 1: Occupy the only slot using subprocess to avoid fixture argument issues | STRING |
| LOW | …s/pytests/integration/modules/state/test_queue_race.py | 144 | # Step 2: Queue Job 1 - should be queued due to process_count_max=1 | STRING |
| LOW | …s/pytests/integration/modules/state/test_queue_race.py | 156 | # Step 3: Verify Job 1 is in job_queue on disk | STRING |
| LOW | …s/pytests/integration/modules/state/test_queue_race.py | 170 | # Step 4: Queue Job 2 - should also be queued since slot is still occupied | STRING |
| LOW | …s/pytests/integration/modules/state/test_queue_race.py | 182 | # Step 5: Verify Job 2 is also in job_queue | STRING |
| LOW | …s/pytests/integration/modules/state/test_queue_race.py | 196 | # Step 6: Verify queuing actually happened under load | STRING |
| LOW | agents/docs/git-and-ci.md | 70 | ### Step 1: Download CI Artifacts | COMMENT |
| LOW | agents/docs/git-and-ci.md | 80 | ### Step 2: Create Container | COMMENT |
| LOW | agents/docs/git-and-ci.md | 102 | ### Step 3: Setup Container | COMMENT |
| LOW | agents/docs/git-and-ci.md | 112 | ### Step 4: Run Tests | COMMENT |
| LOW | agents/docs/git-and-ci.md | 130 | ### Step 5: Debug in Container | COMMENT |
| LOW | agents/docs/git-and-ci.md | 143 | ### Step 6: Cleanup | COMMENT |
| LOW | pkg/windows/msi/README-how-to-build.md | 20 | ### Step 1: build the Nullsoft (NSIS) exe installer or use the mockup | COMMENT |
| LOW | pkg/windows/msi/README-how-to-build.md | 26 | ### Step 2: build the msi installer | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/integration/utils/test_win_runas.py | 37 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/support/unit.py | 304 | __all__ = [ | CODE |
| LOW | tests/support/pytest/helpers.py | 941 | __all__ = [ | STRING |
| LOW | salt/syspaths.py | 232 | __all__ = [ | CODE |
| LOW | salt/renderers/stateconf.py | 42 | __all__ = ["render"] | CODE |
| LOW | salt/ext/importlib_metadata/__init__.py | 62 | __all__ = [ | CODE |
| LOW | salt/ext/importlib_metadata/_compat.py | 26 | __all__ = ['install', 'NullFinder', 'PyPy_repr'] | CODE |
| LOW | salt/utils/aggregation.py | 109 | __all__ = ["aggregate", "Aggregate", "Map", "Scalar", "Sequence"] | CODE |
| LOW | salt/utils/yamlloader.py | 18 | __all__ = ["SaltYamlSafeLoader", "load", "safe_load"] | CODE |
| LOW | salt/utils/jinja.py | 44 | __all__ = ["SaltCacheLoader", "SerializerExtension"] | CODE |
| LOW | salt/utils/yamlloader_old.py | 22 | __all__ = ["SaltYamlSafeLoader", "load", "safe_load"] | CODE |
| LOW | salt/utils/datastructures.py | 11 | __all__ = ["DefaultOrderedDict", "HashableOrderedDict"] | CODE |
| LOW | salt/utils/yamldumper.py | 28 | __all__ = [ | CODE |
| LOW | salt/netapi/rest_cherrypy/event_processor.py | 6 | logger = logging.getLogger(__name__) | CODE |
| LOW | salt/netapi/rest_cherrypy/app.py | 651 | logger = logging.getLogger(__name__) | CODE |
| LOW | salt/serializers/yaml.py | 21 | __all__ = ["deserialize", "serialize", "available"] | CODE |
| LOW | salt/serializers/configparser.py | 15 | __all__ = ["deserialize", "serialize", "available"] | CODE |
| LOW | salt/serializers/yamlex.py | 119 | __all__ = ["deserialize", "serialize", "available"] | CODE |
| LOW | salt/serializers/json.py | 19 | __all__ = ["deserialize", "serialize", "available"] | CODE |
| LOW | salt/serializers/tomlmod.py | 25 | __all__ = ["deserialize", "serialize", "HAS_TOML"] | CODE |
| LOW | salt/states/pip_state.py | 138 | logger = logging.getLogger(__name__) | CODE |
| LOW | salt/modules/pip.py | 99 | logger = logging.getLogger(__name__) # pylint: disable=invalid-name | STRING |
| LOW | salt/modules/nixpkg.py | 33 | logger = logging.getLogger(__name__) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/unit/utils/test_gitfs.py | 86 | # Clear the instance map so that we make sure to create a new instance | COMMENT |
| LOW | tests/pytests/unit/utils/test_gitfs_locks.py | 115 | # Clear the instance map so that we make sure to create a new instance | COMMENT |
| LOW | tests/pytests/unit/modules/test_mysql.py | 984 | -- Please don't forget to set up the tablenames in config.inc.php | STRING |
| LOW | tests/pytests/unit/modules/test_mysql.py | 1040 | -- Please don't forget to set up the tablenames in config.inc.php | CODE |
| 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 | COMMENT |
| LOW | salt/auth/ldap.py | 251 | # so make sure to render it first before using it | COMMENT |
| LOW | salt/utils/process.py | 638 | # make sure to kill the subprocesses if the parent is killed | COMMENT |
| MEDIUM | salt/states/x509.py | 26 | Here is a simple example scenario. In this example ``ca`` is the ca server, | STRING |
| MEDIUM | salt/states/ssh_pki.py | 29 | Here is a simple example scenario. In this example, ``ca`` is the CA server | STRING |
| MEDIUM | salt/states/x509_v2.py | 34 | Here is a simple example scenario. In this example ``ca`` is the ca server, | STRING |
| MEDIUM | salt/grains/core.py | 2468 | # It's worth noting that Ubuntu has patched their Python distribution | COMMENT |
| MEDIUM | salt/modules/win_task.py | 1911 | # TODO: save it. Then you can add a new function. Maybe for editing an | STRING |
| LOW | salt/client/mixins.py | 444 | # if we fired an event, make sure to delete the event object. | COMMENT |
| LOW⚡ | pkg/macos/build.sh | 95 | # Don't forget to pass the `-E` option when running with Sudo so that | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/testsuite/container_test.py | 129 | # Step 1: Decompress dependencies | COMMENT |
| LOW | tools/testsuite/container_test.py | 152 | # Step 2: Create relenv toolchain symlink (Python 3.14+) | COMMENT |
| LOW | tools/testsuite/container_test.py | 194 | # Step 3: Verify setup | COMMENT |
| LOW⚡ | tests/pytests/unit/_logging/test_impl.py | 103 | # Step 1: buffer a record using the plain factory. | COMMENT |
| LOW⚡ | tests/pytests/unit/_logging/test_impl.py | 112 | # Step 2: install the color factory and a color-format console handler. | COMMENT |
| LOW⚡ | tests/pytests/unit/_logging/test_impl.py | 120 | # Step 3: sync the deferred handler's buffered records out. | COMMENT |
| LOW | …/pytests/integration/modules/state/test_state_queue.py | 58 | # Step 1: Run a state job with queue=True | STRING |
| LOW | …/pytests/integration/modules/state/test_state_queue.py | 71 | # Step 2: Verify no files were left in state_queue | STRING |
| LOW | …s/pytests/integration/modules/state/test_queue_race.py | 102 | # Step 1: Occupy the only slot using subprocess to avoid fixture argument issues | STRING |
| LOW | …s/pytests/integration/modules/state/test_queue_race.py | 144 | # Step 2: Queue Job 1 - should be queued due to process_count_max=1 | STRING |
| LOW | …s/pytests/integration/modules/state/test_queue_race.py | 156 | # Step 3: Verify Job 1 is in job_queue on disk | STRING |
| LOW | …s/pytests/integration/modules/state/test_queue_race.py | 170 | # Step 4: Queue Job 2 - should also be queued since slot is still occupied | STRING |
| LOW | …s/pytests/integration/modules/state/test_queue_race.py | 182 | # Step 5: Verify Job 2 is also in job_queue | STRING |
| LOW | …s/pytests/integration/modules/state/test_queue_race.py | 196 | # Step 6: Verify queuing actually happened under load | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/pytests/unit/modules/test_mac_user.py | 73 | # TODO: Implement tests after clarifications come in | COMMENT |
| LOW | salt/output/progress.py | 25 | # TODO: implement a way to get the proper target minions count and remove this workaround. | COMMENT |
| LOW | salt/utils/thin.py | 374 | # TODO: implement inheritance of the modules from _here_ | STRING |
| LOW | salt/states/git.py | 2534 | # TODO: implement clean function for git module and add clean flag | COMMENT |
| LOW | salt/runners/manage.py | 248 | # TODO: implement other states support for 0MQ | COMMENT |
| LOW | salt/client/ssh/wrapper/publish.py | 81 | # TODO: implement returners? Do they make sense for salt-ssh calls? | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | cicd/gh-rerun-failed-jobs-from-snapshot.sh | 8 | # Usage: | COMMENT |
| LOW | pkg/macos/sign_binaries.sh | 16 | # Usage: | COMMENT |
| LOW | pkg/macos/build.sh | 28 | # Usage: | COMMENT |
| LOW | pkg/macos/package.sh | 16 | # Usage: | COMMENT |
| LOW⚡ | pkg/macos/prep_salt.sh | 14 | # Usage: | COMMENT |
| LOW | pkg/macos/notarize.sh | 29 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | salt/pillar/sql_base.py | 210 | # I have added some for clarity. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/pytests/unit/states/saltmod/test_function.py | 16 | def test_function(): | CODE |
| LOW | …n/ssh/state/test_retcode_state_run_remote_exception.py | 32 | def do_stuff(name): | CODE |
| LOW | tests/pytests/functional/transport/tcp/test_tcp_ssl.py | 116 | async def handle_request(payload, header=None): | CODE |
| LOW | tests/pytests/functional/transport/ws/test_ws_ssl.py | 114 | async def handle_request(payload, header=None): | CODE |
| LOW | salt/transport/ws.py | 465 | async def handle_request(self, request): | CODE |
| LOW | salt/utils/files.py | 92 | def helper(*args, **kwargs): | CODE |
| LOW | salt/modules/celery.py | 36 | def run_task( | CODE |