← Back to scan
File as GitHub Issue repo: astral-sh/uv

Push this scan report to astral-sh/uv

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

Workflow uses `secrets.UV_TEST_PUBLISH_CODEBERG_TOKEN` on a `pull_request` trigger

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 SEC084 [SEC084] JS: require() with non-literal: require(<variable>) loads arbitrary modules — eq… crates/uv-requirements/src/source_tree.…:212
CRIT MINED013 [MINED013] Password In Url: https://user:password@host — leaks creds via logs, referrer, … crates/uv-configuration/src/proxy_url.rs:169
CRIT MINED116 [MINED116] Workflow uses `secrets.UV_TEST_PUBLISH_PYX_TOKEN` on a `pull_request` trigger:… .github/workflows/ci.yml:408
CRIT MINED116 [MINED116] Workflow uses `secrets.UV_TEST_PUBLISH_CLOUDSMITH_TOKEN` on a `pull_request` t… .github/workflows/ci.yml:407
CRIT MINED116 [MINED116] Workflow uses `secrets.UV_TEST_PUBLISH_CODEBERG_TOKEN` on a `pull_request` tri… .github/workflows/ci.yml:406
CRIT MINED116 [MINED116] Workflow uses `secrets.UV_TEST_PUBLISH_GITLAB_PAT` on a `pull_request` trigger… .github/workflows/ci.yml:405
CRIT MINED116 [MINED116] Workflow uses `secrets.UV_TEST_PUBLISH_PASSWORD` on a `pull_request` trigger: … .github/workflows/ci.yml:404
CRIT MINED116 [MINED116] Workflow uses `secrets.UV_TEST_PUBLISH_TOKEN` on a `pull_request` trigger: Thi… .github/workflows/ci.yml:403
CRIT MINED116 [MINED116] Workflow uses `secrets.UV_TEST_PUBLISH_TEXT_STORE` on a `pull_request` trigger… .github/workflows/ci.yml:396
CRIT MINED116 [MINED116] Workflow uses `secrets.UV_TEST_PUBLISH_KEYRING` on a `pull_request` trigger: T… .github/workflows/ci.yml:390
CRIT MINED116 [MINED116] Workflow uses `secrets.GITLAB_TEST_PUBLISH_ACCESS_TOKEN` on a `pull_request` t… .github/workflows/ci.yml:353
CRIT MINED116 [MINED116] Workflow uses `secrets.GITLAB_TEST_PUBLISH_TRIGGER_TOKEN` on a `pull_request` … .github/workflows/ci.yml:352
HIGH MINED108 [MINED108] `self.setup` used but never assigned in __init__: Method `resolve_warm` of cla… scripts/benchmark/src/benchmark/resolve…:1079
HIGH MINED108 [MINED108] `self.setup` used but never assigned in __init__: Method `resolve_cold` of cla… scripts/benchmark/src/benchmark/resolve…:1058
HIGH MINED108 [MINED108] `self.setup` used but never assigned in __init__: Method `install_warm` of cla… scripts/benchmark/src/benchmark/resolve…:810
HIGH MINED108 [MINED108] `self.setup` used but never assigned in __init__: Method `install_cold` of cla… scripts/benchmark/src/benchmark/resolve…:775
HIGH MINED108 [MINED108] `self.setup` used but never assigned in __init__: Method `resolve_noop` of cla… scripts/benchmark/src/benchmark/resolve…:745
HIGH MINED108 [MINED108] `self.setup` used but never assigned in __init__: Method `resolve_incremental`… scripts/benchmark/src/benchmark/resolve…:700
HIGH MINED108 [MINED108] `self.setup` used but never assigned in __init__: Method `resolve_warm` of cla… scripts/benchmark/src/benchmark/resolve…:678
HIGH MINED108 [MINED108] `self.setup` used but never assigned in __init__: Method `resolve_cold` of cla… scripts/benchmark/src/benchmark/resolve…:661
HIGH MINED108 [MINED108] `self.setup` used but never assigned in __init__: Method `install_warm` of cla… scripts/benchmark/src/benchmark/resolve…:581
HIGH MINED108 [MINED108] `self.setup` used but never assigned in __init__: Method `install_cold` of cla… scripts/benchmark/src/benchmark/resolve…:536
HIGH MINED108 [MINED108] `self.setup` used but never assigned in __init__: Method `resolve_noop` of cla… scripts/benchmark/src/benchmark/resolve…:499
HIGH MINED108 [MINED108] `self.setup` used but never assigned in __init__: Method `resolve_incremental`… scripts/benchmark/src/benchmark/resolve…:443
HIGH MINED108 [MINED108] `self.setup` used but never assigned in __init__: Method `resolve_warm` of cla… scripts/benchmark/src/benchmark/resolve…:416
HIGH MINED108 [MINED108] `self.setup` used but never assigned in __init__: Method `resolve_cold` of cla… scripts/benchmark/src/benchmark/resolve…:389
HIGH MINED108 [MINED108] `self.install_warm` used but never assigned in __init__: Method `command` of c… scripts/benchmark/src/benchmark/resolve…:104
HIGH MINED108 [MINED108] `self.install_cold` used but never assigned in __init__: Method `command` of c… scripts/benchmark/src/benchmark/resolve…:102
HIGH MINED108 [MINED108] `self.resolve_noop` used but never assigned in __init__: Method `command` of c… scripts/benchmark/src/benchmark/resolve…:100
HIGH MINED108 [MINED108] `self.resolve_incremental` used but never assigned in __init__: Method `comman… scripts/benchmark/src/benchmark/resolve…:98
HIGH MINED108 [MINED108] `self.resolve_warm` used but never assigned in __init__: Method `command` of c… scripts/benchmark/src/benchmark/resolve…:96
HIGH MINED108 [MINED108] `self.resolve_cold` used but never assigned in __init__: Method `command` of c… scripts/benchmark/src/benchmark/resolve…:94
HIGH MINED108 [MINED108] `self.run` used but never assigned in __init__: Method `command` of class `Sui… scripts/benchmark/src/benchmark/tools.py:40
HIGH MINED108 [MINED108] `self.install_warm` used but never assigned in __init__: Method `command` of c… scripts/benchmark/src/benchmark/tools.py:38
HIGH MINED108 [MINED108] `self.install_cold` used but never assigned in __init__: Method `command` of c… scripts/benchmark/src/benchmark/tools.py:36
HIGH MINED108 [MINED108] `self.value` used but never assigned in __init__: Method `test_file` of class … scripts/scenarios/generate.py:85
HIGH MINED108 [MINED108] `self.name` used but never assigned in __init__: Method `template_file` of cla… scripts/scenarios/generate.py:82
HIGH MINED106 [MINED106] Phantom test coverage: test_file: Test function `test_file` runs code but cont… scripts/scenarios/generate.py:84
HIGH SEC103 [SEC103] LDAP injection — non-constant search filter: User input concatenated into an LDA… scripts/sync-python-version-constants.py:81
HIGH SEC080 [SEC080] Python: tarfile.extractall without filter: tarfile.extract*() without filter='da… scripts/repair-sdist-cargo-lock.py:32
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … scripts/create-python-mirror.py:61
HIGH MINED006 [MINED006] Overcatch Baseexception: except BaseException: ... — prevents Ctrl+C and Syste… python/uv/__main__.py:43
HIGH MINED041 [MINED041] Rust Unimplemented Macro: unimplemented!() panics. Same as todo!() but convent… crates/uv/src/commands/build_backend.rs:56
HIGH MINED041 [MINED041] Rust Unimplemented Macro: unimplemented!() panics. Same as todo!() but convent… crates/uv-resolver/src/dependency_provi…:30
HIGH MINED041 [MINED041] Rust Unimplemented Macro: unimplemented!() panics. Same as todo!() but convent… crates/uv-macros/src/lib.rs:32
HIGH MINED004 [MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums). crates/uv-platform/src/cpuinfo.rs:71
HIGH MINED004 [MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums). crates/uv-extract/src/hash.rs:11
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… crates/uv-cache/src/wheel.rs:33
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… crates/uv-auth/src/service.rs:49
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… crates/uv-auth/src/providers.rs:84
HIGH MINED003 [MINED003] Rust Unwrap In Prod: .unwrap() panics if None/Err. Acceptable in tests; risky … crates/uv-bench/benches/uv.rs:13
HIGH MINED003 [MINED003] Rust Unwrap In Prod: .unwrap() panics if None/Err. Acceptable in tests; risky … crates/uv-auth/src/providers.rs:209
HIGH MINED003 [MINED003] Rust Unwrap In Prod: .unwrap() panics if None/Err. Acceptable in tests; risky … crates/uv-auth/src/index.rs:136
HIGH MINED001 [MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows e… crates/uv-virtualenv/src/_virtualenv.py:80
HIGH MINED001 [MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows e… .claude/hooks/post-edit-format.py:22
HIGH DKR006 Dockerfile pipes a remote script into a shell crates/uv-trampoline/Dockerfile:38
HIGH MINED134 [MINED134] Binary file `crates/uv-trampoline-builder/trampolines/uv-trampoline-i686-gui.e… crates/uv-trampoline-builder/trampoline…:1
HIGH MINED134 [MINED134] Binary file `crates/uv-trampoline-builder/trampolines/uv-trampoline-aarch64-co… crates/uv-trampoline-builder/trampoline…:1
HIGH MINED134 [MINED134] Binary file `crates/uv-trampoline-builder/trampolines/uv-trampoline-x86_64-gui… crates/uv-trampoline-builder/trampoline…:1
HIGH MINED134 [MINED134] Binary file `crates/uv-trampoline-builder/trampolines/uv-trampoline-i686-conso… crates/uv-trampoline-builder/trampoline…:1
HIGH MINED134 [MINED134] Binary file `crates/uv-trampoline-builder/trampolines/uv-trampoline-aarch64-gu… crates/uv-trampoline-builder/trampoline…:1
HIGH MINED134 [MINED134] Binary file `crates/uv-trampoline-builder/trampolines/uv-trampoline-x86_64-con… crates/uv-trampoline-builder/trampoline…:1
HIGH MINED126 [MINED126] Workflow container/services image `amazonlinux:2023` unpinned: `container/serv… .github/workflows/test-system.yml:790
HIGH MINED126 [MINED126] Workflow container/services image `alpine:latest` unpinned: `container/service… .github/workflows/test-system.yml:377
HIGH MINED126 [MINED126] Workflow container/services image `pyston/pyston:2.3.5` unpinned: `container/s… .github/workflows/test-system.yml:299
HIGH MINED126 [MINED126] Workflow container/services image `python:3.7-buster` unpinned: `container/ser… .github/workflows/test-system.yml:126
HIGH MINED126 [MINED126] Workflow container/services image `python:3.6-buster` unpinned: `container/ser… .github/workflows/test-system.yml:102
HIGH MINED126 [MINED126] Workflow container/services image `alpine:latest` unpinned: `container/service… .github/workflows/test-smoke.yml:78
HIGH MINED126 [MINED126] Workflow container/services image `quay.io/pypa/manylinux2014` unpinned: `cont… .github/workflows/build-release-binarie…:361
HIGH MINED118 [MINED118] Dockerfile FROM `ubuntu:22.04` not pinned by digest: `FROM ubuntu:22.04` resol… crates/uv-dev/builder.dockerfile:3
HIGH MINED131 [MINED131] pre-commit hook `https://github.com/astral-sh/ruff-pre-commit` pinned to mutab… .pre-commit-config.yaml:45
HIGH MINED131 [MINED131] pre-commit hook `https://github.com/crate-ci/typos` pinned to mutable rev `v1.… .pre-commit-config.yaml:13
HIGH MINED131 [MINED131] pre-commit hook `https://github.com/abravalheri/validate-pyproject` pinned to … .pre-commit-config.yaml:9
HIGH SEC013 [SEC013] Path Traversal — User Input in File Path: User-controlled input used in file pat… scripts/publish-crates.py:80
HIGH SEC004 [SEC004] SQL Injection Risk: String interpolation in SQL execution. Allows SQL injection. scripts/update_schemastore.py:38
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… scripts/registries-test.py:339
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… scripts/registries-test.py:257
MED SEC034 [SEC034] Log Injection / Log Forging — unsanitized user input in log: User input is logge… scripts/check_system_python.py:22
MED SEC012 [SEC012] ZipSlip — Archive Path Traversal: Archive extraction without path validation all… scripts/repair-sdist-cargo-lock.py:32
MED COMP001 [COMP001] High cognitive complexity: Function `find_spec` has cognitive complexity 19 (So… crates/uv-virtualenv/src/_virtualenv.py:50
MED COMP001 [COMP001] High cognitive complexity: Function `platform_tags` has cognitive complexity 22… crates/uv-python/python/packaging/_many…:214
MED DKR007 Docker build context has no .dockerignore .dockerignore
MED DKR001 Docker final stage has no non-root USER crates/uv-trampoline/Dockerfile:63
MED AGT015 Remote install command pipes network code directly to a shell docs/reference/installer.md:57
MED AGT015 Remote install command pipes network code directly to a shell docs/getting-started/installation.md:16
MED CORE_LARGE_FILES Average file size is 739 lines (recommend <300)
LOW COMP001 [COMP001] High cognitive complexity: Function `_is_compatible` has cognitive complexity 1… crates/uv-python/python/packaging/_many…:178
LOW AIC003 Duplicated implementation block across source files crates/uv/src/commands/pip/install.rs:226
LOW AIC003 Duplicated implementation block across source files crates/uv/src/commands/pip/install.rs:158
LOW AIC003 Duplicated implementation block across source files crates/uv/src/commands/cache_prune.rs:11
LOW AIC003 Duplicated implementation block across source files crates/uv/src/commands/auth/token.rs:32
LOW AIC003 Duplicated implementation block across source files crates/uv-resolver/src/resolver/reporte…:15
LOW AIC003 Duplicated implementation block across source files crates/uv-resolver/src/resolver/environ…:412
LOW AIC003 Duplicated implementation block across source files crates/uv-resolver/src/lock/tree.rs:79
LOW AIC003 Duplicated implementation block across source files crates/uv-resolver/src/lock/installable…:104
LOW AIC003 Duplicated implementation block across source files crates/uv-requirements/src/unnamed.rs:28
LOW AIC003 Duplicated implementation block across source files crates/uv-requirements/src/source_tree.…:71
LOW AIC003 Duplicated implementation block across source files crates/uv-requirements/src/lookahead.rs:33
LOW AIC003 Duplicated implementation block across source files crates/uv-pypi-types/src/metadata/requi…:37
LOW AIC003 Duplicated implementation block across source files crates/uv-publish/src/trusted_publishin…:35
LOW AIC003 Duplicated implementation block across source files crates/uv-platform-tags/src/platform.rs:110
LOW AIC003 Duplicated implementation block across source files crates/uv-platform-tags/src/language_ta…:3
LOW AIC003 Duplicated implementation block across source files crates/uv-normalize/src/package_name.rs:7
LOW AIC003 Duplicated implementation block across source files crates/uv-normalize/src/lib.rs:128
LOW AIC003 Duplicated implementation block across source files crates/uv-keyring/src/windows.rs:498
LOW AIC003 Duplicated implementation block across source files crates/uv-installer/src/satisfies.rs:386
LOW AIC003 Duplicated implementation block across source files crates/uv-keyring/src/windows.rs:490
LOW AIC003 Duplicated implementation block across source files crates/uv-keyring/src/secret_service.rs:438
LOW AIC003 Duplicated implementation block across source files crates/uv-keyring/src/mock.rs:154
LOW AIC003 Duplicated implementation block across source files crates/uv-install-wheel/src/uninstall.rs:312
LOW AIC003 Duplicated implementation block across source files crates/uv-distribution/src/metadata/req…:190
LOW AIC003 Duplicated implementation block across source files crates/uv-distribution/src/metadata/req…:152
LOW AIC003 Duplicated implementation block across source files crates/uv-dev/src/generate_sysconfig_ma…:50
LOW AIC003 Duplicated implementation block across source files crates/uv-dev/src/generate_sysconfig_ma…:28
LOW AIC003 Duplicated implementation block across source files crates/uv-dev/src/generate_options_refe…:25
LOW AIC003 Duplicated implementation block across source files crates/uv-dev/src/generate_options_refe…:11
LOW AIC003 Duplicated implementation block across source files crates/uv-configuration/src/sources.rs:30
LOW DKR011 Dockerfile installs recommended OS packages crates/uv-trampoline/Dockerfile:28
LOW AIC002 Source file name looks like an AI patch artifact crates/uv/src/commands/self_update.rs:1
LOW AIC002 Source file name looks like an AI patch artifact crates/uv/src/commands/cache_clean.rs:1
INFO MINED073 [MINED073] Redos Greedy Quantifier: Pattern with nested quantifiers like (a+)+ applied to… scripts/check_registry.py:111
INFO MINED072 [MINED072] Python Pass Only Class: class Foo: pass — stub waiting to be filled in. crates/uv-python/python/packaging/_elff…:17
INFO MINED066 [MINED066] Rust Panic Macro: panic!() unwinds the stack. Use Result for recoverable error… crates/uv-requirements/src/lookahead.rs:155
INFO MINED066 [MINED066] Rust Panic Macro: panic!() unwinds the stack. Use Result for recoverable error… crates/uv-keyring/src/error.rs:88
INFO MINED066 [MINED066] Rust Panic Macro: panic!() unwinds the stack. Use Result for recoverable error… crates/uv-extract/src/lib.rs:142
INFO MINED068 [MINED068] Rust Unsafe Block: unsafe { ... } block. Compiler safety guarantees disabled i… crates/uv-fs/src/which.rs:20
INFO MINED068 [MINED068] Rust Unsafe Block: unsafe { ... } block. Compiler safety guarantees disabled i… crates/uv-fastid/src/lib.rs:36
INFO MINED068 [MINED068] Rust Unsafe Block: unsafe { ... } block. Compiler safety guarantees disabled i… crates/uv-client/src/rkyvutil.rs:170
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… crates/uv-configuration/src/trusted_hos…:97
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… crates/uv-configuration/src/proxy_url.rs:66
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… crates/uv-auth/src/realm.rs:279
INFO MINED059 [MINED059] Rust Expect In Prod: .expect(...) panics same as unwrap with a custom message. crates/uv-build/src/main.rs:67
INFO MINED059 [MINED059] Rust Expect In Prod: .expect(...) panics same as unwrap with a custom message. crates/uv-bench/benches/uv.rs:68
INFO MINED059 [MINED059] Rust Expect In Prod: .expect(...) panics same as unwrap with a custom message. crates/uv-auth/src/providers.rs:21
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… scripts/scenarios/generate.py:93
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… crates/uv-python/python/packaging/_elff…:18
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… .claude/hooks/post-edit-format.py:23
Reset to top 5 137 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `astral-sh/uv`

**Score: 77/100 (A-)**  ·  142 findings  ·  scanned 2026-05-31 01:25 UTC  ·  500,019 LOC

| Severity | Count |
|---|---|
| CRITICAL | 12 |
| HIGH | 63 |
| MEDIUM | 11 |
| LOW | 34 |

📊 [Full filterable report](https://repobility.com/scan/bee51646-a8dc-410c-9ffa-753bd32e1390/)  ·  ![scorecard](https://repobility.com/scan/bee51646-a8dc-410c-9ffa-753bd32e1390/report.png?v=1780190738-s2)

### Top findings

1. **CRITICAL** `SEC084` — JS: require() with non-literal
   `crates/uv-requirements/src/source_tree.rs:212`
2. **CRITICAL** `MINED013` — Password In Url
   `crates/uv-configuration/src/proxy_url.rs:169` · CWE-200 · ✓ Repobility
3. **CRITICAL** `MINED116` — Workflow uses `secrets.UV_TEST_PUBLISH_PYX_TOKEN` on a `pull_request` trigger
   `.github/workflows/ci.yml:408` · ✓ Repobility
4. **CRITICAL** `MINED116` — Workflow uses `secrets.UV_TEST_PUBLISH_CLOUDSMITH_TOKEN` on a `pull_request` trigger
   `.github/workflows/ci.yml:407` · ✓ Repobility
5. **CRITICAL** `MINED116` — Workflow uses `secrets.UV_TEST_PUBLISH_CODEBERG_TOKEN` on a `pull_request` trigger
   `.github/workflows/ci.yml:406` · ✓ Repobility

---

**Security note**: this issue is public. If any flagged finding is a real, exploitable vulnerability, please redirect to your `SECURITY.md` policy or open a [private security advisory](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities/privately-reporting-a-security-vulnerability) instead. We're happy to close this and re-submit privately.

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/bee51646-a8dc-410c-9ffa-753bd32e1390/_
Already filed
This repo publishes a SECURITY.md policy and the scan contains 10 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 'astral-sh/uv' 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.

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.