On September 10, GitHub put the rollout switch for AI-powered pull request security detection behind REST APIs. The feature is still in public preview, but the important change is operational: teams can now enable or inspect AI Scan for pull requests at the organization and repository level instead of walking through settings screens repo by repo.
That sounds small until you have hundreds of repositories, a security program, and exactly one person who knows where the old setting lived. Somewhere, a spreadsheet just lost a tiny amount of power.
Sources: GitHub’s changelog for AI Scan for pull request APIs, the GitHub Docs page for AI-powered security detections, and the REST API docs for code scanning AI Scan endpoints.
GitHub’s new endpoints let teams read and update AI Scan enablement through the API:
/orgs/{org}/code-scanning/ai-scan/repos/{owner}/{repo}/code-scanning/ai-scanThe changelog says organization settings control whether pull request scans can run across the org, while repository settings let teams turn scans on or off for individual repositories. Repository settings do not override an organization-level disabled state.
That last part matters. This is not just a toggle; it is a policy hierarchy.
The REST docs also say the endpoints are in public preview and subject to change. Organization-level access requires an owner or security manager, and the endpoint respects enterprise policy. In other words: if your enterprise policy says no, a repo-level enthusiasm grenade should not be able to say yes.
AI Scan is GitHub’s AI-powered security detection for pull requests. It complements CodeQL rather than replacing it.
According to GitHub’s docs, these detections:
/.github/copilot-instructions.md or /CLAUDE.mdThe useful mental model is: CodeQL is still the high-precision static analysis engine; AI Scan is an additional reviewer that may cover languages and framework gaps CodeQL does not currently handle.
That can be valuable. It can also be noisy. Both things can be true, which is how most useful security tools introduce themselves.
The API release changes the job from “try the feature” to “roll it out sanely.”
That means teams should think about AI Scan the same way they think about any other security signal in CI:
The API is the important part because manual security rollout does not scale. Manual security rollout is just vibes with admin permissions.
GitHub’s docs are explicit about limitations, and they are the difference between a helpful rollout and a confused one.
During public preview, AI-powered security detections require GitHub Advanced Security and GitHub Copilot licenses. Usage consumes AI credits. That means this is not merely a security setting; it is also a capacity and cost setting.
The findings are advisory and do not block pull request merges. GitHub also says AI-powered findings cannot yet be used in rulesets to enforce merge requirements. So if your compliance story requires hard gates, AI Scan is not that gate today.
It is also pull-request only. Full repository scans are not supported. Detection categories and supported languages may change, and false positives are expected because, yes, the robot has opinions.
None of that makes the feature useless. It makes it a signal, not a verdict.
If I were turning this on for a real engineering org, I would not start with “enable everywhere.” I would start with three tracks:
Then I would wire the API into the same reporting path used for CodeQL, secret scanning, Dependabot, and branch protection. Not because every signal is equal, but because every signal needs an owner.
The post-hype takeaway: GitHub did not just ship another AI security feature. It shipped the administrative surface that lets teams treat that feature like part of the software delivery system.
That is less flashy than a demo. It is also the part that tends to survive first contact with production.