Public scan — anyone with this URL can view this analysis. Sign up to track your own repos privately, run scheduled re-scans, and get AI fix prompts via your dashboard.
78 of your 93 findings came from Repobility's proprietary detections. ✓ Repobility tags below mark them.

Scan timing: clone 2.51s · analysis 9.43s · 0.4 MB · GitHub API rate-limit (preflight)

py2exe/py2exe

https://github.com/py2exe/py2exe · scanned 2026-06-05 19:46 UTC (4 days, 14 hours ago) · 10 languages

313 raw signals (89 security + 224 graph) 76th percentile · Python · small (2-20K LoC) System graph score 70 (higher by 10)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

Last scanned 4 days, 14 hours ago · v2 · 125 actionable findings from 2 signal sources. 76 repeated signals grouped for readability. Security checks, system graph analysis, and verified AI-agent feedback are merged into one review queue.

JSON
Score breakdown â 2026-05-18-v5
Component Sub-score Weight Contribution
structure_score 75.0 0.15 11.25
security_score 84.2 0.25 21.05
testing_score 90.0 0.20 18.00
documentation_score 78.0 0.15 11.70
practices_score 67.0 0.15 10.05
code_quality 71.4 0.10 7.14
Overall 1.00 79.2
Severity distribution — click a segment to filter
Active filters: excluding tests × Reset all
Scan summary Quality grade B+ (79/100). Dimensions: security 84, maintainability 75. 89 findings (30 security). 9,248 lines analyzed.

Showing 94 of 125 actionable findings. 201 raw detector signals were grouped into reader-sized issues. Click TP / FP to vote on a finding's accuracy — votes adjust the confidence weighting and improve detection across the platform.

