200 repositories, 10 scanned: how to cover all of them, including new ones
Short answer. To get every repository scanned, connect scanning once at the group or organization level of your version control system, so new repositories inherit it automatically. There are three working mechanisms for this: a default security configuration in GitHub, a scan execution policy or pipeline execution policy in GitLab Ultimate, and pipelineless onboarding, where a platform receives a webhook for the whole VCS group and runs scanners outside CI. On top of any of them you need a regular coverage check: the list of all repositories from the API against the list of repositories that produced scan results in the last N days.
Below we look at where the “200 repos, 10 scanned” situation comes from, how the ways to fix it differ, and how to confirm that coverage is actually complete.
Why scanning is connected to 10 repositories out of 200
We hear “We have 200 repos, we scan 10” from AppSec teams all the time, and the reasons are almost always the same.
The scanner is connected through each repository’s CI. For SAST or SCA to run, someone has to add a job to .gitlab-ci.yml or a workflow to .github/workflows. The AppSec engineer connects the first ten repositories personally. The remaining 190 wait until the teams get around to it.
New repositories are created without a scanner. A developer creates a repository for a new service, copies the pipeline from a neighboring project or writes a new one. There is no security stage in it because nobody reminded them. AppSec learns about the repository during an audit or after an incident.
The scanner in CI competes with the release. SAST adds minutes to the pipeline and sometimes breaks the build right before a release. A developer sets allow_failure: true or deletes the job, and the check stops working without a single notification.
Transferred, archived and forked repositories fall out. Even where scanning is enabled by default, it often applies only to new repositories. A repository transferred from another organization stays unscanned until someone connects it manually.
All four have one root cause: coverage depends on a person taking action in each individual repository.

Four ways to cover every repository
1. A shared CI template connected via include
The AppSec team maintains one template with scanner jobs, and each repository connects it with a single line (include: in GitLab, a reusable workflow in GitHub Actions).
Pros: works on any plan, scanners and their versions are updated in one place.
Cons: the include line still has to be added to every repository, including new ones. It can be removed or bypassed with allow_failure. Scan time is added to developers’ pipelines. For 200 repositories that means 200 merge requests changing CI.
A fit when you have dozens of repositories and AppSec has the permissions and time to go through all of them.
2. GitHub: a default security configuration for the organization
In GitHub you can create a security configuration (the GitHub-recommended one or your own), apply it to all repositories in the organization and set it as the default for new ones. It includes code scanning (CodeQL default setup), secret scanning, Dependabot and other GitHub Advanced Security features.
Limitations to keep in mind:
- according to GitHub’s documentation, the default configuration is applied automatically only to new repositories created in the organization, and a repository transferred into the organization has to be connected separately;
- for private and internal repositories these features are paid (GitHub Code Security and GitHub Secret Protection);
- only GitHub’s built-in scanners are covered. Semgrep, Trivy, Gitleaks or a commercial SAST are not part of this configuration, and their results have to be uploaded separately via SARIF and CI.
A fit when all your code lives in GitHub and the built-in scanners are enough.
3. GitLab Ultimate: scan execution policy and pipeline execution policy
In GitLab Ultimate, security policies are stored in a separate security policy project linked to a group. A policy linked to a group applies to every subgroup and project below it in the hierarchy, including new ones.
- Scan execution policy enforces GitLab scanners in the pipeline or on a schedule, even in projects without a
.gitlab-ci.yml. It is quick to set up, but it runs on GitLab’s own templates and offers little customization. - Pipeline execution policy injects arbitrary jobs into project pipelines, for example your own scanners.
Limitations: it requires the Ultimate tier (by our estimate, about $118,800 per year for 100 developers on per-seat pricing), scanning still runs inside CI and uses developers’ runners, and coverage stops at the GitLab boundary. If part of your code lives in GitHub or Bitbucket, the policies won’t reach it.
A fit when all your code is in GitLab and you already pay for Ultimate.
4. Pipelineless onboarding: a webhook on the VCS group
The platform connects to the version control system at the group or organization level: a service token plus one webhook. From there it pulls the repository list itself, learns about new repositories from VCS events and runs scanners on its own runners, outside developers’ CI.
What this changes:
- a new repository is scanned from the moment it is created, with no action from its owner;
- pipelines stay untouched, so a developer can’t disable the check with
allow_failureor by deleting a job; - the scanner set isn’t tied to one vendor: SAST, SCA, secrets, IaC and container scanners from different vendors work through one entry point;
- several VCS can be connected at once (GitLab, GitHub, Bitbucket), and coverage is counted across all of them.
Limitations: you need a separate platform (ASPM or your own orchestration), and scan results won’t appear in merge requests automatically unless the platform can post MR comments.
A fit when you have hundreds of repositories, code spread across several systems, or CI that can’t be touched.

