Skip to content

How to Prepare Your Codebase for Technical Due Diligence

What a buyer's technical review looks for in your code, and a 90-day plan to find and fix it first.

17 November 2026 · 5 min read

What the buyer is trying to find out

Technical due diligence answers three questions for a buyer: what are we actually getting, what will it cost to keep running, and what has to be fixed before it is safe to own.

Every finding ends up in one of three places: a lower price, money held back after closing, or a promise written into the contract. A problem you already know about and can explain rarely moves the price much. A problem the buyer discovers for you does, because it raises the question of what else you have missed.

Preparing does not mean hiding problems. It means finding them first, fixing the cheap ones, and having a dated plan for the rest. The five areas below are where reviewers look, in the order worth tackling them.

1. Know what you ship, and under what licence

Open-source licensing is where buyers are least flexible, because it is a question of who owns the product. Produce a complete list of every third-party component in what you ship, including the dependencies of your dependencies, with the licence of each.

Look for three things:

The options for each problem are the same: replace the component, isolate it so its terms do not reach your own code, or buy a commercial licence. Each takes weeks and often depends on someone outside your company, which is why this comes first. See what GPL and AGPL code does to an acquisition.

2. Clean up secrets and known vulnerabilities

Reviewers scan the whole history of a repository, not only the current files. A password or API key committed three years ago and deleted the next day is still in that history, and it will be found.

3. Make it deployable by someone who is not you

A buyer is paying for the ability to run the product without its current team. The test is simple: could a competent engineer who has never seen the system deploy it from the repository and the documentation?

Account ownership catches people out. A service registered to a founder's personal email address is a common late-stage problem, and an easy one to fix early.

4. Be honest about technical debt

Every codebase has debt. Buyers do not expect none. They expect you to know where it is and what it would cost to clear.

What gets priced:

Write a short register: the item, why it exists, what it would cost to fix in engineer-weeks, and whether it blocks anything. A register turns an open-ended worry into a number the buyer can plan around.

5. Reduce dependence on individuals

Reviewers look at who wrote what. If most changes to a critical component come from one person, that person is a risk to the deal, and the buyer will want them tied in or their knowledge spread.

A 90-day plan

Three months is enough if the work starts with finding rather than fixing.

When What to do What you have at the end
Days 1 to 30: find Inventory all third-party code and licences. Scan the whole history for secrets. List infrastructure, accounts and paid services. Run an independent audit so you see what a buyer will see. A complete, ranked list of findings
Days 31 to 60: fix Replace or isolate licence problems. Rotate exposed credentials. Close open infrastructure. Update vulnerable dependencies. Collect missing contributor agreements. The findings that would stop or reprice a deal are gone
Days 61 to 90: document Write the debt register, the architecture overview and the runbook. Restore a backup and record the date. Run the audit again. A clean second audit and a folder you can hand to a buyer

Start licences and contributor agreements on day one. Both depend on other people and cannot be rushed at the end.

Checklist

Where Veridence fits

Veridence audits a repository automatically, the same way every time. One report covers the licences the code declares and its dependencies carry, known vulnerabilities in those dependencies, secrets and insecure code, infrastructure settings, maintainability, and how concentrated the work is in one person. Run it at the start to see what a buyer would see in your current code, and again at the end to show what changed.

See a sample report, or read how the engine works. A free preview of one repository shows its risk and cost to fix.

See what a buyer would see in your code

A free preview of one repository shows its risk and cost to fix in Slack.