← Back to scan
File as GitHub Issue repo: ansible/ansible

Push this scan report to ansible/ansible

Click the green button below to open GitHub’s new-issue form, pre-filled with the report title, summary table, top findings, and an embedded score-card image. No authentication needed — you review on GitHub before submitting. Repobility is credited as the scanner.

Embedded score card image

This image will render at the top of the issue body. Hosted on Repobility, refreshes automatically after re-scans.

Repobility score card

Issue title

Missing import: `warnings` used but not imported

Curate findings to include

Pick exactly which findings appear in the issue body. By default the top 5 are included. Uncheck noise, check what matters.

Top 5 (default)
Severity Rule Title File:line
CRIT MINED107 Missing import: `warnings` used but not imported lib/ansible/module_utils/_embed/dnf.py:137
CRIT MINED107 Missing import: `queue` used but not imported lib/ansible/module_utils/common/_utils.…:22
CRIT MINED107 Missing import: `warnings` used but not imported lib/ansible/_internal/_task.py:660
CRIT MINED107 Missing import: `warnings` used but not imported lib/ansible/module_utils/json_utils.py:73
CRIT MINED107 Missing import: `warnings` used but not imported lib/ansible/config/manager.py:307
CRIT MINED107 Missing import: `warnings` used but not imported lib/ansible/cli/galaxy.py:1590
CRIT MINED107 Missing import: `warnings` used but not imported lib/ansible/modules/async_wrapper.py:111
CRIT MINED107 Missing import: `collections` used but not imported lib/ansible/plugins/list.py:166
CRIT MINED107 Missing import: `queue` used but not imported test/lib/ansible_test/_internal/command…:401
CRIT MINED107 Missing import: `collections` used but not imported test/lib/ansible_test/_internal/command…:214
CRIT MINED107 Missing import: `http` used but not imported test/lib/ansible_test/_internal/ci/azp.…:251
CRIT MINED107 Missing import: `collections` used but not imported test/lib/ansible_test/_internal/data.py:121
CRIT MINED107 Missing import: `queue` used but not imported test/lib/ansible_test/_internal/util_co…:92
CRIT MINED107 Missing import: `inspect` used but not imported test/lib/ansible_test/_internal/host_pr…:1076
CRIT MINED107 Missing import: `queue` used but not imported test/lib/ansible_test/_internal/util.py:1098
CRIT MINED107 Missing import: `glob` used but not imported hacking/update-sanity-requirements.py:177
CRIT private-key Identified a Private Key, which may compromise cryptographic security and sensitive data … test/units/module_utils/urls/fixtures/m…:105
CRIT private-key Identified a Private Key, which may compromise cryptographic security and sensitive data … test/units/module_utils/urls/fixtures/c…:1
CRIT generic-api-key Detected a Generic API Key, potentially exposing access to various services and sensitive… test/integration/targets/rpm_key/vars/m…:10
CRIT private-key Identified a Private Key, which may compromise cryptographic security and sensitive data … test/integration/targets/git/vars/main.…:48
CRIT generic-api-key Detected a Generic API Key, potentially exposing access to various services and sensitive… lib/ansible/plugins/connection/ssh.py:1093
CRIT GHSA-3pqx-4fqf-j49f pyyaml: GHSA-3pqx-4fqf-j49f requirements.txt
CRIT GHSA-8q59-q68h-6hv4 pyyaml: GHSA-8q59-q68h-6hv4 requirements.txt
CRIT GHSA-6757-jp84-gxfx pyyaml: GHSA-6757-jp84-gxfx requirements.txt
HIGH MINED036 [MINED036] Python Os System Call: os.system() invokes shell with no escaping. hacking/test-module.py:199
HIGH MINED034 [MINED034] Python Subprocess Shell True: subprocess(..., shell=True) enables command inje… hacking/test-module.py:251
HIGH MINED001 [MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows e… packaging/cli-doc/build.py:50
HIGH MINED001 [MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows e… hacking/backport/backport_of_line_adder…:163
HIGH SEC078 [SEC078] Python: requests without timeout: requests.get/post without a timeout will hang … hacking/azp/run.py:86
HIGH SEC078 [SEC078] Python: requests without timeout: requests.get/post without a timeout will hang … hacking/azp/get_recent_coverage_runs.py:42
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… hacking/backport/backport_of_line_adder…:34
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… hacking/azp/download.py:132
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … hacking/update-sanity-requirements.py:44
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … .azure-pipelines/scripts/publish-codeco…:76
HIGH SEC103 [SEC103] LDAP injection — non-constant search filter: User input concatenated into an LDA… .azure-pipelines/scripts/combine-covera…:36
HIGH MINED108 `self._format_command_name` used but never assigned in __init__ packaging/release.py:260
HIGH MINED108 `self._format_command_name` used but never assigned in __init__ packaging/release.py:204
HIGH MINED108 `self.run` used but never assigned in __init__ packaging/release.py:249
HIGH MINED108 `self._run` used but never assigned in __init__ packaging/release.py:196
HIGH MINED108 `self.show` used but never assigned in __init__ packaging/release.py:159
HIGH MINED108 `self.show` used but never assigned in __init__ packaging/release.py:155
HIGH MINED106 Phantom test coverage: test_wheel packaging/release.py:1283
HIGH MINED106 Phantom test coverage: test_sdist packaging/release.py:1257
HIGH MINED106 Phantom test coverage: test_built_artifact packaging/release.py:875
HIGH MINED108 `self.write_requirements` used but never assigned in __init__ hacking/update-sanity-requirements.py:73
HIGH MINED108 `self.write_requirements` used but never assigned in __init__ hacking/update-sanity-requirements.py:64
HIGH COMP001 [COMP001] High cognitive complexity: Function `download_run` has cognitive complexity 50 … hacking/azp/download.py:122
HIGH DKR014 Dockerfile copies the entire context without .dockerignore lib/ansible/galaxy/data/apb/Dockerfile.…:8
HIGH MINED118 Dockerfile FROM `ansibleplaybookbundle/apb-base (no tag)` not pinned by digest lib/ansible/galaxy/data/apb/Dockerfile.…:2
HIGH PYSEC-2026-142 urllib3: PYSEC-2026-142 test/sanity/code-smell/mypy.requirement…
HIGH PYSEC-2026-141 urllib3: PYSEC-2026-141 test/sanity/code-smell/mypy.requirement…
HIGH PYSEC-2026-36 cryptography: PYSEC-2026-36 test/sanity/code-smell/mypy.requirement…
HIGH PYSEC-2026-35 cryptography: PYSEC-2026-35 test/sanity/code-smell/mypy.requirement…
HIGH PYSEC-2020-176 pyyaml: PYSEC-2020-176 requirements.txt
MED ERR001 [ERR001] Silent Exception Swallowing: Silently swallowing all exceptions hides bugs. Even… hacking/backport/backport_of_line_adder…:163
MED SEC012 [SEC012] ZipSlip — Archive Path Traversal: Archive extraction without path validation all… hacking/azp/download.py:195
MED MINED111 Bare except continues silently test/lib/ansible_test/_internal/command…:137
MED MINED111 Bare except continues silently test/lib/ansible_test/_internal/command…:251
MED MINED111 Bare except continues silently test/lib/ansible_test/_internal/util_co…:96
MED MINED111 Bare except continues silently test/lib/ansible_test/_internal/target.…:44
MED MINED111 Bare except continues silently test/lib/ansible_test/_internal/thread.…:35
MED MINED111 Bare except continues silently test/lib/ansible_test/_internal/provisi…:223
MED MINED111 Bare except continues silently test/lib/ansible_test/_internal/http.py:79
MED MINED111 Bare except continues silently test/lib/ansible_test/_internal/content…:102
MED MINED111 Bare except continues silently test/lib/ansible_test/_internal/content…:96
MED MINED111 Bare except continues silently test/lib/ansible_test/_internal/util.py:611
MED MINED111 Bare except continues silently test/integration/targets/pause/test-pau…:21
MED MINED111 Bare except continues silently test/integration/targets/var_precedence…:531
MED MINED111 Bare except continues silently test/units/_internal/templating/conftes…:43
MED MINED111 Bare except continues silently test/units/_internal/templating/conftes…:47
MED MINED111 Bare except continues silently hacking/test-module.py:261
MED COMP001 [COMP001] High cognitive complexity: Function `get_coverage_runs` has cognitive complexit… hacking/azp/get_recent_coverage_runs.py:41
MED AUC001 [AUC001] No Repobility access matrix policy found: The repository uses web/API frameworks…
MED DKR007 Docker build context has no .dockerignore .dockerignore
MED DKR002 Dockerfile base image has no explicit tag lib/ansible/galaxy/data/apb/Dockerfile.…:2
MED MINED124 requirements.txt: `typing_extensions; python_version < '3.11' # some unit tests need Ann… test/units/requirements.txt:5
MED MINED124 requirements.txt: `packaging` has no version pin requirements.txt:9
MED MINED124 requirements.txt: `cryptography` has no version pin requirements.txt:8
MED GHSA-6w46-j5rx-g56g pytest: GHSA-6w46-j5rx-g56g test/sanity/code-smell/mypy.requirement…
MED GHSA-q2x7-8rv6-6q7h jinja2: GHSA-q2x7-8rv6-6q7h requirements.txt
MED GHSA-h75v-3vvj-5mfj jinja2: GHSA-h75v-3vvj-5mfj requirements.txt
MED GHSA-h5c8-rqwp-cp95 jinja2: GHSA-h5c8-rqwp-cp95 requirements.txt
MED GHSA-gmj6-6f8f-6699 jinja2: GHSA-gmj6-6f8f-6699 requirements.txt
MED GHSA-cpwx-vrp4-4pq7 jinja2: GHSA-cpwx-vrp4-4pq7 requirements.txt
MED WEB003 Public web service has no security.txt .well-known/security.txt
MED SEC005 [SEC005] Command Injection Risk: Unsafe shell execution or eval of user input. hacking/test-module.py:251
MED CORE_NO_CI No CI/CD configuration found
LOW COMP001 [COMP001] High cognitive complexity: Function `pretty_coverage_runs` has cognitive comple… hacking/azp/get_recent_coverage_runs.py:80
LOW GHSA-5239-wwwm-4pmq pygments: GHSA-5239-wwwm-4pmq test/sanity/code-smell/mypy.requirement…
LOW AIC003 Duplicated implementation block across source files lib/ansible/plugins/action/copy.py:50
LOW AIC003 Duplicated implementation block across source files lib/ansible/playbook/task.py:366
LOW AIC003 Duplicated implementation block across source files lib/ansible/parsing/splitter.py:65
LOW AIC003 Duplicated implementation block across source files lib/ansible/modules/validate_argument_s…:20
LOW AIC003 Duplicated implementation block across source files lib/ansible/modules/uri.py:16
LOW AIC003 Duplicated implementation block across source files lib/ansible/modules/template.py:37
LOW AIC003 Duplicated implementation block across source files lib/ansible/modules/systemd_service.py:1
LOW AIC003 Duplicated implementation block across source files lib/ansible/modules/shell.py:55
LOW AIC003 Duplicated implementation block across source files lib/ansible/modules/set_stats.py:26
LOW AIC003 Duplicated implementation block across source files lib/ansible/modules/set_fact.py:33
LOW AIC003 Duplicated implementation block across source files lib/ansible/modules/service_facts.py:10
LOW AIC003 Duplicated implementation block across source files lib/ansible/modules/replace.py:168
LOW AIC003 Duplicated implementation block across source files lib/ansible/modules/replace.py:6
LOW AIC003 Duplicated implementation block across source files lib/ansible/modules/pause.py:37
LOW AIC003 Duplicated implementation block across source files lib/ansible/modules/package_facts.py:51
LOW AIC003 Duplicated implementation block across source files lib/ansible/modules/include_role.py:26
LOW AIC003 Duplicated implementation block across source files lib/ansible/modules/fetch.py:53
LOW AIC003 Duplicated implementation block across source files lib/ansible/modules/fail.py:18
LOW AIC003 Duplicated implementation block across source files lib/ansible/modules/dnf5.py:21
LOW AIC003 Duplicated implementation block across source files lib/ansible/modules/copy.py:131
LOW AIC003 Duplicated implementation block across source files lib/ansible/module_utils/six/__init__.py:663
LOW AIC003 Duplicated implementation block across source files lib/ansible/module_utils/facts/network/…:26
LOW AIC003 Duplicated implementation block across source files lib/ansible/module_utils/facts/network/…:78
LOW AIC003 Duplicated implementation block across source files lib/ansible/module_utils/facts/hardware…:72
LOW AIC003 Duplicated implementation block across source files lib/ansible/module_utils/facts/hardware…:90
LOW AIC003 Duplicated implementation block across source files lib/ansible/module_utils/facts/hardware…:277
LOW AIC003 Duplicated implementation block across source files lib/ansible/module_utils/csharp/Ansible…:91
LOW AIC003 Duplicated implementation block across source files lib/ansible/module_utils/_internal/_jso…:15
LOW AIC003 Duplicated implementation block across source files test/support/windows-integration/plugin…:1
LOW AIC003 Duplicated implementation block across source files test/support/windows-integration/plugin…:11
LOW AIC005 Duplicate top-level symbol appears in a patch-style file test/support/windows-integration/collec…:1
LOW AIC002 Source file name looks like an AI patch artifact test/support/windows-integration/plugin…:1
LOW AIC002 Source file name looks like an AI patch artifact test/support/windows-integration/plugin…:1
LOW AIC002 Source file name looks like an AI patch artifact test/support/windows-integration/collec…:1
LOW AIC002 Source file name looks like an AI patch artifact test/support/windows-integration/collec…:1
INFO MINED077 [MINED077] Python Open No Context: fp = open(path) outside with-block leaks file handles. hacking/return_skeleton_generator.py:85
INFO MINED064 [MINED064] Python Input Call: input() blocks for stdin. Inappropriate in services. hacking/backport/backport_of_line_adder…:204
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… packaging/cli-doc/build.py:51
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… hacking/backport/backport_of_line_adder…:164
INFO MINED049 [MINED049] Print Pii: Logging password/token/email/ssn directly to stdout. hacking/backport/backport_of_line_adder…:235
INFO MINED067 [MINED067] Python Requests No Timeout: requests.get/post/etc. without timeout= can hang f… hacking/azp/run.py:86
INFO MINED067 [MINED067] Python Requests No Timeout: requests.get/post/etc. without timeout= can hang f… hacking/azp/get_recent_coverage_runs.py:42
INFO MINED055 [MINED055] Npm Install No Lockfile: Production image runs npm install (resolves new versi… .azure-pipelines/scripts/report-coverag…:12
Reset to top 5 132 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `ansible/ansible`

**Score: 72/100 (B-)**  ·  193 findings  ·  scanned 2026-06-05 08:39 UTC  ·  266,691 LOC

| Severity | Count |
|---|---|
| CRITICAL | 24 |
| HIGH | 30 |
| MEDIUM | 33 |
| LOW | 37 |

📊 [Full filterable report](https://repobility.com/scan/529d3d56-8a1c-4035-8414-20e7a8c17bc0/)  ·  ![scorecard](https://repobility.com/scan/529d3d56-8a1c-4035-8414-20e7a8c17bc0/report.png?v=1780648750-s2)

### Top findings

1. **CRITICAL** `MINED107` — Missing import: `warnings` used but not imported
   `lib/ansible/module_utils/_embed/dnf.py:137` · ✓ Repobility
2. **CRITICAL** `MINED107` — Missing import: `queue` used but not imported
   `lib/ansible/module_utils/common/_utils.py:22` · ✓ Repobility
3. **CRITICAL** `MINED107` — Missing import: `warnings` used but not imported
   `lib/ansible/_internal/_task.py:660` · ✓ Repobility
4. **CRITICAL** `MINED107` — Missing import: `warnings` used but not imported
   `lib/ansible/module_utils/json_utils.py:73` · ✓ Repobility
5. **CRITICAL** `MINED107` — Missing import: `warnings` used but not imported
   `lib/ansible/config/manager.py:307` · ✓ Repobility

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/529d3d56-8a1c-4035-8414-20e7a8c17bc0/_
Already filed
This repo publishes a SECURITY.md policy and the scan contains 7 Critical/High security finding(s). Public issue filing would violate coordinated disclosure. Submit privately via the project's security reporting channel.
Megaproject â high spam risk
Could not determine 'ansible/ansible' star count (GitHub API rate-limited or unreachable). When in doubt about repo size, prefer opening a focused PR or a discussion rather than an issue.
Already filed
112/194 findings (58%) on this scan are already flagged as test-file, won't-fix, or suppressed. The scan is too noisy to file as a single issue. Curate down to specific actionable findings, or address the FP source first.

The button opens GitHubâs new-issue page in a new tab. You will see the title + body pre-filled â review, edit if you want, then click GitHubâs "Submit new issue" button. Repobility never posts anything on your behalf.

For real security findings on big repos: use the project's SECURITY.md or private advisory flow instead of a public issue.