A GitHub app for pull requests

Catch security and PII risks before you merge.

AI-written code can open doors for attackers. CodeMD checks every pull request and maps how outside input can reach your secrets and customer data, so you only run the tests that matter.

Explore Offline Testing Install on GitHub See the GitHub Check Results See Sample Dashboard

CodeMD.dev GitHub PR Checks App

  1. 1 Install the GitHub app
  2. 2 Open a pull request
  3. 3 Three checks appear on the PR

Test changes before you commit and on every PR

Three developers. One PR Checks Dashboard. See which risky code your edit can reach and create and run a targeted test in VS Code. Review local test results alongside GitHub pull request security, test execution, and feature impact in the CodeMD.dev PR Checks Dashboard.

Product preview

Find and test your riskiest core functions

See which untested functions the rest of your code depends on. Prioritize them by callers, complexity, and how often they change, then generate tests for the highest-risk functions.

Sample release readiness dashboard ranking five untested core functions by risk, with a Generate test action for each.

Before you commit · VS Code

Offline testing that follows the change

CodeMD follows the call graph from your edits to the code they affect. Find existing tests that cover the change and create targeted tests for gaps, entirely on your machine with local Ollama.

  • Call-path and call-chain tests exercise how changed functions work together.
  • Highest-risk-path tests target the riskiest call path identified for a change.
  • Caller-contract, changed-pair integration, and new-function unit tests cover specific gaps the extension finds.
  • Differential testing runs the same tests before and after a change and compares recorded behavior.
Install CodeMD for VS Code

Example results on a pull request

What the checks show before you grant access.

CodeMD Call-Path Security✗ Would have failed

A real case, replayed on the commit that added the bug.

Path the check reports
MCP tool call from an AI agent → runNmapScan: process/shell execution
Commit it fails on
“Add files via upload”, January 9, 2025
Advisory
GHSA-xc68-rrqc-qgq3 · CVE-2026-3484 · published about 14 months later

See all 14 real cases →

CodeMD Commit Impacted Test Runs✓ Tests passed

Example output on a pull request.

GitHub CodeMD Commit Impacted Test Runs result showing three impacted tests passed

What the app does

Three checks on every pull request, right where your team already reviews code.

Check 1 · Free

Call-Path Security

AI assistants write code quickly, and a change can open a door an attacker may later find. On each pull request, CodeMD checks whether anything an outsider can send (a web request, a form field, a message) can newly reach code that could do damage. If it can, the check fails and shows the path, so you can fix it while it costs a code review, not a breach. What it looks for, and how that helps:

  • Commands run on your server. Helps lower the chance of an attacker running their own commands, a common route to stolen data or a taken-over server.
  • Database queries built from text (SQL injection). Helps lower the chance of someone reading or changing your customer records through a form field or a web address.
  • Outside text run as code (eval, unsafe deserialization). Helps keep an attacker's input from being executed inside your application.
  • HTML written into a page (cross-site scripting). Helps keep one visitor's script from running in another visitor's browser, where it can steal a sign-in session.
  • Files served from a path in a variable (path traversal). Helps lower the chance of config files, keys or other private files being read by someone who shouldn't.
  • Redirects to an address in a variable. Helps keep your own links from being used to send customers to a phishing site.
  • File writes and deletes, git operations, outbound requests. Helps flag outside input that could overwrite files, drive changes to your repository, or make your server contact places it shouldn't.
  • Personal data (PII). Looks for passwords and API keys, government IDs, health, payment and bank details, biometrics, names, contact details and location that a change returns, logs or puts in a URL where outside input can reach it, and notes whether a sign-in check is on the path. Helps you spot a possible leak of customer data before it can become a breach notice, a fine or lost trust.
  • Web endpoints. Lists new or wider endpoints and whether each shows a sign-in check, so you can see which doors are open to the public.
  • Only what this change added. Problems already in your code don't fail the check, so review time goes to what you're about to ship.
Check 2 · Free

Commit-Relevant Test Runs

A change can break something several calls away from the line you edited. CodeMD finds the tests connected to your change and runs them, so problems are more likely to be found before your customers find them.

  • Finds the tests that matter for this change by following call paths. That can mean less time waiting on CI and fewer GitHub Actions minutes spent than running the whole suite.
  • Runs them in your own GitHub Actions and reports pass or fail on the pull request, so a reviewer sees the evidence without running anything.
  • Reports changed-line coverage where it can be measured, so you can see whether the tests that passed actually ran the lines you changed.
  • Files real failures as bugs with the commit, function and test, so they can be fixed while the change is still fresh.
Check 3 · Pro · Informational

Feature Impact

A small edit can reach a lot of your product. This check shows, in plain terms, how far a pull request reaches and which product features it touches, so a reviewer knows how much care it needs. It never fails a pull request.

  • An impact score out of 100 with a level (low to wide), worked out from the call paths the change reaches.
  • The product features it touches, using your own product & features list when you have one.
  • The tests relevant to those features, so you can see what covers the change.
  • Runs only for a paid Pro developer. It uses AI, so it is never run automatically for a free account.
  • Names, not code, go to an AI. To name the features, route paths, button text and function names (never source code) are sent to Anthropic's Claude.

What happens to your code

Your tests run in your GitHub Actions. We keep results, not code.

Details in the privacy policy.

Not ready to install?

Start with a free report on any GitHub repo.

Paste a public repository on Analyze Repo and get its attack surface, call graph, features and a downloadable Repo Report, with no sign-up. Or leave your email and we'll send you the list of every free CodeMD tool.

Analyze a repo free · See all free tools

Book a demo

See CodeMD.dev on your own code.

Answer one quick question, then leave your contact details. We'll email you to set up a 30-minute walkthrough.

How many developers do you have on your team?

How it works

From the pushed change to the merge decision.

2

Every pull request is checked

CodeMD looks for new ways outside input could reach risky code or personal data, and runs the tests connected to your change in the repository's GitHub Actions. It runs existing tests for Python, JavaScript/TypeScript, Go, Rust, Java, Kotlin, C#, PHP and Ruby.

3

See the evidence

The PR Checks Dashboard shows what passed, what needs review and where risk remains. Changed-line coverage is reported for Python, JavaScript/TypeScript and Go, with a downloadable Cobertura XML report compatible with GitHub Code Quality and other coverage tools.

Open the PR Checks Dashboard →