Safeguard
Industry Analysis•

Do security gates hurt DORA lead time? How to check your own data

Security gates add time to lead time for changes, but not always much. How to measure the gate's share of lead time and where the delay really sits.

Safeguard Security Team
3 min read

Security gates add time to lead time for changes, since a change cannot deploy until the gate finishes. Whether that hurts depends on how long the gate takes, how often it fails and how long failures wait for a fix. Measure the gate's share of lead time instead of assuming.

What DORA means by lead time

DORA's guide to its software delivery metrics defines lead time for changes as the time it takes for a change to go from committed to version control to deployed in production. It sits beside deployment frequency, change fail rate, failed deployment recovery time and deployment rework rate, which together make up its current five metric model.

Because lead time runs from commit to production, everything in between counts, including your security checks, the wait for a reviewer and the time a failed gate sits unfixed.

Where gates add time

  1. Run time of the scan itself.
  2. Queue time before the scan starts.
  3. Time a failed gate waits before someone looks at it.
  4. Time to fix the finding and re-run.
  5. Time waiting for an exception decision, if one is needed.

Items 3 to 5 are almost always bigger than item 1. A scan that takes minutes is rarely the problem. A failed gate that waits a day for a decision is.

Steps to measure

  1. Take a sample of recent changes with their commit time and deploy time.
  2. For each, record the timestamps of the first security gate start and the final gate pass.
  3. Subtract to get the gate span, and divide by total lead time to get its share.
  4. Split changes into those where the gate passed first time and those where it failed at least once.
  5. Compare the lead time distribution of the two groups.

If first time passes show a small gate share and failed ones show a large one, your lever is failure handling, not scan speed.

What to conclude

What you seeLikely reading
Gate share small for all changesGates are not your lead time problem
Gate share large only after failuresImprove failure messages, ownership and exceptions
Gate share large even on passesLook at queue time and scan duration

Do not assume that removing a gate improves outcomes. DORA treats throughput and instability together, and a change that ships faster but fails more often is not progress. Look at change fail rate and recovery time in the same period before drawing conclusions.

Cautions

Lead time distributions are skewed, so compare medians and a high percentile instead of averages. Small samples mislead, so use several weeks of data. Different repositories have different pipelines, so compare each against itself.

Quick check

Should security time be excluded from lead time?

No. DORA's definition runs from commit to deployment. Keep it whole and break it into parts for analysis.

Is a faster gate always better?

A faster gate helps if it keeps its accuracy. A gate that is quick because it checks less is not an improvement.

How Safeguard fits

Safeguard provides policies, gates and dependency scanning so gates can be tuned to block what matters and let the rest through. Try the free scan at gold.safeguard.sh/scan.

Sources

Last reviewed: 19 October 2026.

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.