GitHub AI Scan in bulk: choose the batch, verify each repository
GitHub has made it easier to start AI Scan across a group of repositories: you can now launch scans for up to 20 repositories at once. The useful change is the batch operation. It gives a security team a quicker way to request a first look across a portfolio, while leaving the harder work of selecting repositories, funding scans and assessing findings with the team.
The 16 November announcement puts bulk start in public preview. It is available on GitHub.com and GitHub Enterprise Cloud with data residency, and a GitHub Copilot licence is not required. That last point concerns eligibility: each scan still consumes Code Security AI credits.

Official product illustration from GitHub’s announcement. The displayed alerts and counts belong to GitHub’s illustrative image; they are not results from an Azurecentric test.
What bulk start changes
There are two organization-level entry points. When you enable AI Scan for repositories in the organization settings, you can select repositories for one-off scans. You can also start scans from the organization’s code scanning alerts page. The individual repository alerts page remains an option for a single scan. These are the routes described in the announcement and the global security settings documentation.
Keep enablement and execution separate. Enabling the organization setting alone does not launch scans; the batch selection is an additional action. Changing the repository_scan setting through the REST API also enables or disables the feature without starting a scan. This update adds a practical execution workflow, rather than turning a configuration change into a continuous scanning policy.
The limit of 20 is a maximum batch size, not a suggested starting point or a promise that every selected repository will finish successfully. Treat each repository as a separate verification item. A small first batch makes it easier to understand the results before increasing the volume.
Check policy, eligibility and the bill before selecting repositories
For organization-owned repositories, public repositories are available without an active-committer licence. Private and internal repositories require GitHub Code Security or GitHub Advanced Security. The AI Scan concept documentation explains those requirements. The announcement’s cloud availability should not be treated as a GitHub Enterprise Server release announcement.
Enterprise policy can stop adoption before the organization setting becomes relevant. The enterprise policy documentation says AI Scan is disallowed by default. Allowing it permits organizations to enable it; that permission does not enable it for them.
Organization owners and security managers can enable the repository feature for eligible repositories. The global settings documentation specifies eligible repositories where code scanning is enabled. Repositories inherit the organization setting, and repository administrators can opt out. They cannot opt in while the organization setting is disabled. For an individual on-demand scan, GitHub documents write access as the required repository permission. Managing settings and running scans therefore involve different responsibilities.
Cost needs its own check. According to GitHub’s billing documentation, Code Security AI-credit usage is separate from active-committer licensing, including in public repositories. For organization-owned repositories, usage goes to the account paying for the organization: its standalone organization account or enterprise account.
An applicable Copilot entitlement can provide included AI credits to that billing account. Those credits are used first; usage beyond the allowance, or usage without an included allowance, is metered. A Copilot licence is optional, but funded scanning is still a prerequisite. When a hard budget leaves no Code Security AI credits available, AI Scan cannot produce findings. Check the account’s allowance, budget and usage with its billing administrator before launching a larger batch. No fixed cost per batch or automatic saving follows from the 20-repository limit.
Use a batch to answer a specific question
Consider a hypothetical platform team with a mix of application and automation repositories. A useful first question would be: can the team turn additional findings into owned remediation work without disrupting its existing CodeQL triage?
Select a few repositories with known maintainers and a mix of relevant languages. AI Scan works independently of CodeQL and examines the default branch. GitHub describes support across languages, including languages outside CodeQL’s coverage, but the agent selects code within a time budget. That is a reason to investigate additional findings, not a claim that the repository has received exhaustive analysis.
Before starting, agree who can launch the batch, who checks completion and who reviews the resulting alerts. Then use a simple acceptance record:
| Check | Evidence to retain |
|---|---|
| Repository was intended for the batch | Repository name, maintainer and reason for selection |
| Feature was available | Applicable policy, eligibility and repository setting |
| Scan actually completed | Per-repository status and the time checked |
| Findings were assessed | AI Scan filter, triage decision and remediation owner |
| Usage stayed within the plan | Billing account, credit usage and relevant budget |
This is a suggested review record, not the output of an executed scan. A repository missing from the results needs investigation. Do not silently count it as completed, and do not equate an empty alert list with complete security coverage.
For the documented single-repository route, open Security and quality → Code scanning → AI Scan → Standard scan. Wait for completion, then filter alerts by the AI Scan tool. The alert-management guide describes this process. Bulk start reduces repeated launch work; checking the outcome still happens at repository level.
Leave room for triage and a second scan
AI Scan findings join the existing code scanning backlog alongside CodeQL alerts. Matching against existing CodeQL findings is best effort, so duplicates can appear. AI-generated findings can also be inaccurate. Assess the affected code and the proposed remediation before deciding what to change.
The current preview analyzes the default branch, does not support self-hosted runners and does not provide scheduled scans or automatic scans on push. A bulk request does not add those capabilities. After merging a potential fix, manually run another scan. GitHub also documents a preview limitation on automatic closure: after a new scan, an alert closes automatically only when the fix changes the exact line that triggered it; otherwise, manual closure is needed.
A sensible adoption criterion is whether the team can account for each selected repository: completed scan, reviewed findings, named remediation owner and understood credit usage. Once that process is manageable, increasing the batch size becomes a practical decision. The button makes requesting scans easier. The value comes from what the team can verify and resolve afterwards.