AppSec

AI security

Dam Secure PR reviews can read across your related repositories

Summary

Modern codebases rarely live in one repository. A typical product has a web front end, an API, a handful of backend services and a shared auth service, each in its own repo with its own pull requests.

Security problems don't respect those boundaries. Whether an input is safe often depends on what a service two repos away does with it.

Until now, a Dam Secure PR review could only see the repository the pull request changed. When a finding depended on code somewhere else, the review had to make an educated guess. Guesses are where false positives come from, and where real issues slip through.

Today, Dam Secure PR reviews can read across the repositories that work together in your codebase.

‍

Why a single-repo review falls short

Picture a one-line change to a URL in your front end. On its own, it looks harmless. But that URL now routes requests to a different backend service, and that service skips the access check the old route had.

web-app/src/api/export.tsPR #482
- EXPORT_URL = "/v1/exports"
+ EXPORT_URL = "/internal/exports"
billing-service/routes/internal.ts
get("/internal/exports", listAllExports)
No access check on this route

A review that only sees the front-end repo can't tell. It either flags the change on a hunch or lets it through. Neither helps the developer who has to act on it.

The same goes the other way. A finding that looks serious in one repo may already be handled by validation in a downstream service. Without that context, it lands in your backlog anyway.

‍

Introducing applications

An application is a named group of repositories that work together, like a web front end, its API and the backend services it calls.

Once repositories are grouped, Dam Secure reads code across all of them during a pull request review. It can check whether a risk is real, how far a problem could reach, and where the fix belongs, even when that's in another repository.

Checkout
4 repositories
web-appPR #482 under review
checkout-apiRead for context
billing-serviceRead for context
auth-serviceRead for context

The repository the pull request changes is the one being reviewed, and that's where issues are reported. The other repositories are read for context only.

The result is fewer guesses, more accurate findings and fewer false positives for your developers to dismiss.

‍

What you'll see on a finding

When a review used other repositories, the issue page shows two extra things:

  • Checked against: the other repositories Dam Secure read, each pinned to the exact commit it looked at.
  • Supporting code: the code from another repository that the finding relies on, linked to the exact lines of code.
High
Missing access check on the internal exports route
Checked against
billing-service @ 4f2a91cauth-service @ 9be03d7
Supporting code
get("/internal/exports", listAllExports)
// mounted without requireAuth()
router.use("/internal", internalRoutes)

When a developer asks why something was flagged, the answer is right there, even if it lives in another team's repo.

The Dam Secure MCP server returns the same supporting code when it's asked for an issue's evidence, so your coding agent gets the full picture too.

‍

Setting up an application

It takes about a minute:

  1. Go to Repositories and click New application.
  2. Name it and select the repositories to include.
  3. Click Create application.
New application
Name
Checkout
Create application (4)

A repository can belong to more than one application, which is handy for shared services like authentication.

Grouping only adds context to PR reviews. Your connected repositories keep working exactly as they did before.

A few tips from our team:

  • Group repositories by how a request flows through your code (front end, API and the services it calls), rather than by team.
  • Keep each application focused, so reviews read the most relevant code.
  • Add shared services to every application that uses them.

‍

What's supported

Applications work with PR reviews on GitHub repositories. Each review can read up to 10 related repositories, using each one's default branch as it was when the review started.

If your applications hold more than 10 related repositories, Dam Secure picks the most recently active ones.

Full setup details are in the docs.

‍

See it on your own code

If your code is spread across repos and your PR reviews keep raising findings that turn out to be handled somewhere else, we'd love to show you how applications work on your setup.

Speak to our team

GET STARTED WITH DAM SECURE

Your Security.
Enforced at AI Speed.

Attackers are already using Mythos-level models to find vulnerabilities. Join the teams putting frontier models on your side first.

Trusted by modern engineering teams

Dovetail logo
Pluss Communities logo with stylized purple and pink shapes between words.
Green rounded button with the word 'skip' and two forward arrows above the letter p.
Green rounded button with the word 'skip' and two forward arrows above the letter p.