cd /news/ai-products/ai-scan-for-pull-request-apis-in-pub… · home topics ai-products article
[ARTICLE · art-126220] src=github.blog ↗ pub= topic=ai-products verified=true sentiment=↑ positive

AI Scan for pull request APIs in public preview

GitHub released a public preview of REST API endpoints that let organizations and repositories manage AI Scan for pull requests, available on github.com for GitHub Advanced Security customers. The new /orgs/{org}/code-scanning/ai-scan and /repos/{owner}/{repo}/code-scanning/ai-scan endpoints read and update whether AI-powered security detections run on pull requests, with organization settings controlling whether scans can run at all and repository settings unable to override an organization-level disabled state. GitHub Enterprise Server is not supported in this release.

by read1 min views2 publishedSep 10, 2026
AI Scan for pull request APIs in public preview
Image: GitHub Changelog

You can now manage GitHub code scanning’s AI Scan for pull request enablement with REST API endpoints at the organization and repository levels. This public preview gives teams a programmatic way to roll out AI-powered security detections for pull requests across select repositories without manually configuring each setting in the GitHub UI.

## [Manage AI Scan for pull requests at scale](#manage-ai-scan-for-pull-requests-at-scale)

Use [the new organization and repository APIs](https://docs.github.com/rest/code-scanning/code-scanning?apiVersion=2026-03-10) to read and update whether AI Scan for pull requests is enabled. Organization settings control whether pull request scans can run across the organization, and repository settings let you turn scans on or off for individual repositories. Repository settings do not override an organization-level disabled state.

To view and update the status of AI Scan for selected repositories, users can use the `/orgs/{org}/code-scanning/ai-scan` and `/repos/{owner}/{repo}/code-scanning/ai-scan` endpoints.

This public preview is available on github.com for GitHub Advanced Security customers. GitHub Enterprise Server is not supported for this release. For more information, see AI Scan security detections.

Join the discussion and leave feedback on the announcement in GitHub Community.

── more in #ai-products 4 stories · sorted by recency
── more on @github 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/ai-scan-for-pull-req…] indexed:0 read:1min 2026-09-10 ·