Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy and maintain. Automate everything from code deployment to network configuration to cloud management, in a language that approaches plain English, using SSH, with no agents to install on remote systems. https://docs.ansible.com.
This report summarizes scanner evidence for ansible/ansible, a Python project with 70,952 GitHub stars. SynthScan examined 391,775 lines of code across 4548 source files, recording 6173 pattern matches distributed across 23 syntactic categories. The legacy adjusted pattern signal is 23.2 (Elevated pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 3307 finding(s).
Are imports declared and package/API names verified? 1898 finding(s).
Are wrappers, guards, and repeated structures necessary? 2777 finding(s).
Which changes need focused human review? 6173 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 6173 distinct pattern matches across 23 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | packaging/release.py | 808 | def get_latest_setuptools_version() -> Version: | CODE |
| LOW⚡ | packaging/release.py | 816 | def set_setuptools_upper_bound(requested_version: Version) -> None: | CODE |
| LOW | packaging/release.py | 840 | def create_reproducible_sdist(original_path: pathlib.Path, output_path: pathlib.Path, mtime: int) -> None: | CODE |
| LOW | packaging/release.py | 855 | def create_reproducible_tar_info(original: tarfile.TarInfo, mtime: int) -> tarfile.TarInfo: | CODE |
| LOW | packaging/release.py | 915 | def get_release_artifact_details(repository: str, version: Version, validate: bool) -> list[ReleaseArtifact]: | CODE |
| LOW | packaging/release.py | 929 | def describe_release_artifact(version: Version, item: dict[str, t.Any], validate: bool) -> ReleaseArtifact: | CODE |
| LOW | packaging/release.py | 985 | def create_template_environment() -> jinja2.Environment: | CODE |
| LOW | packaging/release.py | 995 | def create_github_release_notes(upstream: Remote, repository: str, version: Version, validate: bool) -> str: | CODE |
| LOW | packaging/cli-doc/build.py | 177 | def populate_subparser_actions(parser: argparse.ArgumentParser, shared_option_names: tuple[str, ...], actions: dict[str, | CODE |
| LOW | …n/targets/error-redaction/filter_plugins/make_error.py | 15 | def make_redacted_context_error(value: object) -> None: | CODE |
| LOW | …n/targets/error-redaction/filter_plugins/make_error.py | 22 | def make_redacted_orig_exc_error(value: object) -> None: | CODE |
| LOW | …st/integration/targets/ansible-test-container/runme.py | 130 | def get_container_completion_entries() -> dict[str, dict[str, str]]: | CODE |
| LOW | …st/integration/targets/ansible-test-container/runme.py | 376 | def prepare_prime_podman_storage() -> list[str]: | CODE |
| LOW | …st/integration/targets/ansible-test-container/runme.py | 862 | def configure_unprivileged_user(cls) -> None: | CODE |
| LOW | …ts/inventory_cache/plugins/inventory/exercise_cache.py | 103 | def test_update_cache_if_changed(self): | STRING |
| LOW | …egration/targets/dnf/filter_plugins/dnf_module_list.py | 29 | def get_first_single_version_module(stdout): | CODE |
| LOW | …filter_plugins/override_formerly_core_masked_filter.py | 4 | def override_formerly_core_masked_filter(*args, **kwargs): | CODE |
| LOW | …ons/test_plugins/override_formerly_core_masked_test.py | 4 | def override_formerly_core_masked_test(value, *args, **kwargs): | CODE |
| LOW | …rgets/ansible-galaxy-collection/files/build_bad_tar.py | 47 | def calculate_target_filename(symlink_path, linkname): | CODE |
| LOW | test/sanity/code-smell/update-bundled.py | 57 | def get_files_with_bundled_metadata(paths): | CODE |
| LOW | test/sanity/code-smell/update-bundled.py | 105 | def get_latest_applicable_version(pypi_data, constraints=None): | CODE |
| LOW | test/units/conftest.py | 58 | # def prevent_collection_loader_leak(request: pytest.FixtureRequest): | COMMENT |
| LOW | test/units/controller_only_conftest.py | 21 | def _zap_vault_secrets_context() -> t.Generator[None]: | CODE |
| LOW | test/units/controller_only_conftest.py | 34 | def _empty_vault_secrets_context(_zap_vault_secrets_context) -> t.Generator[None]: | CODE |
| LOW | test/units/controller_only_conftest.py | 52 | def _ignore_untrusted_template(mocker: MockerFixture) -> t.Generator[None]: | CODE |
| LOW⚡ | test/units/_internal/test_secret_input.py | 27 | def test_yaml_secrets_are_masked(tmp_path: pathlib.Path) -> None: | CODE |
| LOW⚡ | test/units/_internal/test_secret_input.py | 35 | def test_json_secrets_are_masked(tmp_path: pathlib.Path) -> None: | CODE |
| LOW⚡ | test/units/_internal/test_secret_input.py | 43 | def test_multiple_files_are_masked(tmp_path: pathlib.Path) -> None: | CODE |
| LOW⚡ | test/units/_internal/test_secret_input.py | 52 | def test_executable_secrets_are_masked(tmp_path: pathlib.Path) -> None: | CODE |
| LOW | test/units/_internal/test_secret_input.py | 63 | def test_empty_secrets_list_is_accepted(tmp_path: pathlib.Path) -> None: | CODE |
| LOW | test/units/_internal/test_secret_input.py | 102 | def test_non_string_secret_not_cast(tmp_path: pathlib.Path, entry: str) -> None: | CODE |
| LOW | test/units/_internal/test_secret_input.py | 109 | def test_executable_non_zero_exit(tmp_path: pathlib.Path) -> None: | CODE |
| LOW | test/units/_internal/test_event_formatting.py | 12 | def test_traceback_formatting() -> None: | CODE |
| LOW | test/units/_internal/_encryption/test_crypt.py | 12 | def test_unsupported_platform(self, mocker: MockerFixture) -> None: | CODE |
| LOW | test/units/_internal/_encryption/test_crypt.py | 35 | def test_library_with_no_crypt_methods(self, mocker: MockerFixture) -> None: | CODE |
| LOW | test/units/_internal/_encryption/test_crypt.py | 50 | def test_library_with_no_crypt_r_or_crypt_gensalt_rn(self, mocker: MockerFixture) -> None: | CODE |
| LOW | test/units/_internal/_encryption/test_crypt.py | 100 | def test_crypt_result_failure(self, mocker: MockerFixture, failure_token: bytes) -> None: | CODE |
| LOW | test/units/_internal/_encryption/test_crypt.py | 108 | def test_crypt_gensalt_called_with_no_impl(self, mocker: MockerFixture) -> None: | CODE |
| LOW⚡ | test/units/_internal/_encryption/test_crypt.py | 126 | def test_crypt_gensalt_fail_errno(self, mocker: MockerFixture) -> None: | CODE |
| LOW⚡ | test/units/_internal/_encryption/test_crypt.py | 134 | def test_crypt_gensalt_result_none(self, mocker: MockerFixture) -> None: | CODE |
| LOW⚡ | test/units/_internal/_encryption/test_crypt.py | 142 | def test_crypt_gensalt_result_failure(self, mocker: MockerFixture) -> None: | CODE |
| LOW | test/units/_internal/_errors/test_alarm_timeout.py | 30 | def test_alarm_timeout_success(timeout: int | None) -> None: | CODE |
| LOW | test/units/_internal/_errors/test_alarm_timeout.py | 41 | def test_alarm_timeout_timeout() -> None: | CODE |
| LOW | test/units/_internal/_errors/test_alarm_timeout.py | 61 | def test_alarm_timeout_bad_values(timeout: t.Any, expected_error_type: type[Exception], expected_error_pattern: str) -> | CODE |
| LOW | test/units/_internal/_errors/test_alarm_timeout.py | 72 | def test_alarm_timeout_bad_state() -> None: | CODE |
| LOW | test/units/_internal/_errors/test_alarm_timeout.py | 118 | def test_alarm_timeout_escape_broad_exception(): | CODE |
| LOW | test/units/_internal/_errors/test_error_utils.py | 57 | def test_exception_result_contribution(exceptions: t.Sequence[BaseException], expected: dict[str, t.Any]) -> None: | CODE |
| LOW | test/units/_internal/_errors/test_task_timeout.py | 8 | def test_task_timeout_result_contribution() -> None: | CODE |
| LOW | test/units/_internal/_ansiballz/test_builder.py | 7 | def test_debugger_source_mapping() -> None: | CODE |
| LOW | test/units/_internal/templating/test_common_.py | 17 | def get_dunder_methods_to_intercept() -> list[str]: | CODE |
| LOW | test/units/_internal/templating/test_common_.py | 67 | def test_jinja_undefined_shape(): | CODE |
| LOW | test/units/_internal/templating/test_common_.py | 96 | def test_getattr_attribute_error(marker: Marker) -> None: | CODE |
| LOW | test/units/_internal/templating/test_utils.py | 22 | def test_marker_getattr_dunder(marker: Marker) -> None: | CODE |
| LOW | test/units/_internal/templating/conftest.py | 22 | def get_concrete_marker_types() -> list[type[Marker]]: | CODE |
| LOW⚡ | test/units/_internal/templating/test_lazy_containers.py | 514 | def test_list_adapter_equality(value: str, expected: list) -> None: | CODE |
| LOW⚡ | test/units/_internal/templating/test_lazy_containers.py | 521 | def test_list_adapter_source_propagation(value: t.Any) -> None: | CODE |
| LOW⚡ | test/units/_internal/templating/test_lazy_containers.py | 528 | def test_lazy_containers_to_yaml(value: t.Any) -> None: | CODE |
| LOW⚡ | test/units/_internal/templating/test_lazy_containers.py | 533 | def test_lazy_containers_to_json(value: t.Any) -> None: | CODE |
| LOW⚡ | test/units/_internal/templating/test_lazy_containers.py | 760 | def call_filter_with_native_args_kwargs() -> t.Any: | CODE |
| LOW⚡ | test/units/_internal/templating/test_lazy_containers.py | 763 | def call_test_with_native_args_kwargs() -> t.Any: | CODE |
| 1691 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packaging/release.py | 5 | CODE | |
| LOW | packaging/cli-doc/build.py | 5 | CODE | |
| LOW | .azure-pipelines/scripts/combine-coverage.py | 10 | CODE | |
| LOW | .azure-pipelines/scripts/publish-codecov.py | 8 | CODE | |
| LOW | .azure-pipelines/scripts/time-command.py | 4 | CODE | |
| LOW | …lookup-option-name/lookup_plugins/non_terms_posargs.py | 1 | CODE | |
| LOW | …lback-dispatch/callback_plugins/oops_always_enabled.py | 1 | CODE | |
| LOW | …/callback-dispatch/callback_plugins/v1_only_methods.py | 1 | CODE | |
| LOW | …ck-dispatch/callback_plugins/legacy_warning_display.py | 1 | CODE | |
| LOW | …llback-dispatch/callback_plugins/missing_base_class.py | 1 | CODE | |
| LOW | …integration/targets/callback-dispatch/library/noisy.py | 1 | CODE | |
| LOW | …s/module-serialization-profiles/library/echo_modern.py | 1 | CODE | |
| LOW | …s/module-serialization-profiles/library/echo_legacy.py | 1 | CODE | |
| LOW | …ule-serialization-profiles/library/echo_unspecified.py | 1 | CODE | |
| LOW | test/integration/targets/pause/test-pause.py | 3 | CODE | |
| LOW | …tion/targets/module_no_log/library/module_that_logs.py | 2 | CODE | |
| LOW | …argets/module_no_log/library/module_that_has_secret.py | 2 | CODE | |
| LOW | …module_no_log/library/module_with_no_log_suboptions.py | 2 | CODE | |
| LOW | …ult_pickle_error/action_plugins/result_pickle_error.py | 5 | CODE | |
| LOW | …ns/ns/col/plugins/doc_fragments/return_doc_fragment.py | 3 | CODE | |
| LOW | …llections/ns/col/plugins/lookup/import_order_lookup.py | 3 | CODE | |
| LOW | …llections/ns/col/plugins/modules/option_name_casing.py | 4 | CODE | |
| LOW | …tions/ns/col/plugins/modules/check_mode_attribute_6.py | 4 | CODE | |
| LOW | …ble_collections/ns/col/plugins/modules/import_order.py | 4 | CODE | |
| LOW | …tions/ns/col/plugins/modules/check_mode_attribute_2.py | 4 | CODE | |
| LOW | …/ns/col/plugins/modules/valid_argument_spec_context.py | 4 | CODE | |
| LOW | …tions/ns/col/plugins/modules/check_mode_attribute_3.py | 4 | CODE | |
| LOW | …_collections/ns/col/plugins/modules/_not_deprecated.py | 4 | CODE | |
| LOW | …/ansible_collections/ns/col/plugins/modules/sidecar.py | 3 | CODE | |
| LOW | …le_collections/ns/col/plugins/modules/wrong_aliases.py | 4 | CODE | |
| LOW | …_collections/ns/col/plugins/modules/semantic_markup.py | 4 | CODE | |
| LOW | …ins/modules/invalid_argument_spec_incorrect_context.py | 4 | CODE | |
| LOW | …tions/ns/col/plugins/modules/check_mode_attribute_7.py | 4 | CODE | |
| LOW | …col/plugins/modules/invalid_argument_spec_extra_key.py | 4 | CODE | |
| LOW | …lections/ns/col/plugins/modules/invalid_yaml_syntax.py | 4 | CODE | |
| LOW | …collections/ns/col/plugins/modules/return_fragments.py | 4 | CODE | |
| LOW | …s/ns/col/plugins/modules/return_fragments_not_exist.py | 4 | CODE | |
| LOW | …ections/ns/col/plugins/modules/invalid_choice_value.py | 4 | CODE | |
| LOW | …tions/ns/col/plugins/modules/check_mode_attribute_4.py | 4 | CODE | |
| LOW | …ions/ns/col/plugins/modules/doc_fragments_not_exist.py | 4 | CODE | |
| LOW | …tions/ns/col/plugins/modules/check_mode_attribute_5.py | 4 | CODE | |
| LOW | …ible_collections/ns/col/plugins/modules/no_callable.py | 4 | CODE | |
| LOW | …tions/ns/col/plugins/modules/check_mode_attribute_1.py | 4 | CODE | |
| LOW | …rgets/module_utils_common.respawn/library/respawnme.py | 6 | CODE | |
| LOW | …ble_collections/my_ns/my_col/plugins/test/test_test.py | 1 | CODE | |
| LOW | …/my_col/plugins/lookup/lookup_no_future_boilerplate.py | 3 | CODE | |
| LOW | …collections/my_ns/my_col/plugins/lookup/lookup_name.py | 1 | CODE | |
| LOW | …collections/my_ns/my_col/plugins/filter/test_filter.py | 1 | CODE | |
| LOW | test/integration/targets/no_log/library/module.py | 6 | CODE | |
| LOW | …on/targets/no_log/action_plugins/action_sets_no_log.py | 1 | CODE | |
| LOW | …odule_precedence/roles_with_extension/foo/library/a.py | 2 | CODE | |
| LOW | …le_precedence/roles_with_extension/foo/library/ping.py | 22 | CODE | |
| LOW | …s/module_precedence/multiple_roles/foo/library/ping.py | 22 | CODE | |
| LOW | …s/module_precedence/multiple_roles/bar/library/ping.py | 22 | CODE | |
| LOW | …tion/targets/module_precedence/lib_with_extension/a.py | 2 | CODE | |
| LOW | …n/targets/module_precedence/lib_with_extension/ping.py | 22 | CODE | |
| LOW | test/integration/targets/infra/library/test.py | 4 | CODE | |
| LOW | …ble_collections/ns/col/plugins/module_utils/my_util.py | 1 | CODE | |
| LOW | …on/ansible_collections/ns/col/plugins/modules/hello.py | 4 | CODE | |
| LOW | …tegration/targets/task-args/action_plugins/echo_raw.py | 1 | CODE | |
| 1655 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | packaging/release.py | 241 | except ImportError: | CODE |
| HIGH | packaging/cli-doc/build.py | 50 | except ImportError: | CODE |
| HIGH | …ck-dispatch/callback_plugins/legacy_warning_display.py | 31 | except AssertionError: | CODE |
| HIGH | …ration/targets/until/action_plugins/shell_no_failed.py | 16 | except KeyError: | CODE |
| HIGH | …t/ansible_collections/ns/col/plugins/lookup/vendor2.py | 22 | except ImportError: | CODE |
| HIGH | …t/ansible_collections/ns/col/plugins/lookup/vendor1.py | 22 | except ImportError: | CODE |
| HIGH | …ns/ns/col/tests/integration/targets/hello/files/bad.py | 7 | except ImportError: | CODE |
| HIGH | …ns/ns/col/tests/integration/targets/hello/files/bad.py | 12 | except ImportError: | CODE |
| HIGH | …st/integration/targets/ansible-test-container/runme.py | 407 | except ProcessLookupError: | CODE |
| HIGH | …ts/inventory_cache/plugins/inventory/exercise_cache.py | 159 | except KeyError: | CODE |
| HIGH | …ts/inventory_cache/plugins/inventory/exercise_cache.py | 195 | except KeyError: | CODE |
| HIGH | …ts/inventory_cache/plugins/inventory/exercise_cache.py | 268 | except KeyError: | CODE |
| HIGH | …ts/inventory_cache/plugins/inventory/exercise_cache.py | 295 | except KeyError: | CODE |
| HIGH | …egration/targets/service/files/ansible_test_service.py | 54 | except OSError: # ERROR, fd wasn't open to begin with (ignored) | CODE |
| HIGH | …on/targets/service_facts/files/ansible_test_service.py | 54 | except OSError: # ERROR, fd wasn't open to begin with (ignored) | CODE |
| HIGH | test/sanity/code-smell/boilerplate.py | 43 | except Exception: # pylint: disable=broad-except | CODE |
| HIGH | test/units/conftest.py | 16 | except ImportError: | CODE |
| HIGH | test/units/_internal/templating/test_templar.py | 878 | except Exception: | CODE |
| HIGH | test/units/module_utils/basic/test_run_command.py | 253 | except SystemExit: | CODE |
| HIGH | …ctions/ansible/windows/plugins/plugin_utils/_reboot.py | 577 | except AttributeError: | CODE |
| HIGH | …ctions/ansible/windows/plugins/plugin_utils/_reboot.py | 507 | except getattr(json.decoder, "JSONDecodeError", ValueError): | CODE |
| HIGH | test/lib/ansible_test/_internal/util.py | 777 | except FileNotFoundError: | CODE |
| HIGH | test/lib/ansible_test/_internal/containers.py | 287 | except AttributeError: | CODE |
| HIGH | test/lib/ansible_test/_internal/containers.py | 329 | except AttributeError: | CODE |
| HIGH | test/lib/ansible_test/_internal/coverage_util.py | 216 | except AttributeError: | CODE |
| HIGH | test/lib/ansible_test/_internal/util_common.py | 571 | except KeyError: | CODE |
| HIGH | test/lib/ansible_test/_internal/__init__.py | 98 | except PrimeContainers: | CODE |
| HIGH | test/lib/ansible_test/_internal/docker_util.py | 235 | except AttributeError: | CODE |
| HIGH | test/lib/ansible_test/_internal/docker_util.py | 287 | except AttributeError: | CODE |
| HIGH | test/lib/ansible_test/_internal/docker_util.py | 171 | except KeyError: | CODE |
| HIGH | test/lib/ansible_test/_internal/target.py | 112 | except KeyError: | CODE |
| HIGH | test/lib/ansible_test/_internal/ssh.py | 96 | except Exception: # pylint: disable=broad-except | CODE |
| HIGH | test/lib/ansible_test/_internal/ansible_util.py | 220 | except AttributeError: | CODE |
| HIGH | test/lib/ansible_test/_internal/ansible_util.py | 266 | except AttributeError: | CODE |
| HIGH | test/lib/ansible_test/_internal/core_ci.py | 369 | except FileNotFoundError: | CODE |
| HIGH | test/lib/ansible_test/_internal/inventory.py | 101 | except shutil.SameFileError: | CODE |
| HIGH | test/lib/ansible_test/_internal/inventory.py | 134 | except shutil.SameFileError: | CODE |
| HIGH | test/lib/ansible_test/_internal/ci/local.py | 177 | except SubprocessError: | CODE |
| HIGH | …/lib/ansible_test/_internal/cli/argparsing/__init__.py | 229 | except Exception: # pylint: disable=broad-except | CODE |
| HIGH | …/lib/ansible_test/_internal/cli/argparsing/__init__.py | 197 | except Exception: # pylint: disable=broad-except | CODE |
| HIGH | …lib/ansible_test/_internal/commands/sanity/__init__.py | 528 | except AttributeError: | CODE |
| HIGH | …st/lib/ansible_test/_util/target/setup/requirements.py | 351 | except FileNotFoundError: | CODE |
| HIGH | …ib/ansible_test/_util/target/sanity/import/importer.py | 538 | except AttributeError: | CODE |
| HIGH | …l/controller/sanity/pylint/plugins/deprecated_calls.py | 324 | except IndexError: | CODE |
| HIGH | …est/_util/controller/sanity/pylint/plugins/unwanted.py | 203 | except astroid.exceptions.InferenceError: | CODE |
| HIGH | …anity/validate-modules/validate_modules/module_args.py | 156 | except AnsibleModuleCallError: | CODE |
| HIGH | …ller/sanity/validate-modules/validate_modules/utils.py | 89 | except (IndexError, AttributeError): | CODE |
| HIGH | …oller/sanity/validate-modules/validate_modules/main.py | 2672 | except KeyboardInterrupt: | CODE |
| HIGH | …oller/sanity/validate-modules/validate_modules/main.py | 495 | except AttributeError: | CODE |
| HIGH | …oller/sanity/validate-modules/validate_modules/main.py | 1001 | except AnsibleFragmentError: | CODE |
| HIGH | …oller/sanity/validate-modules/validate_modules/main.py | 1701 | except ValueError: | CODE |
| HIGH | …oller/sanity/validate-modules/validate_modules/main.py | 2409 | except ValueError: | CODE |
| HIGH | …oller/sanity/validate-modules/validate_modules/main.py | 1723 | except ValueError: | CODE |
| HIGH | hacking/backport/backport_of_line_adder.py | 163 | except Exception: | CODE |
| HIGH | hacking/backport/backport_of_line_adder.py | 193 | except Exception: | CODE |
| HIGH | lib/ansible/_internal/_wrapt.py | 118 | except AttributeError: | CODE |
| HIGH | lib/ansible/_internal/_wrapt.py | 126 | except AttributeError: | CODE |
| HIGH | lib/ansible/_internal/_wrapt.py | 213 | except AttributeError: | CODE |
| HIGH | lib/ansible/_internal/_wrapt.py | 217 | except AttributeError: | CODE |
| HIGH | lib/ansible/_internal/_wrapt.py | 221 | except AttributeError: | CODE |
| 166 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test/integration/targets/win_script/tasks/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | test/integration/targets/blockinfile/tasks/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | …/targets/old_style_modules_posix/library/helloworld.sh | 2 | # This file is part of Ansible | COMMENT |
| MEDIUM | …le_precedence/roles_with_extension/foo/library/ping.py | 7 | # This file is part of Ansible | COMMENT |
| MEDIUM | …s/module_precedence/multiple_roles/foo/library/ping.py | 7 | # This file is part of Ansible | COMMENT |
| MEDIUM | …s/module_precedence/multiple_roles/bar/library/ping.py | 7 | # This file is part of Ansible | COMMENT |
| MEDIUM | …n/targets/module_precedence/lib_with_extension/ping.py | 7 | # This file is part of Ansible | COMMENT |
| MEDIUM | test/integration/targets/ping/tasks/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | test/integration/targets/async_fail/tasks/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | …ntegration/targets/async_fail/action_plugins/normal.py | 3 | # This file is part of Ansible | COMMENT |
| MEDIUM | test/integration/targets/changed_when/tasks/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | test/integration/targets/file/tasks/selinux_tests.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | test/integration/targets/file/tasks/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | …n/targets/hash/roles/test_hash_behaviour/vars/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | …/targets/hash/roles/test_hash_behaviour/tasks/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | …n/targets/hash/roles/test_hash_behaviour/meta/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | …rgets/hash/roles/test_hash_behaviour/defaults/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | test/integration/targets/win_raw/tasks/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | test/integration/targets/group_by/create_groups.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | test/integration/targets/group_by/test_group_by.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | …integration/targets/group_by/test_group_by_skipped.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | test/integration/targets/assemble/tasks/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | test/integration/targets/assemble/meta/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | test/integration/targets/systemd/tasks/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | …argets/check_mode/roles/test_check_mode/tasks/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | …argets/check_mode/roles/test_always_run/tasks/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | …targets/check_mode/roles/test_always_run/meta/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | test/integration/targets/async/tasks/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | …ts/var_blending/roles/test_var_blending/tasks/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | test/integration/targets/template/tasks/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | test/integration/targets/template/tasks/main.yml | 422 | # Create a template using a child template, to ensure that variables | COMMENT |
| MEDIUM | …on/targets/includes/roles/test_includes/tasks/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | …ion/targets/shell-plugins/action_plugins/test_shell.py | 1 | # This file is part of Ansible | COMMENT |
| MEDIUM | …tegration/targets/user/tasks/test_create_user_home.yml | 43 | # Create a new user account with a path that has parent directories that do not exist | COMMENT |
| MEDIUM | test/integration/targets/loop-until/tasks/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | test/integration/targets/add_host/tasks/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | test/integration/targets/script/tasks/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | test/integration/targets/ignore_errors/tasks/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | test/integration/targets/special_vars/tasks/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | test/integration/targets/pip/tasks/pip.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | test/integration/targets/fetch/runme.sh | 30 | # Create a non-root user account and configure SSH access for that account | COMMENT |
| MEDIUM | test/integration/targets/failed_when/tasks/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | test/integration/targets/stat/tasks/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | …ude_import/playbook/sub_playbook/library/helloworld.py | 2 | # This file is part of Ansible | COMMENT |
| MEDIUM | test/integration/targets/find/tasks/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | …targets/parsing/roles/test_good_parsing/tasks/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | test/integration/targets/iptables/tasks/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | …ntegration/targets/iptables/tasks/chain_management.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | test/integration/targets/service/meta/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | test/integration/targets/windows-minimal/tasks/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | …gets/collections/custom_vars_plugins/v1_vars_plugin.py | 3 | # This file is part of Ansible | COMMENT |
| MEDIUM | …gets/collections/custom_vars_plugins/v2_vars_plugin.py | 3 | # This file is part of Ansible | COMMENT |
| MEDIUM | …ollections/testns/testcoll/plugins/vars/custom_vars.py | 3 | # This file is part of Ansible | COMMENT |
| MEDIUM | …ons/testns/content_adj/plugins/vars/custom_adj_vars.py | 3 | # This file is part of Ansible | COMMENT |
| MEDIUM | test/integration/targets/uri/tasks/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | test/integration/targets/apt_key/tasks/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | test/integration/targets/raw/tasks/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | …ndlers/roles/test_handlers_include_role/tasks/main.yml | 1 | # This file is part of Ansible | COMMENT |
| MEDIUM | …on/targets/handlers/roles/test_handlers/tasks/main.yml | 4 | # This file is part of Ansible | COMMENT |
| MEDIUM | …rgets/handlers/roles/test_handlers_meta/tasks/main.yml | 4 | # This file is part of Ansible | COMMENT |
| 264 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …le_precedence/roles_with_extension/foo/library/ping.py | 0 | --- module: ping version_added: historical short_description: try to connect to host, verify a usable python and return | STRING |
| HIGH | …s/module_precedence/multiple_roles/foo/library/ping.py | 0 | --- module: ping version_added: historical short_description: try to connect to host, verify a usable python and return | STRING |
| HIGH | …s/module_precedence/multiple_roles/bar/library/ping.py | 0 | --- module: ping version_added: historical short_description: try to connect to host, verify a usable python and return | STRING |
| HIGH | …n/targets/module_precedence/lib_with_extension/ping.py | 0 | --- module: ping version_added: historical short_description: try to connect to host, verify a usable python and return | STRING |
| HIGH | …le_precedence/roles_with_extension/foo/library/ping.py | 0 | # test we can logon to 'webservers' and execute python with json lib. ansible webservers -m ping | STRING |
| HIGH | …s/module_precedence/multiple_roles/foo/library/ping.py | 0 | # test we can logon to 'webservers' and execute python with json lib. ansible webservers -m ping | STRING |
| HIGH | …s/module_precedence/multiple_roles/bar/library/ping.py | 0 | # test we can logon to 'webservers' and execute python with json lib. ansible webservers -m ping | STRING |
| HIGH | …n/targets/module_precedence/lib_with_extension/ping.py | 0 | # test we can logon to 'webservers' and execute python with json lib. ansible webservers -m ping | STRING |
| HIGH | …on/ansible_collections/ns/col/plugins/modules/hello.py | 0 | module: hello short_description: hello test module description: hello test module. options: name: description: name to s | STRING |
| HIGH | …er/ansible_collections/ns/col/plugins/modules/hello.py | 0 | module: hello short_description: hello test module description: hello test module. options: name: description: name to s | STRING |
| HIGH | …ts/ansible_collections/ns/col/plugins/modules/hello.py | 0 | module: hello short_description: hello test module description: hello test module. options: name: description: name to s | STRING |
| HIGH | test/integration/targets/config/lookup_plugins/bogus.py | 0 | - name: like some other plugins, this is mostly useless debug: msg={{ q('casting', [1,2,3])}} | STRING |
| HIGH | …on/targets/config/lookup_plugins/casting_individual.py | 0 | - name: like some other plugins, this is mostly useless debug: msg={{ q('casting', [1,2,3])}} | STRING |
| HIGH | test/integration/targets/config/lookup_plugins/types.py | 0 | - name: like some other plugins, this is mostly useless debug: msg={{ q('casting', [1,2,3])}} | STRING |
| HIGH | …t/integration/targets/config/lookup_plugins/casting.py | 0 | - name: like some other plugins, this is mostly useless debug: msg={{ q('casting', [1,2,3])}} | STRING |
| HIGH | test/integration/targets/config/lookup_plugins/bogus.py | 0 | _list: description: basically the same as you fed in type: list elements: raw | STRING |
| HIGH | …on/targets/config/lookup_plugins/casting_individual.py | 0 | _list: description: basically the same as you fed in type: list elements: raw | STRING |
| HIGH | test/integration/targets/config/lookup_plugins/types.py | 0 | _list: description: basically the same as you fed in type: list elements: raw | STRING |
| HIGH | …t/integration/targets/config/lookup_plugins/casting.py | 0 | _list: description: basically the same as you fed in type: list elements: raw | STRING |
| HIGH | …egration/targets/lookup_config/lookup_plugins/bogus.py | 0 | _list: description: basically the same as you fed in type: list elements: raw | STRING |
| HIGH | lib/ansible/plugins/lookup/list.py | 0 | _list: description: basically the same as you fed in type: list elements: raw | STRING |
| HIGH | …ation/targets/ansible-doc/library/test_docs_returns.py | 0 | z_last: description: a last result. broken: type: str returned: success version_added: 1.3.0 m_middle: description: - th | STRING |
| HIGH | …gets/ansible-doc/library/test_docs_return_fragments.py | 0 | z_last: description: a last result. broken: type: str returned: success version_added: 1.3.0 m_middle: description: - th | STRING |
| HIGH | …ections/testns/testcol/plugins/modules/randommodule.py | 0 | z_last: description: a last result. broken: type: str returned: success version_added: 1.3.0 m_middle: description: - th | STRING |
| HIGH | …ections/testns/testcol/plugins/inventory/statichost.py | 0 | inventory: statichost short_description: add a single host description: add a single host extends_documentation_fragment | STRING |
| HIGH | …ections/testns/testcol/plugins/inventory/statichost.py | 0 | inventory: statichost short_description: add a single host description: add a single host extends_documentation_fragment | STRING |
| HIGH | …ons/testns/content_adj/plugins/inventory/statichost.py | 0 | inventory: statichost short_description: add a single host description: add a single host extends_documentation_fragment | STRING |
| HIGH | …gration/targets/module_defaults/library/legacy_ping.py | 0 | --- module: ping version_added: historical short_description: try to connect to host, verify a usable python and return | STRING |
| HIGH | …le_collections/testns/testcoll/plugins/modules/ping.py | 0 | --- module: ping version_added: historical short_description: try to connect to host, verify a usable python and return | STRING |
| HIGH | …targets/ansible-galaxy-collection/files/test_module.py | 0 | --- module: ping version_added: historical short_description: try to connect to host, verify a usable python and return | STRING |
| HIGH | …gration/targets/module_defaults/library/legacy_ping.py | 0 | # test we can logon to 'webservers' and execute python with json lib. # ansible webservers -m ansible.builtin.ping - nam | STRING |
| HIGH | …le_collections/testns/testcoll/plugins/modules/ping.py | 0 | # test we can logon to 'webservers' and execute python with json lib. # ansible webservers -m ansible.builtin.ping - nam | STRING |
| HIGH | …targets/ansible-galaxy-collection/files/test_module.py | 0 | # test we can logon to 'webservers' and execute python with json lib. # ansible webservers -m ansible.builtin.ping - nam | STRING |
| HIGH | lib/ansible/modules/ping.py | 0 | # test we can logon to 'webservers' and execute python with json lib. # ansible webservers -m ansible.builtin.ping - nam | STRING |
| HIGH | …gration/targets/module_defaults/library/legacy_ping.py | 0 | ping: description: value provided with the o(data) parameter. returned: success type: str sample: pong | STRING |
| HIGH | …le_collections/testns/testcoll/plugins/modules/ping.py | 0 | ping: description: value provided with the o(data) parameter. returned: success type: str sample: pong | STRING |
| HIGH | …ntegration/targets/windows-minimal/library/win_ping.py | 0 | ping: description: value provided with the o(data) parameter. returned: success type: str sample: pong | STRING |
| HIGH | …upport/windows-integration/plugins/modules/win_ping.py | 0 | ping: description: value provided with the o(data) parameter. returned: success type: str sample: pong | STRING |
| HIGH | …ollections/ansible/windows/plugins/modules/win_ping.py | 0 | ping: description: value provided with the o(data) parameter. returned: success type: str sample: pong | STRING |
| HIGH | …targets/ansible-galaxy-collection/files/test_module.py | 0 | ping: description: value provided with the o(data) parameter. returned: success type: str sample: pong | STRING |
| HIGH | lib/ansible/modules/ping.py | 0 | ping: description: value provided with the o(data) parameter. returned: success type: str sample: pong | STRING |
| HIGH | …llections/testns/testcoll/plugins/modules/vyosfacts.py | 0 | --- module: ios_facts short_description: module to test module_defaults description: module to test module_defaults vers | STRING |
| HIGH | …ollections/testns/testcoll/plugins/modules/eosfacts.py | 0 | --- module: ios_facts short_description: module to test module_defaults description: module to test module_defaults vers | STRING |
| HIGH | …_collections/testns/testcoll/plugins/modules/module.py | 0 | --- module: ios_facts short_description: module to test module_defaults description: module to test module_defaults vers | STRING |
| HIGH | …llections/testns/testcoll/plugins/modules/ios_facts.py | 0 | --- module: ios_facts short_description: module to test module_defaults description: module to test module_defaults vers | STRING |
| HIGH | …ntegration/targets/windows-minimal/library/win_ping.py | 0 | --- module: win_ping version_added: "1.7" short_description: a windows version of the classic ping module description: - | STRING |
| HIGH | …upport/windows-integration/plugins/modules/win_ping.py | 0 | --- module: win_ping version_added: "1.7" short_description: a windows version of the classic ping module description: - | STRING |
| HIGH | …ollections/ansible/windows/plugins/modules/win_ping.py | 0 | --- module: win_ping version_added: "1.7" short_description: a windows version of the classic ping module description: - | STRING |
| HIGH | …ntegration/targets/windows-minimal/library/win_ping.py | 0 | # test connectivity to a windows host # ansible winserver -m win_ping - name: example from an ansible playbook win_ping: | STRING |
| HIGH | …upport/windows-integration/plugins/modules/win_ping.py | 0 | # test connectivity to a windows host # ansible winserver -m win_ping - name: example from an ansible playbook win_ping: | STRING |
| HIGH | …ollections/ansible/windows/plugins/modules/win_ping.py | 0 | # test connectivity to a windows host # ansible winserver -m win_ping - name: example from an ansible playbook win_ping: | STRING |
| HIGH | …support/windows-integration/plugins/action/win_copy.py | 0 | this is a closure (function utilizing variables from it's parent function's scope) so that we only need one copy of all | STRING |
| HIGH | …collections/ansible/windows/plugins/action/win_copy.py | 0 | this is a closure (function utilizing variables from it's parent function's scope) so that we only need one copy of all | STRING |
| HIGH | lib/ansible/plugins/action/copy.py | 0 | this is a closure (function utilizing variables from it's parent function's scope) so that we only need one copy of all | STRING |
| HIGH | …pport/windows-integration/plugins/modules/win_shell.py | 0 | msg: description: changed returned: always type: bool sample: true start: description: the command execution start time. | STRING |
| HIGH | …llections/ansible/windows/plugins/modules/win_shell.py | 0 | msg: description: changed returned: always type: bool sample: true start: description: the command execution start time. | STRING |
| HIGH | lib/ansible/modules/shell.py | 0 | msg: description: changed returned: always type: bool sample: true start: description: the command execution start time. | STRING |
| HIGH | …ib/ansible_test/_internal/classification/powershell.py | 0 | return a namespace and name from the given module_utils path. | STRING |
| HIGH | …st/lib/ansible_test/_internal/classification/csharp.py | 0 | return a namespace and name from the given module_utils path. | STRING |
| HIGH | …st/lib/ansible_test/_internal/classification/python.py | 0 | return a namespace and name from the given module_utils path. | STRING |
| 103 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …st/integration/targets/ansible-test-container/runme.py | 1104 | lines = run_command('sh', '-c', '. /etc/os-release && echo $ID && echo $VERSION_ID', capture=True).stdout.splitl | CODE |
| HIGH | test/units/_internal/templating/test_templar.py | 1082 | assert TemplateEngine(variables=dict(something=TRUST.tag("{{ nope }}"))).template(TRUST.tag("{{ (something is eq | CODE |
| HIGH | test/units/_internal/_yaml/test_dumper.py | 66 | ({1, 2, 3}, "!!set {1: null, 2: null, 3: null}\n"), | CODE |
| HIGH | test/units/module_utils/basic/test_selinux.py | 35 | # selinux unavailable, should return false | COMMENT |
| HIGH | test/units/module_utils/basic/test_selinux.py | 58 | # selinux unavailable, should return false | COMMENT |
| HIGH | test/units/module_utils/basic/test_selinux.py | 61 | # selinux disabled, should return false | COMMENT |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6396 | "SOCK_MAXBUF": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6397 | "_POSIX_ASYNC_IO": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6400 | "_POSIX_PRIO_IO": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6401 | "_POSIX_SYNC_IO": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6463 | "_POSIX_PII": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6464 | "_POSIX_PII_INTERNET": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6465 | "_POSIX_PII_INTERNET_DGRAM": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6466 | "_POSIX_PII_INTERNET_STREAM": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6467 | "_POSIX_PII_OSI": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6468 | "_POSIX_PII_OSI_CLTS": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6469 | "_POSIX_PII_OSI_COTS": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6470 | "_POSIX_PII_OSI_M": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6471 | "_POSIX_PII_SOCKET": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6472 | "_POSIX_PII_XTI": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6473 | "_POSIX_POLL": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6478 | "_POSIX_SELECT": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6490 | "_POSIX_THREAD_ROBUST_PRIO_INHERIT": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6491 | "_POSIX_THREAD_ROBUST_PRIO_PROTECT": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6495 | "TIMER_MAX": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6498 | "_T_IOV_MAX": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6530 | "POSIX2_FORT_DEV": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6531 | "POSIX2_FORT_RUN": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6537 | "POSIX2_UPE": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6542 | "LFS_CFLAGS": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6543 | "LFS_LDFLAGS": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6544 | "LFS_LIBS": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6545 | "LFS_LINTFLAGS": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6547 | "LFS64_LDFLAGS": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6548 | "LFS64_LIBS": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6552 | "_XBS5_ILP32_OFF32": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6553 | "XBS5_ILP32_OFF32_CFLAGS": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6554 | "XBS5_ILP32_OFF32_LDFLAGS": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6555 | "XBS5_ILP32_OFF32_LIBS": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6556 | "XBS5_ILP32_OFF32_LINTFLAGS": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6557 | "_XBS5_ILP32_OFFBIG": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6558 | "XBS5_ILP32_OFFBIG_CFLAGS": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6559 | "XBS5_ILP32_OFFBIG_LDFLAGS": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6560 | "XBS5_ILP32_OFFBIG_LIBS": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6561 | "XBS5_ILP32_OFFBIG_LINTFLAGS": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6565 | "XBS5_LP64_OFF64_LIBS": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6566 | "XBS5_LP64_OFF64_LINTFLAGS": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6567 | "_XBS5_LPBIG_OFFBIG": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6568 | "XBS5_LPBIG_OFFBIG_CFLAGS": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6569 | "XBS5_LPBIG_OFFBIG_LDFLAGS": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6570 | "XBS5_LPBIG_OFFBIG_LIBS": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6571 | "XBS5_LPBIG_OFFBIG_LINTFLAGS": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6572 | "_POSIX_V6_ILP32_OFF32": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6573 | "POSIX_V6_ILP32_OFF32_CFLAGS": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6574 | "POSIX_V6_ILP32_OFF32_LDFLAGS": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6575 | "POSIX_V6_ILP32_OFF32_LIBS": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6576 | "POSIX_V6_ILP32_OFF32_LINTFLAGS": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6579 | "_POSIX_V6_ILP32_OFFBIG": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6580 | "POSIX_V6_ILP32_OFFBIG_CFLAGS": null, | CODE |
| HIGH⚡ | test/units/module_utils/facts/other/test_ohai.py | 6581 | "POSIX_V6_ILP32_OFFBIG_LDFLAGS": null, | CODE |
| 109 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packaging/release.py | 743 | CODE | |
| LOW | packaging/release.py | 840 | CODE | |
| LOW | packaging/release.py | 198 | CODE | |
| LOW | packaging/cli-doc/build.py | 177 | CODE | |
| LOW | …rel_plugin_loading/subdir/inventory_plugins/notyaml.py | 114 | CODE | |
| LOW | test/integration/targets/ansible-test/venv-pythons.py | 14 | CODE | |
| LOW | …st/integration/targets/ansible-test-container/runme.py | 44 | CODE | |
| LOW | …st/integration/targets/ansible-test-container/runme.py | 140 | CODE | |
| LOW | …st/integration/targets/ansible-test-container/runme.py | 230 | CODE | |
| LOW | …st/integration/targets/ansible-test-container/runme.py | 469 | CODE | |
| LOW | …egration/targets/gathering_facts/library/file_utils.py | 11 | CODE | |
| LOW | …ntegration/targets/playbook_output_validator/filter.py | 13 | CODE | |
| LOW | …targets/var_precedence/ansible-var-precedence-check.py | 414 | CODE | |
| LOW | test/integration/targets/uri/files/testserver.py | 12 | CODE | |
| LOW | test/sanity/code-smell/no-unwanted-characters.py | 9 | CODE | |
| LOW | test/sanity/code-smell/test-constraints.py | 9 | CODE | |
| LOW | test/sanity/code-smell/boilerplate.py | 7 | CODE | |
| LOW | test/sanity/code-smell/update-bundled.py | 105 | CODE | |
| LOW | test/sanity/code-smell/no-s3.py | 12 | CODE | |
| LOW | test/units/_internal/templating/test_common_.py | 152 | CODE | |
| LOW | test/units/_internal/templating/conftest.py | 28 | CODE | |
| LOW | test/units/_internal/templating/test_lazy_containers.py | 376 | CODE | |
| LOW | test/units/_internal/templating/test_lazy_containers.py | 403 | CODE | |
| LOW | test/units/playbook/role/test_include_role.py | 157 | CODE | |
| LOW | test/units/playbook/role/test_include_role.py | 203 | CODE | |
| LOW | …nits/utils/collection_loader/test_collection_loader.py | 237 | CODE | |
| LOW | test/units/cli/test_galaxy.py | 655 | CODE | |
| LOW | test/units/inventory/test_data.py | 73 | CODE | |
| LOW | test/units/parsing/yaml/test_loader.py | 285 | CODE | |
| LOW | …support/windows-integration/plugins/action/win_copy.py | 25 | CODE | |
| LOW | …support/windows-integration/plugins/action/win_copy.py | 77 | CODE | |
| LOW | …support/windows-integration/plugins/action/win_copy.py | 328 | CODE | |
| LOW | …collections/ansible/windows/plugins/action/win_copy.py | 25 | CODE | |
| LOW | …collections/ansible/windows/plugins/action/win_copy.py | 77 | CODE | |
| LOW | …collections/ansible/windows/plugins/action/win_copy.py | 328 | CODE | |
| LOW | test/lib/ansible_test/_internal/host_profiles.py | 755 | CODE | |
| LOW | test/lib/ansible_test/_internal/host_profiles.py | 922 | CODE | |
| LOW | test/lib/ansible_test/_internal/host_profiles.py | 1163 | CODE | |
| LOW | test/lib/ansible_test/_internal/host_profiles.py | 1251 | CODE | |
| LOW | test/lib/ansible_test/_internal/completion.py | 329 | CODE | |
| LOW | test/lib/ansible_test/_internal/util.py | 318 | CODE | |
| LOW | test/lib/ansible_test/_internal/util.py | 1092 | CODE | |
| LOW | test/lib/ansible_test/_internal/containers.py | 449 | CODE | |
| LOW | test/lib/ansible_test/_internal/containers.py | 592 | CODE | |
| LOW | test/lib/ansible_test/_internal/coverage_util.py | 163 | CODE | |
| LOW | test/lib/ansible_test/_internal/http.py | 41 | CODE | |
| LOW | test/lib/ansible_test/_internal/docker_util.py | 596 | CODE | |
| LOW | test/lib/ansible_test/_internal/docker_util.py | 657 | CODE | |
| LOW | test/lib/ansible_test/_internal/diff.py | 196 | CODE | |
| LOW | test/lib/ansible_test/_internal/target.py | 90 | CODE | |
| LOW | test/lib/ansible_test/_internal/target.py | 307 | CODE | |
| LOW | test/lib/ansible_test/_internal/target.py | 490 | CODE | |
| LOW | test/lib/ansible_test/_internal/target.py | 515 | CODE | |
| LOW | test/lib/ansible_test/_internal/ssh.py | 106 | CODE | |
| LOW | test/lib/ansible_test/_internal/python_requirements.py | 258 | CODE | |
| LOW | test/lib/ansible_test/_internal/delegation.py | 139 | CODE | |
| LOW | test/lib/ansible_test/_internal/delegation.py | 334 | CODE | |
| LOW | test/lib/ansible_test/_internal/provisioning.py | 101 | CODE | |
| LOW | test/lib/ansible_test/_internal/data.py | 256 | CODE | |
| LOW | test/lib/ansible_test/_internal/core_ci.py | 414 | CODE | |
| 550 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/integration/targets/pause/test-pause.py | 21 | except Exception: | CODE |
| LOW | …rel_plugin_loading/subdir/inventory_plugins/notyaml.py | 96 | except Exception as e: | CODE |
| LOW | …st/integration/targets/ansible-test-container/runme.py | 515 | except Exception: | CODE |
| LOW | …ventory/inventory_plugins/constructed_with_hostvars.py | 50 | except Exception as ex: | STRING |
| LOW | …egration/targets/module_tracebacks/library/ansibull.py | 39 | except Exception as ex: | CODE |
| LOW | …ts/inventory_cache/plugins/inventory/exercise_cache.py | 76 | except Exception as e: | STRING |
| LOW | …targets/var_precedence/ansible-var-precedence-check.py | 531 | except Exception as e: | STRING |
| LOW | test/sanity/code-smell/boilerplate.py | 43 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | test/sanity/code-smell/ansible-requirements.py | 10 | except Exception as ex: # pylint: disable=broad-except | CODE |
| MEDIUM | test/sanity/code-smell/ansible-requirements.py | 6 | def read_file(path): | CODE |
| LOW | test/units/_internal/templating/conftest.py | 43 | except Exception as ex: | CODE |
| LOW | test/units/_internal/templating/conftest.py | 47 | except Exception as ex2: | CODE |
| LOW | test/units/_internal/templating/test_lazy_containers.py | 426 | except Exception as ex: | CODE |
| LOW | test/units/_internal/templating/test_templar.py | 878 | except Exception: | CODE |
| LOW | test/units/mock/error_helper.py | 14 | except Exception as ex: | CODE |
| LOW | test/units/utils/test_serialization_profiles.py | 177 | except Exception as ex: | STRING |
| LOW | test/units/utils/test_serialization_profiles.py | 183 | except Exception as ex: | STRING |
| LOW⚡ | …nits/utils/collection_loader/test_collection_loader.py | 299 | except Exception as phe: | CODE |
| LOW⚡ | test/units/utils/display/test_warning.py | 25 | except Exception as ex: | CODE |
| LOW | test/units/module_utils/datatag/test_datatag.py | 294 | except Exception as ex: | CODE |
| LOW⚡ | …/module_utils/common/warnings/test_error_as_warning.py | 17 | except Exception as ex: | CODE |
| LOW⚡ | …/module_utils/common/warnings/test_error_as_warning.py | 30 | except Exception as ex: | CODE |
| MEDIUM | …/module_utils/common/warnings/test_error_as_warning.py | 14 | def test_error_as_warning() -> None: | CODE |
| LOW | test/units/parsing/utils/test_addresses.py | 81 | except Exception: | CODE |
| LOW | test/units/parsing/utils/test_addresses.py | 94 | except Exception: | CODE |
| LOW | test/units/parsing/yaml/test_loader.py | 193 | except Exception as e: | CODE |
| LOW | …support/windows-integration/plugins/action/win_copy.py | 226 | except Exception as err: | CODE |
| LOW | …support/windows-integration/plugins/action/win_copy.py | 295 | except Exception as e: | CODE |
| LOW | …support/windows-integration/plugins/action/win_copy.py | 373 | except Exception as err: | CODE |
| LOW | …collections/ansible/windows/plugins/action/win_copy.py | 226 | except Exception as err: | CODE |
| LOW | …collections/ansible/windows/plugins/action/win_copy.py | 295 | except Exception as e: | CODE |
| LOW | …collections/ansible/windows/plugins/action/win_copy.py | 373 | except Exception as err: | CODE |
| LOW | …ctions/ansible/windows/plugins/plugin_utils/_reboot.py | 150 | except Exception as e: | CODE |
| LOW | …ctions/ansible/windows/plugins/plugin_utils/_reboot.py | 271 | except Exception as e: | STRING |
| LOW | …ctions/ansible/windows/plugins/plugin_utils/_reboot.py | 363 | except Exception: | CODE |
| LOW | …ctions/ansible/windows/plugins/plugin_utils/_reboot.py | 398 | except Exception as e: | CODE |
| LOW | …ctions/ansible/windows/plugins/plugin_utils/_reboot.py | 566 | except Exception: | CODE |
| MEDIUM | …ctions/ansible/windows/plugins/plugin_utils/_reboot.py | 545 | def _wrap_conn_err(func, *args, **kwargs): | CODE |
| LOW | test/lib/ansible_test/_internal/content_config.py | 96 | except Exception as ex: # pylint: disable=broad-except | CODE |
| LOW | test/lib/ansible_test/_internal/content_config.py | 102 | except Exception as ex: # pylint: disable=broad-except | CODE |
| LOW | test/lib/ansible_test/_internal/util.py | 611 | except Exception as ex: # pylint: disable=broad-except | CODE |
| LOW | test/lib/ansible_test/_internal/containers.py | 647 | except Exception: | CODE |
| LOW | test/lib/ansible_test/_internal/coverage_util.py | 134 | except Exception as ex: | CODE |
| LOW | test/lib/ansible_test/_internal/debugging.py | 99 | except Exception as ex: | CODE |
| LOW | test/lib/ansible_test/_internal/http.py | 79 | except Exception as ex: # pylint: disable=broad-exception-caught | CODE |
| LOW | test/lib/ansible_test/_internal/diff.py | 131 | except Exception as ex: | CODE |
| LOW | test/lib/ansible_test/_internal/target.py | 44 | except Exception as ex: # pylint: disable=locally-disabled, broad-except | CODE |
| LOW | test/lib/ansible_test/_internal/ssh.py | 96 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | test/lib/ansible_test/_internal/provisioning.py | 223 | except Exception as ex: # pylint: disable=broad-except | CODE |
| LOW | …/lib/ansible_test/_internal/cli/argparsing/__init__.py | 197 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | …/lib/ansible_test/_internal/cli/argparsing/__init__.py | 229 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | …nsible_test/_internal/commands/integration/__init__.py | 610 | except Exception as ex: | CODE |
| LOW | …nsible_test/_internal/commands/integration/cloud/cs.py | 137 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | …t/lib/ansible_test/_util/target/setup/probe_cgroups.py | 22 | except Exception as ex: # pylint: disable=broad-except | CODE |
| LOW | …st/lib/ansible_test/_util/target/setup/requirements.py | 87 | except Exception as ex: | CODE |
| LOW | …ib/ansible_test/_util/target/sanity/import/importer.py | 110 | except Exception as ex: | CODE |
| LOW | …sible_test/_util/controller/tools/collection_detail.py | 53 | except Exception as ex: # pylint: disable=broad-except | CODE |
| LOW | …sible_test/_util/controller/tools/collection_detail.py | 74 | except Exception as ex: # pylint: disable=broad-except | CODE |
| LOW | …sible_test/_util/controller/tools/collection_detail.py | 86 | except Exception as ex: # pylint: disable=broad-except | CODE |
| MEDIUM | …oller/sanity/validate-modules/validate_modules/main.py | 151 | def _ensure_default_entry(self, path): | CODE |
| 406 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | requirements.txt | 1 | # Note: this requirements.txt file is used to specify what dependencies are | COMMENT |
| LOW | test/integration/targets/win_script/tasks/main.yml | 1 | # test code for the script module when using winrm connection | COMMENT |
| LOW | …t/integration/targets/hosts_field/test_hosts_field.yml | 1 | --- | COMMENT |
| LOW | test/integration/targets/connection_ssh/runme.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | test/integration/targets/blockinfile/tasks/main.yml | 1 | # Test code for the blockinfile module. | COMMENT |
| LOW | …/targets/old_style_modules_posix/library/helloworld.sh | 1 | #!/bin/sh | COMMENT |
| LOW | test/integration/targets/module_precedence/runme.sh | 21 | COMMENT | |
| LOW | test/integration/targets/module_precedence/runme.sh | 41 | # returns 'a.ini', then this test is pointless anyway because there's no chance | COMMENT |
| LOW | …le_precedence/roles_with_extension/foo/library/ping.py | 1 | #!/usr/bin/python | COMMENT |
| LOW | …s/module_precedence/multiple_roles/foo/library/ping.py | 1 | #!/usr/bin/python | COMMENT |
| LOW | …s/module_precedence/multiple_roles/bar/library/ping.py | 1 | #!/usr/bin/python | COMMENT |
| LOW | …n/targets/module_precedence/lib_with_extension/ping.py | 1 | #!/usr/bin/python | COMMENT |
| LOW | test/integration/targets/ping/tasks/main.yml | 1 | # test code for the ping module | COMMENT |
| LOW | test/integration/targets/collection/setup.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | test/integration/targets/conditionals/play.yml | 421 | COMMENT | |
| LOW | …ation/targets/conditionals/output_validation_tests.yml | 81 | # Convert these to tests that assert a broken conditional error. | COMMENT |
| LOW | test/integration/targets/async_fail/tasks/main.yml | 1 | # test code for the async keyword failing in the middle of output | COMMENT |
| LOW | …ntegration/targets/async_fail/action_plugins/normal.py | 1 | # (c) 2012, Michael DeHaan <michael.dehaan@gmail.com> | COMMENT |
| LOW | test/integration/targets/changed_when/tasks/main.yml | 1 | # test code for the changed_when parameter | COMMENT |
| LOW | test/integration/targets/command_shell/tasks/main.yml | 321 | - shell_result0.cmd == remote_tmp_dir_test + '/test.sh' | COMMENT |
| LOW | test/integration/targets/loop_control/label.yml | 21 | # that: | COMMENT |
| LOW | …t/integration/targets/win_async_wrapper/tasks/main.yml | 41 | COMMENT | |
| LOW | …t/integration/targets/win_async_wrapper/tasks/main.yml | 81 | #- name: ensure that watchdog and module procs have exited | COMMENT |
| LOW | …t/integration/targets/win_async_wrapper/tasks/main.yml | 221 | - >- | COMMENT |
| LOW | …t/integration/targets/win_async_wrapper/tasks/main.yml | 241 | # | COMMENT |
| LOW | …t/integration/targets/win_async_wrapper/tasks/main.yml | 261 | # - proclist.stdout.strip() == "" | COMMENT |
| LOW | …ration/targets/ansible-inventory/tasks/toml_output.yml | 1 | - block: | COMMENT |
| LOW | test/integration/targets/file/tasks/selinux_tests.yml | 1 | # Test code for the file module - selinux subtasks. | COMMENT |
| LOW | test/integration/targets/file/tasks/main.yml | 1 | # Test code for the file module. | COMMENT |
| LOW | …n/targets/hash/roles/test_hash_behaviour/vars/main.yml | 1 | # test code for the hash variable behavior | COMMENT |
| LOW | …/targets/hash/roles/test_hash_behaviour/tasks/main.yml | 1 | # test code for the hash variable behaviour | COMMENT |
| LOW | …n/targets/hash/roles/test_hash_behaviour/meta/main.yml | 1 | # test code for the hash variable behavior | COMMENT |
| LOW | …rgets/hash/roles/test_hash_behaviour/defaults/main.yml | 1 | # test code for the hash variable behavior | COMMENT |
| LOW | test/integration/targets/win_raw/tasks/main.yml | 1 | # test code for the raw module when using winrm connection | COMMENT |
| LOW | test/integration/targets/win_raw/tasks/main.yml | 141 | #- name: check raw with job result | COMMENT |
| LOW | test/integration/targets/group_by/create_groups.yml | 1 | # test code for the group_by module | COMMENT |
| LOW | test/integration/targets/group_by/test_group_by.yml | 1 | # test code for the group_by module | COMMENT |
| LOW | …integration/targets/group_by/test_group_by_skipped.yml | 1 | # test code for the group_by module | COMMENT |
| LOW | test/integration/targets/callback_default/runme.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | test/integration/targets/assemble/tasks/main.yml | 1 | # test code for the assemble module | COMMENT |
| LOW | test/integration/targets/assemble/meta/main.yml | 1 | # test code for the assemble module | COMMENT |
| LOW | test/integration/targets/systemd/tasks/main.yml | 1 | # Test code for the systemd module. | COMMENT |
| LOW | …ration/targets/builtin_vars_prompt/test-vars_prompt.py | 41 | COMMENT | |
| LOW | …argets/check_mode/roles/test_check_mode/tasks/main.yml | 1 | # test code for the template module | COMMENT |
| LOW | …argets/check_mode/roles/test_always_run/tasks/main.yml | 1 | # test code for the check_mode: no option | COMMENT |
| LOW | …targets/check_mode/roles/test_always_run/meta/main.yml | 1 | # test code for the check_mode: no option | COMMENT |
| LOW | test/integration/targets/async/tasks/main.yml | 1 | # test code for the async keyword | COMMENT |
| LOW | …ts/var_blending/roles/test_var_blending/tasks/main.yml | 1 | # test code | COMMENT |
| LOW | test/integration/targets/template/tasks/main.yml | 1 | # test code for the template module | COMMENT |
| LOW | …on/targets/includes/roles/test_includes/tasks/main.yml | 1 | # test code for the ping module | COMMENT |
| LOW | test/integration/targets/ansible-vault/faux-editor.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | test/integration/targets/ansible-vault/runme.sh | 421 | COMMENT | |
| LOW | …t/integration/targets/ansible-vault/password-script.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | …ble-vault/roles/test_vault_embedded_ids/tasks/main.yml | 21 | that: | COMMENT |
| LOW | test/integration/targets/loop-until/tasks/main.yml | 1 | # Test code for integration of until and loop options | COMMENT |
| LOW | test/integration/targets/assert/tasks/main.yml | 241 | # DTFIX-FUTURE: restore tests for `quiet` arg with a custom callback or output validation test | COMMENT |
| LOW | test/integration/targets/add_host/tasks/main.yml | 1 | # test code for the add_host action | COMMENT |
| LOW | test/integration/targets/script/tasks/main.yml | 1 | # Test code for the script module and action_plugin. | COMMENT |
| LOW | …n/targets/ignore_errors/test_invalid_ignore_errors.yml | 21 | COMMENT | |
| LOW | test/integration/targets/ignore_errors/tasks/main.yml | 1 | # test code | COMMENT |
| 366 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packaging/release.py | 790 | def set_ansible_version(current_version: Version, requested_version: Version) -> None: | CODE |
| LOW⚡ | packaging/release.py | 816 | def set_setuptools_upper_bound(requested_version: Version) -> None: | CODE |
| LOW | packaging/release.py | 1110 | def update_version(final: bool = False, pre: str | None = None, version: str | None = None) -> None: | CODE |
| LOW | packaging/release.py | 1123 | def update_setuptools(setuptools: bool) -> None: | CODE |
| LOW | test/units/controller_only_conftest.py | 17 | __all__ = ['_empty_vault_secrets_context', '_ignore_untrusted_template', '_vault_secrets_context', '_zap_vault_secrets_c | CODE |
| LOW | test/units/mock/module.py | 29 | def set_traceback_config(self, value: list[_traceback.TracebackEvent] | None = None) -> None: | CODE |
| LOW | test/units/modules/conftest.py | 21 | def set_module_args(args: dict[str, t.Any] | None = None) -> None: | CODE |
| LOW | test/lib/ansible_test/_internal/diff.py | 57 | def set_start(self, line_start: int, line_count: int) -> None: | CODE |
| LOW | …t/lib/ansible_test/_internal/cli/argparsing/parsers.py | 181 | def set_namespace(self, namespace: t.Any) -> None: | CODE |
| LOW | …nsible_test/_internal/commands/integration/__init__.py | 965 | def update_environment(self, env: dict[str, str]) -> None: | CODE |
| LOW | …ible_test/_internal/commands/integration/cloud/nios.py | 58 | def _setup_dynamic(self) -> None: | CODE |
| LOW | …ible_test/_internal/commands/integration/cloud/nios.py | 79 | def _setup_static(self) -> None: | CODE |
| LOW | …ble_test/_internal/commands/integration/cloud/azure.py | 68 | def _setup_dynamic(self) -> None: | CODE |
| LOW | …test/_internal/commands/integration/cloud/openshift.py | 52 | def _setup_static(self) -> None: | CODE |
| LOW | …test/_internal/commands/integration/cloud/openshift.py | 61 | def _setup_dynamic(self) -> None: | CODE |
| LOW | …_test/_internal/commands/integration/cloud/__init__.py | 257 | def _set_cloud_config(self, key: str, value: t.Union[str, int, bool]) -> None: | CODE |
| LOW | …est/_internal/commands/integration/cloud/opennebula.py | 30 | def _setup_dynamic(self) -> None: | CODE |
| LOW | …sible_test/_internal/commands/integration/cloud/aws.py | 68 | def _setup_dynamic(self) -> None: | CODE |
| LOW | …nsible_test/_internal/commands/integration/cloud/cs.py | 58 | def _setup_static(self) -> None: | CODE |
| LOW | …nsible_test/_internal/commands/integration/cloud/cs.py | 83 | def _setup_dynamic(self) -> None: | CODE |
| LOW | …ible_test/_internal/commands/integration/cloud/acme.py | 45 | def _setup_dynamic(self) -> None: | CODE |
| LOW | …ible_test/_internal/commands/integration/cloud/acme.py | 65 | def _setup_static(self) -> None: | CODE |
| LOW | …le_test/_internal/commands/integration/cloud/hcloud.py | 55 | def _setup_dynamic(self) -> None: | CODE |
| LOW | hacking/update-sanity-requirements.py | 66 | def update_pre_build(self) -> None: | CODE |
| LOW | lib/ansible/_internal/_task.py | 395 | def update_task_vars(self, variables: dict[str, t.Any]) -> None: | CODE |
| LOW | lib/ansible/_internal/_task.py | 1251 | def set_fact(self, key: str, value: object) -> None: | CODE |
| LOW | lib/ansible/_internal/_task.py | 1286 | def set_skipped(self, reason: str | None = None, include_skipped_reason: bool = False) -> None: | CODE |
| LOW | lib/ansible/_internal/_task.py | 1309 | def set_break_when_result(self, value: bool | AnsibleError) -> None: | CODE |
| LOW | lib/ansible/_internal/_task.py | 1345 | def set_changed_when_result(self, value: bool | AnsibleError) -> None: | CODE |
| LOW | lib/ansible/_internal/_task.py | 1374 | def set_failed_when_result(self, value: bool | AnsibleError) -> None: | CODE |
| LOW | lib/ansible/_internal/_encryption/_crypt.py | 13 | __all__ = ['CryptFacade'] | CODE |
| LOW | lib/ansible/_internal/_encryption/_crypt.py | 63 | def _setup(self) -> None: | CODE |
| LOW⚡ | lib/ansible/_internal/_errors/_error_factory.py | 99 | def _set_redact_source_context(self, exception: BaseException) -> None: | CODE |
| LOW | lib/ansible/vars/hostvars.py | 32 | __all__ = ['HostVars', 'HostVarsVars'] | CODE |
| LOW | lib/ansible/playbook/task.py | 49 | __all__ = ['Task'] | CODE |
| LOW | lib/ansible/playbook/role_include.py | 28 | __all__ = ['IncludeRole'] | CODE |
| LOW | lib/ansible/playbook/__init__.py | 34 | __all__ = ['Playbook'] | CODE |
| LOW | lib/ansible/playbook/play.py | 45 | __all__ = ['Play'] | CODE |
| LOW | lib/ansible/playbook/play_context.py | 32 | __all__ = ['PlayContext'] | CODE |
| LOW | lib/ansible/playbook/base.py | 726 | def update_result_no_log(self, templar: TemplateEngine, utr: _task.UnifiedTaskResult) -> None: | CODE |
| LOW | lib/ansible/playbook/task_include.py | 27 | __all__ = ['TaskInclude'] | CODE |
| LOW | lib/ansible/playbook/role/requirement.py | 25 | __all__ = ['RoleRequirement'] | CODE |
| LOW | lib/ansible/playbook/role/metadata.py | 29 | __all__ = ['RoleMetadata'] | CODE |
| LOW | lib/ansible/playbook/role/__init__.py | 54 | __all__ = ['Role', 'hash_params'] | CODE |
| LOW | lib/ansible/playbook/role/definition.py | 36 | __all__ = ['RoleDefinition'] | CODE |
| LOW | lib/ansible/playbook/role/include.py | 25 | __all__ = ['RoleInclude'] | CODE |
| LOW | lib/ansible/plugins/connection/__init__.py | 30 | __all__ = ['ConnectionBase', 'ensure_connect'] | CODE |
| LOW | lib/ansible/plugins/connection/__init__.py | 109 | def set_become_plugin(self, plugin: BecomeBase) -> None: | CODE |
| LOW | lib/ansible/plugins/connection/__init__.py | 241 | def update_vars(self, variables: dict[str, t.Any]) -> None: | CODE |
| LOW | lib/ansible/plugins/connection/__init__.py | 431 | def _update_connection_state(self) -> None: | CODE |
| LOW | lib/ansible/plugins/lookup/__init__.py | 34 | __all__ = ['LookupBase'] | CODE |
| LOW | lib/ansible/plugins/inventory/__init__.py | 341 | def update_cache_if_changed(self) -> None: | CODE |
| LOW | lib/ansible/plugins/inventory/__init__.py | 344 | def set_cache_plugin(self) -> None: | CODE |
| LOW | lib/ansible/plugins/callback/__init__.py | 53 | __all__ = ["CallbackBase"] | CODE |
| LOW | lib/ansible/plugins/strategy/__init__.py | 60 | __all__ = ['StrategyBase'] | CODE |
| LOW | lib/ansible/plugins/strategy/__init__.py | 1044 | def update_active_connections(self, results: _c.Iterable[HostTaskResult]) -> None: | CODE |
| LOW⚡ | lib/ansible/utils/encrypt.py | 45 | __all__ = ['do_encrypt'] | CODE |
| LOW | lib/ansible/utils/listify.py | 25 | __all__ = ['listify_lookup_plugin_terms'] | CODE |
| LOW⚡ | lib/ansible/utils/display.py | 378 | def set_queue(self, queue: FinalQueue) -> None: | CODE |
| LOW⚡ | lib/ansible/utils/display.py | 388 | def set_cowsay_info(self) -> None: | CODE |
| 20 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …rgets/module_utils_common.respawn/library/respawnme.py | 20 | # just return info about what interpreter we're currently running under | COMMENT |
| LOW | test/integration/targets/cli/setup.yml | 38 | # on some platforms, as does sudo/sudoers. On Fedora, we can just add | COMMENT |
| LOW | test/integration/targets/assert/tasks/main.yml | 37 | # from here on, just use `assert` to validate behavior | COMMENT |
| LOW | …egration/targets/prepare_http_tests/tasks/kerberos.yml | 50 | # apk isn't available on ansible-core so just call command | COMMENT |
| MEDIUM | …tion/targets/ansible-galaxy-collection/tasks/build.yml | 142 | # Additional comprehensive tests for FILES.json sorting robustness | COMMENT |
| LOW | …on/targets/subversion/roles/subversion/tasks/setup.yml | 100 | # On Red Hat based OS', we can't use apachectl to start up own instance, just use the raw httpd | COMMENT |
| LOW | test/integration/targets/debug/args_templating.yml | 84 | # of dynamic variable selection for `var` (eg ternary), but you could also just use `msg`. | COMMENT |
| LOW⚡ | test/units/plugins/action/test_action.py | 390 | # Step 1: On windows, we just return remote_paths | COMMENT |
| MEDIUM | test/units/utils/test_serialization_profiles.py | 70 | Deprecated: Deprecated(msg='x'), # DTFIX5: we need more exhaustive testing of the values supported by this tag to e | CODE |
| MEDIUM⚡ | test/units/module_utils/basic/test_atomic_move.py | 138 | """Failure to stat an existing file in order to copy permissions propagates the error (unless EPERM)""" | STRING |
| LOW | test/units/module_utils/datatag/test_datatag.py | 326 | # just return the entire row as "value" | COMMENT |
| MEDIUM | test/units/module_utils/datatag/test_datatag.py | 687 | # This test creates a generator to source items from the value to facilitate optimized creation of collections w | COMMENT |
| LOW | test/units/executor/test_play_iterator.py | 414 | # assert with an empty task list, or if we're in a failed state, we simply return the state as-is | STRING |
| LOW | test/units/parsing/vault/test_vault_editor.py | 223 | # FIXME: update to just set self._secrets or just a new vault secret id | COMMENT |
| MEDIUM | test/lib/ansible_test/_util/target/setup/bootstrap.sh | 234 | # Allow root to use sudo to facilitate become testing as is done in other test environments. | COMMENT |
| LOW | …_util/controller/sanity/code-smell/runtime-metadata.py | 141 | # just return None to indicate "we don't know". | COMMENT |
| LOW | hacking/backport/backport_of_line_adder.py | 111 | # Otherwise, no '#### SUMMARY' line, so just add it at the bottom | COMMENT |
| LOW | lib/ansible/_internal/_wrapt.py | 561 | # method to call. In this case we simply return self. | COMMENT |
| LOW | lib/ansible/_internal/_wrapt.py | 615 | # and if the wrapper is not to be executed, then simply return | COMMENT |
| LOW | lib/ansible/_internal/_wrapt.py | 683 | # the wrapper is not to be executed, then simply return the bound | COMMENT |
| LOW | lib/ansible/_internal/_templating/_jinja_bits.py | 528 | # was embedded in a plugin, or a plugin is otherwise responsible for losing the origin and/or trust. We can't just | COMMENT |
| MEDIUM | lib/ansible/_internal/_templating/_jinja_bits.py | 628 | template_obj._python_source_temp_path = ctx.python_source_temp_path # facilitate deletion of the temp f | CODE |
| MEDIUM | lib/ansible/_internal/_templating/_jinja_bits.py | 711 | template_obj._python_source_temp_path = ctx.python_source_temp_path # facilitate deletion of the temp f | CODE |
| LOW | lib/ansible/_internal/_json/__init__.py | 197 | # supported scalar type that requires no special handling, just return as-is | COMMENT |
| LOW | lib/ansible/_internal/_json/_legacy_encoder.py | 26 | return o.value # if not emitting unsafe markers, bypass custom unsafe serialization and just return the raw | CODE |
| LOW | lib/ansible/_internal/_powershell/_clixml.py | 80 | # Any errors and we just add the original CLIXML header and | COMMENT |
| MEDIUM | lib/ansible/_internal/_yaml/_constructor.py | 67 | # This is done before checking for duplicates to leverage existing error checking on the input node. | COMMENT |
| LOW | lib/ansible/playbook/collectionsearch.py | 44 | if not ds: # don't return an empty collection list, just return None | CODE |
| LOW | lib/ansible/playbook/role/__init__.py | 270 | # reset collections list; roles do not inherit collections from parents, just use the defaults | COMMENT |
| MEDIUM | lib/ansible/plugins/loader.py | 666 | # but if the unqualified name is used in conjunction with the collections keyword, only | COMMENT |
| MEDIUM | lib/ansible/plugins/loader.py | 790 | # FIXME: need this right now so we can still load shipped PS module_utils- come up with a more robust solution | COMMENT |
| MEDIUM | lib/ansible/plugins/loader.py | 863 | """Search library and various *_plugins paths in order to find the file. | STRING |
| LOW | lib/ansible/plugins/connection/winrm.py | 215 | # This was added in pywinrm 0.5.0, we just use our no-op exception for | STRING |
| LOW | lib/ansible/plugins/inventory/host_list.py | 22 | # just use localhost | COMMENT |
| LOW | lib/ansible/plugins/inventory/ini.py | 200 | # group, in that case we simply pass so that the logic below to process pending | STRING |
| LOW | lib/ansible/plugins/inventory/ini.py | 380 | # Likely a string that literal_eval does not like. We will then just set it. | STRING |
| LOW | lib/ansible/plugins/callback/__init__.py | 159 | # FUTURE: this code is jacked for 2.x- it should just use the type names and always assume 2.0+ for normal cases | COMMENT |
| MEDIUM | lib/ansible/cli/__init__.py | 180 | # Initialize plugin loader after parse, so that the init code can utilize parsed arguments | COMMENT |
| LOW | lib/ansible/cli/vault.py | 364 | # if no --names are provided, just use the args without a name. | COMMENT |
| MEDIUM | lib/ansible/cli/arguments/option_helpers.py | 423 | """Add options for commands that utilize inventory""" | STRING |
| LOW | lib/ansible/galaxy/collection/__init__.py | 1356 | # Dealing with a normal file, just add it by name. | COMMENT |
| MEDIUM | lib/ansible/inventory/host.py | 31 | from . import helpers # this is left as a module import to facilitate easier unit test patching | CODE |
| MEDIUM | lib/ansible/inventory/group.py | 18 | from . import helpers # this is left as a module import to facilitate easier unit test patching | CODE |
| MEDIUM | lib/ansible/inventory/data.py | 32 | from . import helpers # this is left as a module import to facilitate easier unit test patching | CODE |
| LOW | lib/ansible/module_utils/_internal/_datatag/__init__.py | 171 | # if no tags to apply, just return what we got | COMMENT |
| LOW | lib/ansible/executor/play_iterator.py | 598 | # if we've failed at all, or if the task list is empty, just return the current state | COMMENT |
| LOW | lib/ansible/executor/task_executor.py | 445 | # if this task is a TaskInclude, we just return now with a success code so the | COMMENT |
| LOW | lib/ansible/executor/task_executor.py | 456 | # if this task is a IncludeRole, we just return now with a success code so the main thread can expand the task l | COMMENT |
| LOW | lib/ansible/executor/task_executor.py | 469 | # just use normal host vars | COMMENT |
| LOW | lib/ansible/parsing/utils/addresses.py | 124 | # Note that we can't just use ipaddress.ip_address() because we also have to | STRING |
| LOW | lib/ansible/modules/deb822_repository.py | 361 | # Not a file, nor a URL, just pass it through | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test/integration/targets/conditionals/play.yml | 256 | #----------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/integration/targets/dnf/tasks/repo.yml | 25 | # ============================================================================ | COMMENT |
| MEDIUM | test/integration/targets/dnf/tasks/repo.yml | 53 | # ============================================================================ | COMMENT |
| MEDIUM | test/integration/targets/dnf/tasks/repo.yml | 71 | # ============================================================================ | COMMENT |
| MEDIUM | test/integration/targets/dnf/tasks/repo.yml | 92 | # ============================================================================ | COMMENT |
| MEDIUM | test/integration/targets/dnf/tasks/repo.yml | 113 | # ============================================================================ | COMMENT |
| MEDIUM | test/integration/targets/dnf/tasks/repo.yml | 137 | # ============================================================================ | COMMENT |
| MEDIUM | test/integration/targets/dnf/tasks/repo.yml | 165 | # ============================================================================ | COMMENT |
| MEDIUM | test/integration/targets/dnf/tasks/repo.yml | 187 | # ============================================================================ | COMMENT |
| MEDIUM | test/integration/targets/dnf/tasks/repo.yml | 204 | # ============================================================================ | COMMENT |
| MEDIUM | test/integration/targets/dnf/tasks/repo.yml | 226 | # ============================================================================ | COMMENT |
| MEDIUM | test/integration/targets/dnf/tasks/repo.yml | 243 | # ============================================================================ | COMMENT |
| MEDIUM | lib/ansible/playbook/task.py | 68 | # ================================================================================= | COMMENT |
| MEDIUM | lib/ansible/playbook/role_include.py | 45 | # ================================================================================= | COMMENT |
| MEDIUM | lib/ansible/playbook/play.py | 60 | # ================================================================================= | COMMENT |
| MEDIUM | lib/ansible/playbook/play.py | 91 | # ================================================================================= | COMMENT |
| MEDIUM | lib/ansible/modules/systemd_service.py | 339 | # =========================================== | STRING |
| MEDIUM | lib/ansible/modules/service.py | 228 | # =========================================== | COMMENT |
| MEDIUM | lib/ansible/modules/service.py | 243 | # =========================================== | COMMENT |
| MEDIUM | lib/ansible/modules/service.py | 1519 | # =========================================== | COMMENT |
| MEDIUM | lib/ansible/modules/user.py | 1439 | # =========================================== | COMMENT |
| MEDIUM | lib/ansible/modules/git.py | 1219 | # =========================================== | COMMENT |
| MEDIUM | lib/ansible/modules/wait_for.py | 342 | # =========================================== | STRING |
| MEDIUM | lib/ansible/modules/systemd.py | 339 | # =========================================== | STRING |
| MEDIUM | lib/ansible/modules/group.py | 278 | # =========================================== | STRING |
| MEDIUM | lib/ansible/modules/group.py | 303 | # =========================================== | STRING |
| MEDIUM | lib/ansible/modules/group.py | 336 | # =========================================== | STRING |
| MEDIUM | lib/ansible/modules/group.py | 387 | # =========================================== | STRING |
| MEDIUM | lib/ansible/modules/group.py | 450 | # =========================================== | STRING |
| MEDIUM | lib/ansible/modules/group.py | 575 | # =========================================== | STRING |
| MEDIUM | lib/ansible/modules/group.py | 629 | # =========================================== | STRING |
| MEDIUM | lib/ansible/modules/get_url.py | 383 | # ============================================================== | STRING |
| MEDIUM | lib/ansible/modules/get_url.py | 504 | # ============================================================== | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …llections/testns/testcoll/plugins/module_utils/base.py | 11 | return "thingtocall in base called " + ansible_collections.testns.testcoll.plugins.module_utils.secondary.thingtocal | CODE |
| CRITICAL | …s/testcoll/plugins/modules/uses_leaf_mu_flat_import.py | 11 | mu_result = ansible_collections.testns.testcoll.plugins.module_utils.leaf.thingtocall() | CODE |
| CRITICAL | test/units/utils/test_helpers.py | 10 | from ansible.utils.helpers import pct_to_int, object_to_dict, deduplicate_list | CODE |
| CRITICAL | test/units/module_utils/basic/test_run_command.py | 216 | assert rc_am._subprocess.Popen.return_value.stdin.getvalue() == b'hello world\n' | CODE |
| CRITICAL | lib/ansible/inventory/manager.py | 41 | from ansible.utils.helpers import deduplicate_list | CODE |
| CRITICAL | lib/ansible/module_utils/common/arg_spec.py | 50 | <ansible.module_utils.common.arg_spec.ArgumentSpecValidator.validate()>` | STRING |
| CRITICAL | lib/ansible/executor/playbook_executor.py | 30 | from ansible.utils.helpers import pct_to_int | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/integration/targets/connection_ssh/runme.sh | 7 | # Check if our sshpass supports -P | COMMENT |
| LOW | test/integration/targets/callback_default/runme.sh | 215 | # Check if UNREACHABLE is available in stderr | COMMENT |
| LOW | test/integration/targets/filter_core/runme.sh | 20 | # Check if libxcrypt was installed by looking for the handler output | COMMENT |
| LOW | …support/windows-integration/plugins/action/win_copy.py | 173 | # Check if the source ends with a "/" so that we know which directory | COMMENT |
| LOW | …collections/ansible/windows/plugins/action/win_copy.py | 173 | # Check if the source ends with a "/" so that we know which directory | COMMENT |
| LOW | …t/lib/ansible_test/_internal/commands/sanity/pylint.py | 277 | # Set PYLINTHOME to prevent pylint from checking for an obsolete directory, which can result in a test failure d | COMMENT |
| LOW | lib/ansible/_internal/_ansiballz/_wrapper.py | 219 | # Set pythonpath to the debug dir | COMMENT |
| LOW | lib/ansible/playbook/base.py | 321 | # Check if the group has already been resolved and cached | COMMENT |
| LOW | lib/ansible/plugins/connection/psrp.py | 682 | # Check if there's a command on the current pipeline that still needs to be closed. | STRING |
| LOW | lib/ansible/plugins/connection/ssh.py | 905 | # Check if ControlPersist is enabled and add a ControlPath if one hasn't | COMMENT |
| LOW | lib/ansible/plugins/action/__init__.py | 781 | # Check if we are an admin/root user. If we are and got here, it means | COMMENT |
| LOW | lib/ansible/plugins/action/copy.py | 167 | # Check if the source ends with a "/" so that we know which directory | COMMENT |
| LOW | lib/ansible/cli/arguments/option_helpers.py | 240 | # Check if the .git is a file. If it is a file, it means that we are in a submodule structure. | COMMENT |
| LOW | lib/ansible/inventory/manager.py | 395 | # Check if pattern already computed | COMMENT |
| LOW | lib/ansible/inventory/manager.py | 685 | # Check if host in inventory, add if not | COMMENT |
| LOW | lib/ansible/module_utils/basic.py | 1027 | # Check if there are illegal characters in the user list | COMMENT |
| LOW | lib/ansible/module_utils/basic.py | 1035 | # Check if there are illegal characters in the permissions | COMMENT |
| LOW | lib/ansible/module_utils/facts/system/python.py | 24 | # Check if we have SSLContext support | COMMENT |
| LOW | lib/ansible/module_utils/facts/system/pkg_mgr.py | 84 | # Check if '/usr/bin/apt' is APT-RPM or an ordinary (dpkg-based) APT. | COMMENT |
| LOW | lib/ansible/module_utils/facts/system/pkg_mgr.py | 131 | # Check if /usr/bin/apt-get is ordinary (dpkg-based) APT or APT-RPM | COMMENT |
| LOW | lib/ansible/module_utils/facts/virtual/sunos.py | 25 | # Check if it's a zone | COMMENT |
| LOW | lib/ansible/module_utils/facts/virtual/sunos.py | 36 | # Check if it's a branded zone (i.e. Solaris 8/9 zone) | COMMENT |
| LOW | lib/ansible/executor/task_executor.py | 951 | # Check if the module has specified an action handler | COMMENT |
| LOW | lib/ansible/parsing/dataloader.py | 106 | # Check if the file has been cached and use the cached data if available | COMMENT |
| LOW | lib/ansible/modules/service.py | 421 | # Add line to the list. | COMMENT |
| LOW | lib/ansible/modules/service.py | 766 | # Check if we're already in the correct state | COMMENT |
| LOW | lib/ansible/modules/service.py | 780 | # Check if we're already in the correct state | COMMENT |
| LOW | lib/ansible/modules/service.py | 1476 | # Check if service name is a subsystem of a group subsystem | COMMENT |
| LOW | lib/ansible/modules/git.py | 835 | # Check if the .git is a file. If it is a file, it means that the repository is in external directory respective to | COMMENT |
| LOW | lib/ansible/modules/uri.py | 726 | # Write the file out if requested | COMMENT |
| LOW | lib/ansible/modules/rpm_key.py | 188 | # Check if it's a new format packet (bit 6 set) | COMMENT |
| LOW | lib/ansible/modules/rpm_key.py | 302 | # Check if it's a V4 key (first byte of body should be 0x04) | COMMENT |
| LOW | lib/ansible/modules/rpm_key.py | 335 | # Check if it's a V6 key (first byte of body should be 0x06) | COMMENT |
| LOW | lib/ansible/modules/apt.py | 915 | # Check if package is installable | COMMENT |
| LOW | lib/ansible/modules/apt.py | 1256 | # Check if the cache is valid | COMMENT |
| LOW | lib/ansible/modules/apt.py | 522 | # Check if the available version matches the requested version | STRING |
| LOW | lib/ansible/modules/apt.py | 600 | # Check if the installed version already matches the requested version | STRING |
| LOW | lib/ansible/modules/apt.py | 608 | # Check if a better version is available | STRING |
| LOW | lib/ansible/modules/iptables.py | 885 | # Check if wait option is supported | STRING |
| LOW | lib/ansible/modules/iptables.py | 943 | # Check if target is up to date | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …llections/testns/testcoll/plugins/action/echoaction.py | 18 | CODE | |
| LOW | …stns/testcoll/plugins/action/uses_redirected_import.py | 19 | CODE | |
| LOW | …oll/plugins/action/action_subdir/subdir_ping_action.py | 18 | CODE | |
| LOW | test/units/plugins/action/test_action.py | 291 | CODE | |
| LOW | test/units/module_utils/facts/test_date_time.py | 51 | CODE | |
| LOW | test/units/parsing/yaml/test_loader.py | 221 | CODE | |
| LOW | …llections/ansible/windows/plugins/action/win_reboot.py | 100 | CODE | |
| LOW | test/lib/ansible_test/_internal/util.py | 414 | CODE | |
| LOW | test/lib/ansible_test/_internal/containers.py | 105 | CODE | |
| LOW | test/lib/ansible_test/_internal/util_common.py | 514 | CODE | |
| LOW | test/lib/ansible_test/_internal/util_common.py | 115 | CODE | |
| LOW | test/lib/ansible_test/_internal/cli/parsers/__init__.py | 243 | CODE | |
| LOW | …t/lib/ansible_test/_internal/cli/argparsing/parsers.py | 621 | CODE | |
| LOW | …ib/ansible_test/_util/target/sanity/compile/compile.py | 44 | CODE | |
| LOW | lib/ansible/_internal/_errors/_error_utils.py | 206 | CODE | |
| LOW | lib/ansible/_internal/_templating/_jinja_bits.py | 748 | CODE | |
| LOW | lib/ansible/_internal/_templating/_jinja_plugins.py | 165 | CODE | |
| LOW | lib/ansible/_internal/_json/__init__.py | 73 | CODE | |
| LOW | lib/ansible/vars/manager.py | 157 | CODE | |
| LOW | lib/ansible/playbook/attribute.py | 32 | CODE | |
| LOW | lib/ansible/config/manager.py | 819 | CODE | |
| LOW | lib/ansible/plugins/netconf/__init__.py | 161 | CODE | |
| LOW | lib/ansible/plugins/action/shell.py | 32 | CODE | |
| LOW | lib/ansible/plugins/action/__init__.py | 892 | CODE | |
| LOW | lib/ansible/plugins/action/__init__.py | 900 | CODE | |
| LOW | lib/ansible/plugins/action/__init__.py | 908 | CODE | |
| LOW | lib/ansible/plugins/action/__init__.py | 916 | CODE | |
| LOW | lib/ansible/plugins/action/__init__.py | 1094 | CODE | |
| LOW | lib/ansible/plugins/action/reboot.py | 113 | CODE | |
| LOW | lib/ansible/plugins/callback/__init__.py | 582 | CODE | |
| LOW | lib/ansible/plugins/callback/__init__.py | 715 | CODE | |
| LOW | lib/ansible/plugins/filter/core.py | 713 | CODE | |
| LOW | lib/ansible/utils/vars.py | 89 | CODE | |
| LOW | lib/ansible/utils/display.py | 919 | CODE | |
| LOW | lib/ansible/cli/__init__.py | 205 | CODE | |
| LOW | lib/ansible/cli/arguments/option_helpers.py | 178 | CODE | |
| LOW | lib/ansible/galaxy/api.py | 257 | CODE | |
| LOW | lib/ansible/galaxy/api.py | 462 | CODE | |
| LOW | lib/ansible/galaxy/api.py | 603 | CODE | |
| LOW | lib/ansible/galaxy/api.py | 615 | CODE | |
| LOW | lib/ansible/galaxy/api.py | 621 | CODE | |
| LOW | lib/ansible/galaxy/api.py | 627 | CODE | |
| LOW | lib/ansible/galaxy/api.py | 634 | CODE | |
| LOW | lib/ansible/module_utils/api.py | 92 | CODE | |
| LOW | lib/ansible/module_utils/basic.py | 362 | CODE | |
| LOW | lib/ansible/module_utils/basic.py | 1833 | CODE | |
| LOW | lib/ansible/module_utils/urls.py | 1010 | CODE | |
| LOW | lib/ansible/module_utils/urls.py | 1398 | CODE | |
| LOW | lib/ansible/module_utils/urls.py | 1617 | CODE | |
| LOW | lib/ansible/module_utils/urls.py | 733 | CODE | |
| LOW | lib/ansible/module_utils/urls.py | 787 | CODE | |
| LOW | lib/ansible/module_utils/_internal/_datatag/__init__.py | 331 | CODE | |
| LOW | lib/ansible/module_utils/_internal/_datatag/__init__.py | 347 | CODE | |
| LOW | lib/ansible/module_utils/common/parameters.py | 464 | CODE | |
| LOW | lib/ansible/parsing/plugin_docs.py | 161 | CODE | |
| LOW | lib/ansible/modules/apt.py | 721 | CODE | |
| LOW | lib/ansible/modules/apt.py | 1102 | CODE | |
| LOW | lib/ansible/modules/get_url.py | 394 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | test/units/plugins/action/test_action.py | 390 | # Step 1: On windows, we just return remote_paths | COMMENT |
| LOW⚡ | test/units/plugins/action/test_action.py | 398 | # Step 2: We're /not/ becoming an unprivileged user | COMMENT |
| LOW⚡ | test/units/plugins/action/test_action.py | 534 | # Step 4: world-readable tmpdir | COMMENT |
| LOW | test/units/plugins/action/test_action.py | 425 | # Step 3: we are becoming unprivileged | COMMENT |
| LOW | test/lib/ansible_test/_internal/docker_util.py | 603 | # NOTE: This method of detecting the container engine and container ID relies on implementation details of each | COMMENT |
| LOW⚡ | lib/ansible/plugins/action/__init__.py | 698 | # Step 1: Are we on windows? | COMMENT |
| LOW⚡ | lib/ansible/plugins/action/__init__.py | 705 | # Step 2: If we're not becoming an unprivileged user, we are roughly | COMMENT |
| LOW | lib/ansible/plugins/action/__init__.py | 860 | # Step 4: World-readable temp directory | COMMENT |
| LOW | lib/ansible/module_utils/_internal/_datatag/__init__.py | 416 | # NOTE: This method is called twice when the datatag type is a dataclass. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | test/units/plugins/action/test_action.py | 390 | # Step 1: On windows, we just return remote_paths | COMMENT |
| LOW⚡ | test/units/plugins/action/test_action.py | 398 | # Step 2: We're /not/ becoming an unprivileged user | COMMENT |
| LOW⚡ | test/units/plugins/action/test_action.py | 534 | # Step 4: world-readable tmpdir | COMMENT |
| LOW | test/units/plugins/action/test_action.py | 425 | # Step 3: we are becoming unprivileged | COMMENT |
| LOW⚡ | lib/ansible/plugins/action/__init__.py | 698 | # Step 1: Are we on windows? | COMMENT |
| LOW⚡ | lib/ansible/plugins/action/__init__.py | 705 | # Step 2: If we're not becoming an unprivileged user, we are roughly | COMMENT |
| LOW | lib/ansible/plugins/action/__init__.py | 860 | # Step 4: World-readable temp directory | COMMENT |
| LOW | lib/ansible/utils/vars.py | 241 | The purpose of this function is to be used to validate any variables created in | STRING |
| LOW | lib/ansible/modules/rpm_key.py | 419 | # If the key is a url, we need to check if it's present to be idempotent, | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …facts/system/distribution/test_distribution_version.py | 18 | # to generate the testcase data, you can use the script gen_distribution_version_testcase.py in hacking/tests | COMMENT |
| MEDIUM | …port/windows-integration/plugins/modules/win_reboot.py | 109 | # Additionally, you can add a delay before running the next task | COMMENT |
| LOW | lib/ansible/playbook/play_context.py | 273 | # in the event that we were using local before make sure to reset the | COMMENT |
| MEDIUM | lib/ansible/plugins/lookup/nested.py | 30 | # As with the case of 'with_items' above, you can use previously defined variables.: | COMMENT |
| LOW | lib/ansible/module_utils/basic.py | 166 | # this matters, make sure to check for strings before checking for sequencetype | COMMENT |
| LOW | lib/ansible/parsing/dataloader.py | 298 | # not told if role, but detect if it is a role and if so make sure you get correct base path | COMMENT |
| MEDIUM | lib/ansible/modules/meta.py | 27 | datasource (for example P(amazon.aws.aws_ec2#inventory)), you can use an inventory plugin instead of an invent | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …mpat-six/ansible_collections/ns/col/do-not-check-me.py | 6 | def do_stuff(): | CODE |
| LOW | …ansible_collections/ns/col/plugins/modules/check-me.py | 6 | def do_stuff(): | CODE |
| LOW | …xception/ansible_collections/ns/col/do-not-check-me.py | 6 | def do_stuff(): | CODE |
| LOW | …ansible_collections/ns/col/plugins/modules/check-me.py | 6 | def do_stuff(): | CODE |
| LOW | …targets/ansible-test-sanity-pylint/deprecated_thing.py | 11 | def do_stuff() -> None: | CODE |
| LOW | …nsible_collections/ns/col/plugins/lookup/deprecated.py | 55 | def my_method(self) -> None: | CODE |
| LOW | …nsible_collections/ns/col/plugins/lookup/deprecated.py | 65 | def do_stuff() -> None: | CODE |
| LOW | …ctions/ns/col/plugins/module_utils/deprecated_utils.py | 17 | def do_stuff() -> None: | CODE |
| LOW | …-urlopen/ansible_collections/ns/col/do-not-check-me.py | 6 | def do_stuff(): | CODE |
| LOW | …ansible_collections/ns/col/plugins/modules/check-me.py | 6 | def do_stuff(): | CODE |
| LOW | test/units/module_utils/_internal/test_deprecator.py | 28 | def do_stuff(): | CODE |
| LOW | lib/ansible/utils/jsonrpc.py | 23 | def handle_request(self, request): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packaging/release.py | 746 | # TODO: consider using development versions instead of post versions after a release is published | COMMENT |
| LOW⚡ | test/units/plugins/action/test_action.py | 527 | # TODO: Add test to assert warning is shown if | COMMENT |
| LOW | test/units/parsing/test_mod_args.py | 16 | # TODO: add tests that construct ModuleArgsParser with a task reference | COMMENT |
| LOW | lib/ansible/plugins/loader.py | 1441 | # TODO: implement cycle detection (unified across collection redir as well) | COMMENT |
| LOW | lib/ansible/plugins/action/unarchive.py | 76 | # TODO: implement using open_url? | COMMENT |
| LOW | …/ansible/utils/collection_loader/_collection_finder.py | 1240 | # TODO: implement ignore/silent catch for unreadable? | COMMENT |
| LOW | lib/ansible/parsing/vault/__init__.py | 1014 | # TODO: add docstrings for arg types since this code is picky about that | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | lib/ansible/module_utils/distro/_distro.py | 680 | The initialization method of this class gathers information from the available data sources, and stores | STRING |
| HIGH | lib/ansible/modules/pip.py | 9 | --- module: pip short_description: Manages Python library dependencies description: - "Manage Python library depen | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ation/targets/ansible-galaxy-collection/tasks/list.yml | 122 | # Note the version displayed is the 'placeholder' string rather than "*" since it is not falsey | COMMENT |
| LOW | …ation/targets/ansible-galaxy-collection/tasks/list.yml | 139 | # Note the version displayed is the 'placeholder' string rather than "*" since it is not falsey | COMMENT |
| LOW | …ation/targets/ansible-galaxy-collection/tasks/list.yml | 162 | - "item.value['dev.collection2'].version == 'placeholder'" | CODE |
| LOW | …ation/targets/ansible-galaxy-collection/tasks/list.yml | 179 | - "item.value['dev.collection2'].version == 'placeholder'" | CODE |
| LOW | …ation/targets/ansible-galaxy-collection/tasks/list.yml | 191 | with_dict: "{{ { 'dev.collection1': '*', 'dev.collection2': 'placeholder', 'dev.collection3': '*' } }}" | CODE |
| LOW | …ation/targets/ansible-galaxy-collection/tasks/list.yml | 203 | with_dict: "{{ { 'dev.collection1': '*', 'dev.collection2': 'placeholder', 'dev.collection3': '*' } }}" | CODE |
| LOW | test/lib/ansible_test/_internal/completion.py | 344 | item.pop('placeholder', None) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …nits/module_utils/basic/test_heuristic_log_sanitize.py | 63 | # In this implementation we replace the password with 8 "*" which is | COMMENT |