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.
95 of your 134 findings came from Repobility's proprietary detections. ✓ Repobility tags below mark them.

openai/openai-cookbook

https://github.com/openai/openai-cookbook · scanned 2026-06-05 07:58 UTC (5 days, 21 hours ago) · 10 languages

122 findings 11/13 scanners ran 64th percentile · Python · medium (20-100K LoC)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

58 actionable findings from 1 signal source. 64 repeated signals grouped for readability. Security checks, system graph analysis, and verified AI-agent feedback are merged into one review queue.

Score breakdown â 2026-05-18-v5
Component Sub-score Weight Contribution
structure_score 40.0 0.15 6.00
security_score 100.0 0.25 25.00
testing_score 75.0 0.20 15.00
documentation_score 67.0 0.15 10.05
practices_score 70.0 0.15 10.50
code_quality 57.0 0.10 5.70
Overall 1.00 72.2
security_score may be inflated — optional security scanners were skipped on this fast scan
Severity distribution — click a segment to filter
Active filters: excluding tests × Reset all

Showing 26 of 58 actionable findings. 122 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.

high Security checks quality Quality conf 1.00 ✓ Repobility [MINED107] Missing import: `html` used but not imported: The file uses `html.something(...)` but never imports `html`. This raises NameError at runtime the first time the line executes.
Add `import html` at the top of the file.
examples/agents_sdk/deployment_manager/app/main.py:98
high Security checks quality Quality conf 1.00 ✓ Repobility [MINED107] Missing import: `stat` used but not imported: The file uses `stat.something(...)` but never imports `stat`. This raises NameError at runtime the first time the line executes.
Add `import stat` at the top of the file.
examples/partners/macro_evals_for_agentic_systems/helpers/macro_eval_pipeline.py:2331
low Security checks quality Quality conf 1.00 ✓ Repobility [MINED006] Overcatch Baseexception: except BaseException: ... — prevents Ctrl+C and SystemExit from working.
Review and fix per the pattern semantics. See CWE-705 / for context.
examples/deep_research_api/how_to_build_a_deep_research_mcp_server/main.py:200
high Security checks quality Quality conf 1.00 ✓ Repobility 25 occurrences [MINED108] `self.is_done` used but never assigned in __init__: Method `parse` of class `Parser` reads `self.is_done`, 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.
Initialize `self.is_done = <default>` in __init__, or add a class-level default.
3 files, 25 locations
examples/gpt-5/apply_patch.py:106, 107, 111, 115, 120, 130, 134, 137, +4 more (12 hits)
examples/partners/agentic_governance_guide/guardrail_tuner/feedback_loop.py:189, 258, 259, 284, 333, 344, 347, 384, +1 more (9 hits)
examples/partners/agentic_governance_guide/guardrail_tuner/threshold_adjuster.py:38, 89, 101, 200 (4 hits)
high Security checks quality Quality conf 1.00 ✓ Repobility [MINED110] Blocking call `input` inside async function `run_agent`: `input` is a synchronous (blocking) call. When invoked inside an `async def` it stalls the event loop, preventing every other coroutine in the process from making progress.
Use the async equivalent: `aiohttp` instead of `requests`, `asyncio.sleep` instead of `time.sleep`, `aiofiles` instead of `open`.
examples/mcp/building-a-supply-chain-copilot-with-agent-sdk-and-databricks-mcp/main.py:70
high Security checks quality Quality conf 0.80 ✓ Repobility [MINED112] FastAPI DELETE /api/deployments/<deployment_id> has no auth: Handler `remove_deployment` is registered with router/app.delete(...) but no Depends/Security parameter is declared and no auth marker appears in the function body.
Add Depends(get_current_user) or Security(...) to the handler signature. If the route is truly public, document it with a code comment so the rule knows it's intentional.
examples/agents_sdk/deployment_manager/app/main.py:280
high Security checks quality Quality conf 0.80 ✓ Repobility [MINED112] FastAPI POST /api/deployments has no auth: Handler `create_deployment` is registered with router/app.post(...) but no Depends/Security parameter is declared and no auth marker appears in the function body.
Add Depends(get_current_user) or Security(...) to the handler signature. If the route is truly public, document it with a code comment so the rule knows it's intentional.
examples/agents_sdk/deployment_manager/app/main.py:201
high Security checks quality Quality conf 0.80 ✓ Repobility [MINED112] FastAPI POST /api/deployments/<deployment_id>/start has no auth: Handler `start_deployment` is registered with router/app.post(...) but no Depends/Security parameter is declared and no auth marker appears in the function body.
Add Depends(get_current_user) or Security(...) to the handler signature. If the route is truly public, document it with a code comment so the rule knows it's intentional.
examples/agents_sdk/deployment_manager/app/main.py:247
high Security checks quality Quality conf 0.80 ✓ Repobility [MINED112] FastAPI POST /api/deployments/<deployment_id>/stop has no auth: Handler `stop_deployment` is registered with router/app.post(...) but no Depends/Security parameter is declared and no auth marker appears in the function body.
Add Depends(get_current_user) or Security(...) to the handler signature. If the route is truly public, document it with a code comment so the rule knows it's intentional.
examples/agents_sdk/deployment_manager/app/main.py:267
high Security checks quality Quality conf 0.80 ✓ Repobility [MINED112] FastAPI POST /api/projects/import has no auth: Handler `import_project` is registered with router/app.post(...) but no Depends/Security parameter is declared and no auth marker appears in the function body.
Add Depends(get_current_user) or Security(...) to the handler signature. If the route is truly public, document it with a code comment so the rule knows it's intentional.
examples/agents_sdk/deployment_manager/app/main.py:135
high Security checks quality Quality conf 0.80 ✓ Repobility [MINED112] FastAPI POST /api/traces/ingest has no auth: Handler `ingest_traces` is registered with router/app.post(...) but no Depends/Security parameter is declared and no auth marker appears in the function body.
Add Depends(get_current_user) or Security(...) to the handler signature. If the route is truly public, document it with a code comment so the rule knows it's intentional.
examples/agents_sdk/deployment_manager/app/main.py:401
high Security checks quality Quality conf 0.80 ✓ Repobility [MINED112] FastAPI POST /chat has no auth: Handler `chat_endpoint` is registered with router/app.post(...) but no Depends/Security parameter is declared and no auth marker appears in the function body.
Add Depends(get_current_user) or Security(...) to the handler signature. If the route is truly public, document it with a code comment so the rule knows it's intentional.
examples/mcp/building-a-supply-chain-copilot-with-agent-sdk-and-databricks-mcp/api_server.py:92
high Security checks security path traversal conf 0.80 [SEC013] Path Traversal — User Input in File Path: User-controlled input used in file path without sanitization. Allows reading arbitrary files.
Use os.path.realpath() and verify the path starts with your expected base directory. Use secure_filename() for uploads.
examples/agents_sdk/deployment_manager/runtime/trace_capture/agents_sdk_trace_capture.py:106
high Security checks cicd CI/CD security conf 1.00 [SEC069] Dockerfile: no USER directive (runs as root): Container runs as root because no USER directive was set. Ported from trivy DS002 / checkov CKV_DOCKER_3 (Apache-2.0). Implement as a file-level rule: skip if file contains `^\s*USER\s+\S+` other than `root`.
Add `RUN adduser -D app && USER app` before the CMD/ENTRYPOINT.
examples/agents_sdk/deployment_manager/app/dockerfile_writer.py:1 CI/CD securitycontainers
medium Security checks quality Practices conf 1.00 [CFG006] Missing .gitignore: No .gitignore file. Risk of committing secrets and build artifacts.
Add a .gitignore appropriate for your language/framework.
medium Security checks quality Quality conf 1.00 ✓ Repobility [MINED109] Mutable default argument in `answer_question` (list): `def answer_question(... = []/{}/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.
Use None as the default and create the collection inside the function: `def answer_question(x=None): x = x or []`
examples/fine-tuned_qa/answers_with_ft.py:46
medium Security checks quality Quality conf 1.00 ✓ Repobility [MINED109] Mutable default argument in `cost_estimator` (list): `def cost_estimator(... = []/{}/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.
Use None as the default and create the collection inside the function: `def cost_estimator(x=None): x = x or []`
examples/partners/model_selection_guide/tools.py:179
medium Security checks security path traversal conf 1.00 [SEC012] ZipSlip — Archive Path Traversal: Archive extraction without path validation allows writing files outside the target directory.
Validate extracted paths with os.path.realpath() and ensure they stay within the target directory.
examples/vector_databases/redis/nbutils.py:30
medium Security checks cicd CI/CD security conf 1.00 [SEC068] Dockerfile: base image uses :latest or no tag: FROM uses :latest or no tag — builds are not reproducible and may pull a compromised parent image. Ported from trivy DS001 (Apache-2.0).
Pin to a specific version tag (e.g. python:3.12.4-slim) or digest (image@sha256:...).
examples/agents_sdk/deployment_manager/app/dockerfile_writer.py:1 CI/CD securitycontainers
low Security checks quality Quality conf 1.00 [SEC136] AI-typical over-broad exception handler swallowing all errors: Catch-all exception block that silently returns success or no-ops. AI agents reach for this pattern when a flaky test or an unfamiliar API throws — wrap, swallow, return success. Real bugs are masked, observability is destroyed, and callers think the operation worked. CWE-396 (improperly-generalized exception). Distinct from intentional fallback because there's no log line and the success value is fabricated.
Catch the specific exception type, log at error level with full exception info, and return a failure-shaped result. If the operation is genuinely best-effort, log at warning and document why in a comment so the next reader (or scanner) knows.
examples/partners/temporal_agents_with_knowledge_graphs/utils.py:20
low Security checks quality Quality conf 1.00 [SEC136] AI-typical over-broad exception handler swallowing all errors: Catch-all exception block that silently returns success or no-ops. AI agents reach for this pattern when a flaky test or an unfamiliar API throws — wrap, swallow, return success. Real bugs are masked, observability is destroyed, and callers think the operation worked. CWE-396 (improperly-generalized exception). Distinct from intentional fallback because there's no log line and the success value is fabricated.
Catch the specific exception type, log at error level with full exception info, and return a failure-shaped result. If the operation is genuinely best-effort, log at warning and document why in a comment so the next reader (or scanner) knows.
examples/agents_sdk/deployment_manager/runtime/trace_capture/agents_sdk_trace_capture.py:105
high Security checks quality Quality conf 0.72 Agent control bridge may listen on a network interface without visible auth
Bind local agent bridges to 127.0.0.1 by default. If remote access is required, require a bearer token or mTLS, enforce origin/CSRF checks for browser clients, and document the threat model.
examples/agents_sdk/deployment_manager/app/runner.py:246
low Security checks quality Error handling conf 0.55 ✓ Repobility 25 occurrences 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.
12 files, 20 locations
examples/partners/macro_evals_for_agentic_systems/helpers/macro_eval_pipeline.py:15, 21, 27, 36, 41, 46, 51, 374, +1 more (9 hits)
examples/fine-tuned_qa/answers_with_ft.py:97
examples/gpt-5/prompt-optimization-cookbook/results_topk_baseline/run_01.py:26
examples/gpt-5/prompt-optimization-cookbook/results_topk_baseline/run_03.py:42
examples/gpt-5/prompt-optimization-cookbook/results_topk_baseline/run_08.py:21
examples/gpt-5/prompt-optimization-cookbook/results_topk_baseline/run_11.py:10
examples/gpt-5/prompt-optimization-cookbook/results_topk_baseline/run_13.py:30
examples/gpt-5/prompt-optimization-cookbook/results_topk_baseline/run_14.py:26
Error handlingquality
high Security checks quality Quality conf 0.80 localStorage write failures are swallowed silently
Handle QuotaExceededError explicitly, show a toast or error state, and guide the user to export/clear old local data. Log non-quota failures for diagnostics.
examples/agents_sdk/deployment_manager/frontend/src/main.jsx:324
high Security checks cicd CI/CD security conf 1.00 [CFG003] Docker COPY Everything: Copying entire directory may include secrets and build artifacts.
Use .dockerignore and COPY specific files/directories.
examples/agents_sdk/deployment_manager/app/dockerfile_writer.py:29 CI/CD securitycontainers
low Security checks cicd CI/CD security conf 1.00 [SEC075] Dockerfile: no HEALTHCHECK: No HEALTHCHECK directive — orchestrators can't detect a wedged process. Ported from trivy DS026 / checkov CKV_DOCKER_2 (Apache-2.0). Implement file-level: skip if file contains `^\s*HEALTHCHECK\b`.
Add `HEALTHCHECK CMD curl -f http://localhost:PORT/health || exit 1`.
examples/agents_sdk/deployment_manager/app/dockerfile_writer.py:1 CI/CD securitycontainers
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/6a2dfe00-37c2-4b75-98eb-a6540405a8bf/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/6a2dfe00-37c2-4b75-98eb-a6540405a8bf/

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.