← Back to scan
File as GitHub Issue repo: microsoft/ai-agents-for-beginners

Push this scan report to microsoft/ai-agents-for-beginners

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

Overcatch Baseexception

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
HIGH MINED108 [MINED108] `self.close` used but never assigned in __init__: Method `__exit__` of class `… 11-agentic-protocols/code_samples/mcp-a…:242
HIGH MINED108 [MINED108] `self._fetch_events_sync` used but never assigned in __init__: Method `replay_… 11-agentic-protocols/code_samples/mcp-a…:156
HIGH MINED108 [MINED108] `self._store_event_sync` used but never assigned in __init__: Method `store_ev… 11-agentic-protocols/code_samples/mcp-a…:133
HIGH MINED020 [MINED020] Logging Credential Via Fstring: logger.error(f"failed for {api_key}") — secret… 11-agentic-protocols/code_samples/mcp-a…:58
HIGH MINED006 [MINED006] Overcatch Baseexception: except BaseException: ... — prevents Ctrl+C and Syste… 11-agentic-protocols/code_samples/mcp-a…:221
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … 04-tool-use/code_samples/04-dotnet-agen…:234
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … 03-agentic-design-patterns/code_samples…:126
HIGH MINED115 [MINED115] Action `pozil/auto-assign-issue` pinned to mutable ref `@v2`: `uses: pozil/aut… .github/workflows/welcome-pr.yml:31
HIGH MINED115 [MINED115] Action `actions/github-script` pinned to mutable ref `@v8`: `uses: actions/git… .github/workflows/welcome-pr.yml:14
HIGH MINED115 [MINED115] Action `pozil/auto-assign-issue` pinned to mutable ref `@v2`: `uses: pozil/aut… .github/workflows/welcome-issue.yml:31
HIGH MINED115 [MINED115] Action `actions/github-script` pinned to mutable ref `@v8`: `uses: actions/git… .github/workflows/welcome-issue.yml:14
HIGH MINED118 [MINED118] Dockerfile FROM `mcr.microsoft.com/devcontainers/python:3.12` not pinned by di… .devcontainer/Dockerfile:1
HIGH SEC020 [SEC020] Secret Printed to Logs: Debug or diagnostic code appears to print a credential-b… 11-agentic-protocols/code_samples/mcp-a…:143
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… 14-microsoft-agent-framework/code-sampl…:146
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… 14-microsoft-agent-framework/code-sampl…:124
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… 11-agentic-protocols/code_samples/mcp-a…:117
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… 11-agentic-protocols/code_samples/mcp-a…:105
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… 11-agentic-protocols/code_samples/mcp-a…:80
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… 11-agentic-protocols/code_samples/mcp-a…:191
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… 11-agentic-protocols/code_samples/mcp-a…:223
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… 11-agentic-protocols/code_samples/mcp-a…:195
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… 11-agentic-protocols/code_samples/mcp-a…:377
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… 11-agentic-protocols/code_samples/mcp-a…:401
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… 11-agentic-protocols/code_samples/mcp-a…:256
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… 11-agentic-protocols/code_samples/mcp-a…:203
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… 11-agentic-protocols/code_samples/mcp-a…:166
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… 11-agentic-protocols/code_samples/mcp-a…:455
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… 11-agentic-protocols/code_samples/mcp-a…:419
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… 11-agentic-protocols/code_samples/githu…:392
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… 11-agentic-protocols/code_samples/githu…:367
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… 11-agentic-protocols/code_samples/githu…:261
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… 11-agentic-protocols/code_samples/githu…:123
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… 11-agentic-protocols/code_samples/githu…:114
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… 11-agentic-protocols/code_samples/githu…:94
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… 11-agentic-protocols/code_samples/githu…:62
MED MINED124 [MINED124] requirements.txt: `pynacl` has no version pin: Unpinned pip requirement means … requirements.txt:29
MED MINED124 [MINED124] requirements.txt: `jcs` has no version pin: Unpinned pip requirement means eve… requirements.txt:28
MED MINED124 [MINED124] requirements.txt: `uvicorn` has no version pin: Unpinned pip requirement means… requirements.txt:25
MED MINED124 [MINED124] requirements.txt: `python-dotenv` has no version pin: Unpinned pip requirement… requirements.txt:24
MED MINED124 [MINED124] requirements.txt: `pillow` has no version pin: Unpinned pip requirement means … requirements.txt:23
MED MINED124 [MINED124] requirements.txt: `pandas` has no version pin: Unpinned pip requirement means … requirements.txt:22
MED MINED124 [MINED124] requirements.txt: `numpy` has no version pin: Unpinned pip requirement means e… requirements.txt:21
MED MINED124 [MINED124] requirements.txt: `nest-asyncio` has no version pin: Unpinned pip requirement … requirements.txt:20
MED MINED124 [MINED124] requirements.txt: `ipykernel` has no version pin: Unpinned pip requirement mea… requirements.txt:19
MED MINED124 [MINED124] requirements.txt: `httpx` has no version pin: Unpinned pip requirement means e… requirements.txt:18
MED MINED124 [MINED124] requirements.txt: `openai` has no version pin: Unpinned pip requirement means … requirements.txt:15
MED MINED124 [MINED124] requirements.txt: `mcp[cli]` has no version pin: Unpinned pip requirement mean… requirements.txt:12
MED MINED124 [MINED124] requirements.txt: `a2a-sdk` has no version pin: Unpinned pip requirement means… requirements.txt:9
MED MINED124 [MINED124] requirements.txt: `agent-framework` has no version pin: Unpinned pip requireme… requirements.txt:8
MED MINED124 [MINED124] requirements.txt: `azure-search-documents` has no version pin: Unpinned pip re… requirements.txt:5
MED MINED124 [MINED124] requirements.txt: `azure-identity` has no version pin: Unpinned pip requiremen… requirements.txt:4
MED MINED124 [MINED124] requirements.txt: `azure-ai-projects` has no version pin: Unpinned pip require… requirements.txt:3
MED MINED124 [MINED124] requirements.txt: `azure-ai-inference` has no version pin: Unpinned pip requir… requirements.txt:2
MED DKR007 Docker build context has no .dockerignore .dockerignore
MED DKR015 Docker build context is very large .dockerignore
MED DKR001 Docker final stage has no non-root USER .devcontainer/Dockerfile:1
LOW COMP001 [COMP001] High cognitive complexity: Function `message_handler` has cognitive complexity … 11-agentic-protocols/code_samples/mcp-a…:115
LOW COMP001 [COMP001] High cognitive complexity: Function `run_long_running_task` has cognitive compl… 11-agentic-protocols/code_samples/mcp-a…:92
LOW COMP001 [COMP001] High cognitive complexity: Function `update_title` has cognitive complexity 10 … .agents/skills/jupyter-notebook/scripts…:36
LOW AIC003 Duplicated implementation block across source files 08-multi-agent/code_samples/workflows-a…:98
LOW AIC003 Duplicated implementation block across source files 08-multi-agent/code_samples/workflows-a…:60
LOW AIC003 Duplicated implementation block across source files 04-tool-use/code_samples/04-dotnet-agen…:8
LOW AIC003 Duplicated implementation block across source files 03-agentic-design-patterns/code_samples…:7
LOW AIC003 Duplicated implementation block across source files 02-explore-agentic-frameworks/code_samp…:1
LOW DKR012 Dockerfile keeps pip download cache .devcontainer/Dockerfile:8
LOW DKR012 Dockerfile keeps pip download cache .devcontainer/Dockerfile:4
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… 11-agentic-protocols/code_samples/mcp-a…:130
INFO MINED049 [MINED049] Print Pii: Logging password/token/email/ssn directly to stdout. 11-agentic-protocols/code_samples/mcp-a…:57
INFO MINED049 [MINED049] Print Pii: Logging password/token/email/ssn directly to stdout. 11-agentic-protocols/code_samples/mcp-a…:143
Reset to top 5 69 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `microsoft/ai-agents-for-beginners`

**Score: 68/100 (C+)**  ·  70 findings  ·  scanned 2026-06-05 08:54 UTC  ·  4,081 LOC

| Severity | Count |
|---|---|
| CRITICAL | 0 |
| HIGH | 13 |
| MEDIUM | 43 |
| LOW | 10 |

📊 [Full filterable report](https://repobility.com/scan/0b896f18-8e7e-4293-ac65-699f3c3b237c/)  ·  ![scorecard](https://repobility.com/scan/0b896f18-8e7e-4293-ac65-699f3c3b237c/report.png?v=1780649646-s2)

### Top findings

1. **HIGH** `MINED108` — `self.close` used but never assigned in __init__
   `11-agentic-protocols/code_samples/mcp-agents/server/event_store.py:242` · ✓ Repobility
2. **HIGH** `MINED108` — `self._fetch_events_sync` used but never assigned in __init__
   `11-agentic-protocols/code_samples/mcp-agents/server/event_store.py:156` · ✓ Repobility
3. **HIGH** `MINED108` — `self._store_event_sync` used but never assigned in __init__
   `11-agentic-protocols/code_samples/mcp-agents/server/event_store.py:133` · ✓ Repobility
4. **HIGH** `MINED020` — Logging Credential Via Fstring
   `11-agentic-protocols/code_samples/mcp-agents/client/resumable_client.py:58` · CWE-532 · ✓ Repobility
5. **HIGH** `MINED006` — Overcatch Baseexception
   `11-agentic-protocols/code_samples/mcp-agents/client/resumable_client.py:221` · CWE-705 · ✓ Repobility

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/0b896f18-8e7e-4293-ac65-699f3c3b237c/_
Already filed
'microsoft' is on the known-megaproject org list. These projects use auto-triage bots and established security disclosure channels. Unsolicited automated issues from Repobility would be perceived as AI-generated spam. For security findings, follow the project's SECURITY.md policy. For non-security findings, open a focused PR or community discussion instead.
Already filed
This repo publishes a SECURITY.md policy and the scan contains 3 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 'microsoft/ai-agents-for-beginners' 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
23/72 findings (32%) 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.