critical System graph security Secrets conf 1.00 Possible secret in py2exe/boot_service.py
Detected pattern matching password_literal. Rotate the credential and move to a secret manager.
py2exe/boot_service.py:95
high Security checks quality Quality conf 1.00 ✓ Repobility [MINED021] Path Traversal Os Join: os.path.join(user_dir, filename) where filename can contain "../" — directory escape.
Review and fix per the pattern semantics. See CWE-22 / A01:2021 for context.
py2exe/boot_common.py:56
high Security checks quality Quality conf 1.00 ✓ Repobility 25 occurrences `self.has_interpreters` used but never assigned in __init__
Method `has_extensions` of class `Dist` reads `self.has_interpreters`, but no assignment to it exists in __init__ (and no class-level fallback). This raises AttributeError the first time the method runs against an instance.
2 files, 25 locations
py2exe_setuptools.py:40, 43, 51, 52, 59, 74, 76, 78, +7 more (16 hits)
zipextimporter.py:63, 74, 79, 93, 115, 118, 122, 123, +1 more (9 hits)
low Security checks cicd CI/CD security conf 0.90 ✓ Repobility 19 occurrences GitHub Action is tag-pinned rather than SHA-pinned
Action `actions/checkout` pinned to mutable ref `@v6` uses a mutable tag or branch. Pin external actions to a reviewed full commit SHA when the workflow is security-sensitive.
lines 11, 22, 25, 52, 67, 70, 102, 117, +2 more
.github/workflows/CI.yml:11, 22, 25, 52, 67, 70, 102, 117, +2 more (19 hits)
CI/CD securitySupply chainGitHub Actions
high System graph security security conf 1.00 Insecure pattern 'eval_used' in py2exe/hooks.py:366
Found a known-risky pattern (eval_used). Review and replace if possible.
py2exe/hooks.py:366 Eval used
low Security checks quality Error handling conf 0.55 ✓ Repobility Broad exception handler needs review
This handler catches Exception/BaseException. It is actionable when it swallows errors without logging, re-raising, or returning a structured error. Handlers that intentionally convert exceptions into typed error results should not be treated as high risk.
py2exe/mf310.py:67 Error handlingquality
medium Security checks quality Quality conf 1.00 ✓ Repobility Mutable default argument in `__init__` (list)
`def __init__(... = []/{}/set())` — Python's default value is constructed ONCE at function definition time and shared across all calls. Mutating it in one call mutates it for every future call too.
py2exe/dllfinder.py:234
medium Security checks quality Quality conf 1.00 ✓ Repobility Mutable default argument in `freeze` (dict)
`def freeze(... = []/{}/set())` — Python's default value is constructed ONCE at function definition time and shared across all calls. Mutating it in one call mutates it for every future call too.
py2exe/__init__.py:46
medium Security checks quality Quality conf 1.00 ✓ Repobility Mutable default argument in `freeze` (list)
`def freeze(... = []/{}/set())` — Python's default value is constructed ONCE at function definition time and shared across all calls. Mutating it in one call mutates it for every future call too.
py2exe/__init__.py:46
medium Security checks software dependencies conf 0.90 ✓ Repobility 15 occurrences requirements.txt: `winrt` has no version pin
Unpinned pip requirement means every fresh install may resolve a different version. Newer releases can introduce malicious code (typosquats, account compromises). Reproducible installs need exact pins.
12 files, 12 locations
tests/functional/_winrt_test/requirements.txt:1
tests/functional/_wxPython_test/requirements.txt:1
tests/functional/_zope_interface_test/requirements.txt:1
tests/functional/certifi_test/requirements.txt:1
tests/functional/certifi_zip_test/requirements.txt:1
tests/functional/matplotlib_test/requirements.txt:1
tests/functional/metadata_test/requirements.txt:1
tests/functional/numpy_test/requirements.txt:1
medium System graph security Coverage conf 1.00 No auth library detected
The scanner did not find any standard auth library (JWT, OAuth, NextAuth, Auth0, etc.). Either auth lives in custom code, in a separate service, or is missing.
auth
low Security checks quality Quality conf 0.60 4 occurrences Duplicated implementation block across source files
Duplicate implementation blocks are maintenance debt. Keep them visible, but they are not a high-severity defect unless the duplicated logic is security-sensitive or drifting.
3 files, 4 locations
source/run_w.c:1, 5 (2 hits)
setup_zipextimporter.py:13
source/run_ctypes_dll.c:13
duplicationquality
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/_winrt_test/freeze.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/_winrt_test/winrt_test.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/_wxPython_test/freeze.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/_wxPython_test/wxPython_test.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/_zope_interface_test/freeze.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/bundlefiles0_sqlite_test/bundlefiles0_sqlite_test.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/bundlefiles0_sqlite_test/freeze.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/bundlefiles0_ssl_test/bundlefiles0_ssl_test.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/bundlefiles0_ssl_test/freeze.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/bundlefiles0_test/bundlefiles0_test.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/bundlefiles0_test/freeze.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/bundlefiles1_test/bundlefiles1_test.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/bundlefiles1_test/freeze.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/bundlefiles2_test/bundlefiles2_test.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/bundlefiles2_test/freeze.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/certifi_test/certifi_test.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/certifi_test/freeze.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/certifi_zip_test/certifi_zip_test.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/certifi_zip_test/freeze.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/enable_tests.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/matplotlib_test/freeze.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/matplotlib_test/matplotlib_test.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/metadata_test/freeze.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/metadata_test/metadata_test.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/numpy_test/freeze.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/numpy_test/numpy_test.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/nvda_test/freeze.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/nvda_test/globalVars.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/nvda_test/nvda_test.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/pandas_test/freeze.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/pandas_test/pandas_test.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/pycryptodome_test/freeze.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/pycryptodome_test/pycryptodome_test.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/pyphen_test/freeze.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/pyphen_test/pyphen_test.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/pywin32_test/freeze.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/pywin32_test/pywin32_test.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/requests_bundlefiles1_test/freeze.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/requests_bundlefiles1_test/requests_bf_1_test.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/scipy_test/freeze.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/sqlite_test/freeze.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/sqlite_test/sqlite_test.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/ssl_test/freeze.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/ssl_test/ssl_test.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/tk_test/freeze.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/two_binaries_different_version_info_test/two_binaries_different_version_info_test_1.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/two_binaries_different_version_info_test/two_binaries_different_version_info_test_2.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/two_binaries_single_version_info_test/freeze.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/two_binaries_single_version_info_test/two_binaries_single_version_info_test_1.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/functional/two_binaries_single_version_info_test/two_binaries_single_version_info_test_2.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph quality Integrity conf 1.00 12 occurrences Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: py2exe_setuptools.py:build_interpreters, py2exe_setuptools.py:build_interp This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why they're separate.
12 occurrences
repo-level (12 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 4 places
Functions with the same first-5-line body hash: py2exe/hooks.py:visit_FunctionDef, py2exe/hooks.py:visit_FunctionDef, py2exe/hooks.py:visit_FunctionDef, py2exe/hooks.py:visit_FunctionDef This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygien…
duplicatesduplication
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 5 places
Functions with the same first-5-line body hash: py2exe/versioninfo.py:get_value, py2exe/versioninfo.py:get_value, py2exe/versioninfo.py:get_value, py2exe/versioninfo.py:get_value This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Cons…
duplicatesduplication
low System graph software Dead code conf 1.00 Possibly dead Python function: add_string
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
py2exe/resources.py:51
low System graph software Dead code conf 1.00 Possibly dead Python function: BOOL_errcheck
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
py2exe/_wapi.py:7
low System graph software Dead code conf 1.00 Possibly dead Python function: build_extensions
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
py2exe_setuptools.py:200
low System graph software Dead code conf 1.00 Possibly dead Python function: DllRegisterServer
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
py2exe/boot_ctypes_com_server.py:75
low System graph software Dead code conf 1.00 Possibly dead Python function: DllUnregisterServer
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
py2exe/boot_ctypes_com_server.py:84
low System graph software Dead code conf 1.00 Possibly dead Python function: has_ext_modules
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
py2exe_setuptools.py:42
low System graph software Dead code conf 1.00 Possibly dead Python function: has_extensions
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
py2exe_setuptools.py:39
low System graph software Dead code conf 1.00 Possibly dead Python function: hook__socket
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
py2exe/hooks.py:238
low System graph software Dead code conf 1.00 Possibly dead Python function: hook_certifi
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
py2exe/hooks.py:92
low System graph software Dead code conf 1.00 Possibly dead Python function: hook_cffi
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
py2exe/hooks.py:118
low System graph software Dead code conf 1.00 Possibly dead Python function: hook_cffi_cparser
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
py2exe/hooks.py:115
low System graph software Dead code conf 1.00 Possibly dead Python function: hook_ctypes
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
py2exe/hooks.py:189
low System graph software Dead code conf 1.00 Possibly dead Python function: hook_multiprocessing
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
py2exe/hooks.py:198
low System graph software Dead code conf 1.00 Possibly dead Python function: hook_OpenSSL
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
py2exe/hooks.py:88
low System graph software Dead code conf 1.00 Possibly dead Python function: hook_passlib
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
py2exe/hooks.py:215
low System graph software Dead code conf 1.00 Possibly dead Python function: hook_PIL
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
py2exe/hooks.py:231
low System graph software Dead code conf 1.00 Possibly dead Python function: hook_pycparser
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
py2exe/hooks.py:70
low System graph software Dead code conf 1.00 Possibly dead Python function: hook_pycparser__build_tables
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
py2exe/hooks.py:78
low System graph software Dead code conf 1.00 Possibly dead Python function: hook_pycparser_ply
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
py2exe/hooks.py:84
low System graph software Dead code conf 1.00 Possibly dead Python function: hook_pyphen
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
py2exe/hooks.py:249
low System graph software Dead code conf 1.00 Possibly dead Python function: hook_pyreadline
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
py2exe/hooks.py:297
low System graph software Dead code conf 1.00 Possibly dead Python function: hook_urllib3
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
py2exe/hooks.py:317
low System graph software Dead code conf 1.00 Possibly dead Python function: hook_urllib_request
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
py2exe/hooks.py:312
low System graph software Dead code conf 1.00 Possibly dead Python function: hook_xml_etree_ElementTree
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
py2exe/hooks.py:306
low System graph software Dead code conf 1.00 Possibly dead Python function: import_psutil
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
py2exe/hooks.py:223
low System graph software Dead code conf 1.00 Possibly dead Python function: safe_import_hook_later
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
py2exe/dllfinder.py:335
low System graph software Dead code conf 1.00 Possibly dead Python function: set_min_bundle
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
py2exe/dllfinder.py:264
low System graph software Dead code conf 1.00 Possibly dead Python function: visit_Try
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
py2exe/hooks.py:274
low System graph quality Integrity conf 1.00 Stub function `flush` (body is just `pass`/`return`) — py2exe/boot_common.py:91
Likely an AI scaffold that was never filled in. Remove or implement.
Empty handlerDead code
For AI agents: Voting guide (TP/FP) MCP manifest Stdio wrapper SARIF Integrate Findings queue Vote TP/FP on findings to calibrate the engine.
For AI agents + API integrations
Email me when this repo regresses
Free. We re-scan periodically; new criticals → your inbox. No signup required for the scan itself.
API access

This page is publicly accessible at: https://repobility.com/scan/34046f5e-e67b-4cea-82ac-3e1d5bffb896/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/34046f5e-e67b-4cea-82ac-3e1d5bffb896/

Important — please don't re-submit the same URL repeatedly. The submission endpoint is idempotent: re-submitting the same git URL returns this same scan_token, not a new one. To re-scan this repo, sign up free and use the dashboard.