Comparison
| CI template via include | GitHub security configuration | GitLab Ultimate policies | Pipelineless (group webhook) | |
|---|---|---|---|---|
| New repositories connected automatically | No | Yes, only those created in the organization | Yes, within the group | Yes |
| CI changes needed in every repository | Yes | No | No | No |
| A developer can disable the check | Yes | Partially | Partially | No |
| Third-party scanners | Any | Via SARIF and CI | Via pipeline execution policy | Any |
| Multiple VCS | One template per VCS | GitHub only | GitLab only | Yes |
| Load on developers’ pipelines | Yes | Yes (Actions) | Yes | No |
| Plan | Any | Paid for private repositories | Ultimate | Separate platform |
How to check that everything is really covered
Whichever approach you choose, back it with a coverage check, or in six months you will find that some repositories have dropped out again. The check is simple: the list of all active repositories from the VCS API against the list of repositories the scanner reported results for in the last 7 or 30 days.
For GitLab:
pythonimport os import requests GITLAB = "https://gitlab.example.com" GROUP_ID = 42 TOKEN = os.environ["GITLAB_TOKEN"] def all_projects(): page = 1 while True: r = requests.get( f"{GITLAB}/api/v4/groups/{GROUP_ID}/projects", headers={"PRIVATE-TOKEN": TOKEN}, params={"include_subgroups": "true", "archived": "false", "per_page": 100, "page": page}, ) r.raise_for_status() batch = r.json() if not batch: break yield from batch page += 1 repos = {p["path_with_namespace"] for p in all_projects()} # scanned.txt: export from your scanner or ASPM, one repository per line scanned = set(open("scanned.txt").read().split()) missing = sorted(repos - scanned) print(f"Total: {len(repos)}, scanned: {len(repos & scanned)}, not scanned: {len(missing)}") print("\n".join(missing))
For GitHub, the same with gh:
bashgh repo list YOUR_ORG --limit 1000 --no-archived --json nameWithOwner -q '.[].nameWithOwner' | sort > all.txt sort scanned.txt > scanned_sorted.txt comm -23 all.txt scanned_sorted.txt # repositories without scanning

Two metrics to track continuously:
- Coverage rate: repositories with scan results in the last 30 days / all active repositories. The target is 100%, with exceptions (archives, mirrors, templates) kept in a list with an owner for each.
- Time to first scan: how long it takes from repository creation to the first result. With CI-based onboarding it is days or weeks, with group-level onboarding it is minutes.

This is exactly what an ISO 27001 or SOC 2 auditor will ask: how will you prove that every repository is scanned? Scattered scanners connected to some of the projects read as ad-hoc activity, and for one of our clients this ended in a major finding at certification.
How Whitespots handles it
Whitespots connects to a VCS group with a single webhook, with no pipeline changes. The repository pool is indexed in about 15 seconds, and a new repository is scanned from the moment it is created. Scanning runs outside developers’ CI, 30+ scanners are available out of the box, and your own scanners plug in through custom parsers.

The platform is deployed as a single Docker container inside your perimeter, and source code never leaves it. The only outbound connection is used for license activation.
Findings from all scanners end up in one list: duplicates across scanners are merged, findings are validated, prioritized and assigned an owner, and the developer gets a Jira ticket or an MR comment.
Imagine your team decides to build it all in-house on DefectDojo and Dependency-Track. Every new asset is onboarded by hand: set up the import, write the pipeline, agree with the repository owner. Work like that for a year and you might onboard dozens of assets, a few hundred at best, while the total keeps growing. If onboarding happens at the group level instead, thousands of repositories are scanned within minutes, and new ones are added without AppSec lifting a finger.
FAQ
Can scanning be connected to every repository without CI changes? Yes. In GitLab Ultimate this is done with scan execution policies, in GitHub with security configurations. If you need third-party scanners or several VCS, use pipelineless onboarding via a group webhook.
Do archived repositories need scanning? Usually not, they are excluded from the policy. But if an archived repository is unarchived, it should return to coverage immediately. Check whether your onboarding method handles this, and keep the exclusion list with an owner.
What about repositories transferred from another organization? In GitHub, the default configuration has to be applied to them manually. With group webhook onboarding, a transferred repository enters the index on the next sync.
How long does it take to connect 200 repositories? With CI templates it takes 200 merge requests and sign-offs from teams. At the group level, onboarding is done once and takes minutes, and the time after that goes into triaging the first results.
To see how group-level onboarding works on your repositories, book a demo or compare Whitespots with GitLab Ultimate and DefectDojo.


