{"id":98803,"date":"2026-09-10T13:20:58","date_gmt":"2026-09-10T20:20:58","guid":{"rendered":"https:\/\/github.blog\/changelog\/2026-09-10-ai-scan-for-pull-request-apis-in-public-preview"},"modified":"2026-09-15T12:21:58","modified_gmt":"2026-09-15T19:21:58","slug":"ai-scan-for-pull-request-apis-in-public-preview","status":"publish","type":[3522],"link":"https:\/\/github.blog\/changelog\/2026-09-10-ai-scan-for-pull-request-apis-in-public-preview","title":{"rendered":"AI Scan for pull request APIs in public preview"},"content":{"rendered":"<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<html><body><p>You can now manage GitHub code scanning&rsquo;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.<\/p>\n<h2 id=\"manage-ai-scan-for-pull-requests-at-scale\" id=\"manage-ai-scan-for-pull-requests-at-scale\" ><a class=\"heading-link\" href=\"#manage-ai-scan-for-pull-requests-at-scale\">Manage AI Scan for pull requests at scale<span class=\"heading-hash pl-2 text-italic text-bold\" aria-hidden=\"true\"><\/span><\/a><\/h2>\n<p>Use <a href=\"https:\/\/docs.github.com\/rest\/code-scanning\/code-scanning?apiVersion=2026-03-10\">the new organization and repository APIs<\/a> 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.<\/p>\n<p>To view and update the status of AI Scan for selected repositories, users can use the <code>\/orgs\/{org}\/code-scanning\/ai-scan<\/code> and <code>\/repos\/{owner}\/{repo}\/code-scanning\/ai-scan<\/code> endpoints.<\/p>\n<p>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 <a href=\"https:\/\/docs.github.com\/code-security\/concepts\/code-scanning\/ai-powered-security-detections\">AI Scan security detections<\/a>.<\/p>\n<p>Join the discussion and leave feedback on <a href=\"https:\/\/github.com\/orgs\/community\/discussions\/201543\">the announcement in GitHub Community<\/a>.<\/p>\n<\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>You can now manage GitHub code scanning&rsquo;s AI Scan for pull request enablement with REST API endpoints at the organization and repository levels. This public preview gives teams a programmatic&hellip;<\/p>\n","protected":false},"author":2106,"featured_media":0,"template":"","meta":{"_gh_post_show_toc":"","_gh_post_is_no_robots":"","_gh_post_is_featured":"","_gh_post_is_excluded":"","_gh_post_is_unlisted":"","_gh_post_related_link_1":"","_gh_post_related_link_2":"","_gh_post_related_link_3":"","_gh_post_sq_img":"","_gh_post_sq_img_id":"","_gh_post_cta_title":"","_gh_post_cta_text":"","_gh_post_cta_link":"","_gh_post_cta_button":"","_gh_post_recirc_hide":"","_gh_post_recirc_col_1":"","_gh_post_recirc_col_2":"","_gh_post_recirc_col_3":"","_gh_post_recirc_col_4":"","_featured_video":"","_gh_post_additional_query_params":"","footnotes":"","_links_to":"","_links_to_target":"","primary_cta":"","primary_cta_url":"","secondary_cta":"","secondary_cta_url":""},"label":[3627],"group":[3918],"coauthors":[3100],"class_list":["post-98803","changelog","type-changelog","status-publish","hentry","changelog-type-improvements","changelog-label-application-security","changelog-group-09-2026"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v28.4 (Yoast SEO v28.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>AI Scan for pull request APIs in public preview - GitHub Changelog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/github.blog\/changelog\/2026-09-10-ai-scan-for-pull-request-apis-in-public-preview\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AI Scan for pull request APIs in public preview \u00b7 GitHub Changelog\" \/>\n<meta property=\"og:description\" content=\"You can now manage GitHub code scanning&rsquo;s AI Scan for pull request enablement with REST API endpoints at the organization and repository levels. This public preview gives teams a programmatic&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/github.blog\/changelog\/2026-09-10-ai-scan-for-pull-request-apis-in-public-preview\/\" \/>\n<meta property=\"og:site_name\" content=\"The GitHub Blog\" \/>\n<meta property=\"article:modified_time\" content=\"2026-09-15T19:21:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/github.blog\/wp-content\/uploads\/2026\/09\/Changelog_Improvement_Unfurl_TextOnly_AIScanforPullRequest.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n\t<meta name=\"twitter:label2\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data2\" content=\"Allison\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/github.blog\\\/changelog\\\/2026-09-10-ai-scan-for-pull-request-apis-in-public-preview\\\/\",\"url\":\"https:\\\/\\\/github.blog\\\/changelog\\\/2026-09-10-ai-scan-for-pull-request-apis-in-public-preview\\\/\",\"name\":\"AI Scan for pull request APIs in public preview - The GitHub Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/github.blog\\\/#website\"},\"datePublished\":\"2026-09-10T20:20:58+00:00\",\"dateModified\":\"2026-09-15T19:21:58+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/github.blog\\\/changelog\\\/2026-09-10-ai-scan-for-pull-request-apis-in-public-preview\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/github.blog\\\/changelog\\\/2026-09-10-ai-scan-for-pull-request-apis-in-public-preview\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/github.blog\\\/changelog\\\/2026-09-10-ai-scan-for-pull-request-apis-in-public-preview\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/github.blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Changelogs\",\"item\":\"https:\\\/\\\/github.blog\\\/changelog\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"AI Scan for pull request APIs in public preview\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/github.blog\\\/#website\",\"url\":\"https:\\\/\\\/github.blog\\\/\",\"name\":\"The GitHub Blog\",\"description\":\"Updates, ideas, and inspiration from GitHub to help developers build and design software.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/github.blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"AI Scan for pull request APIs in public preview - GitHub Changelog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/github.blog\/changelog\/2026-09-10-ai-scan-for-pull-request-apis-in-public-preview\/","og_locale":"en_US","og_type":"article","og_title":"AI Scan for pull request APIs in public preview \u00b7 GitHub Changelog","og_description":"You can now manage GitHub code scanning&rsquo;s AI Scan for pull request enablement with REST API endpoints at the organization and repository levels. This public preview gives teams a programmatic&hellip;","og_url":"https:\/\/github.blog\/changelog\/2026-09-10-ai-scan-for-pull-request-apis-in-public-preview\/","og_site_name":"The GitHub Blog","article_modified_time":"2026-09-15T19:21:58+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/github.blog\/wp-content\/uploads\/2026\/09\/Changelog_Improvement_Unfurl_TextOnly_AIScanforPullRequest.jpg","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute","Written by":"Allison"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/github.blog\/changelog\/2026-09-10-ai-scan-for-pull-request-apis-in-public-preview\/","url":"https:\/\/github.blog\/changelog\/2026-09-10-ai-scan-for-pull-request-apis-in-public-preview\/","name":"AI Scan for pull request APIs in public preview - The GitHub Blog","isPartOf":{"@id":"https:\/\/github.blog\/#website"},"datePublished":"2026-09-10T20:20:58+00:00","dateModified":"2026-09-15T19:21:58+00:00","breadcrumb":{"@id":"https:\/\/github.blog\/changelog\/2026-09-10-ai-scan-for-pull-request-apis-in-public-preview\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/github.blog\/changelog\/2026-09-10-ai-scan-for-pull-request-apis-in-public-preview\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/github.blog\/changelog\/2026-09-10-ai-scan-for-pull-request-apis-in-public-preview\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/github.blog\/"},{"@type":"ListItem","position":2,"name":"Changelogs","item":"https:\/\/github.blog\/changelog\/"},{"@type":"ListItem","position":3,"name":"AI Scan for pull request APIs in public preview"}]},{"@type":"WebSite","@id":"https:\/\/github.blog\/#website","url":"https:\/\/github.blog\/","name":"The GitHub Blog","description":"Updates, ideas, and inspiration from GitHub to help developers build and design software.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/github.blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/github.blog\/wp-json\/wp\/v2\/changelogs\/98803","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/github.blog\/wp-json\/wp\/v2\/changelogs"}],"about":[{"href":"https:\/\/github.blog\/wp-json\/wp\/v2\/types\/changelog"}],"author":[{"embeddable":true,"href":"https:\/\/github.blog\/wp-json\/wp\/v2\/users\/2106"}],"version-history":[{"count":1,"href":"https:\/\/github.blog\/wp-json\/wp\/v2\/changelogs\/98803\/revisions"}],"predecessor-version":[{"id":98805,"href":"https:\/\/github.blog\/wp-json\/wp\/v2\/changelogs\/98803\/revisions\/98805"}],"wp:attachment":[{"href":"https:\/\/github.blog\/wp-json\/wp\/v2\/media?parent=98803"}],"wp:term":[{"taxonomy":"changelog-type","embeddable":true,"href":"https:\/\/github.blog\/wp-json\/wp\/v2\/type?post=98803"},{"taxonomy":"changelog-label","embeddable":true,"href":"https:\/\/github.blog\/wp-json\/wp\/v2\/label?post=98803"},{"taxonomy":"changelog-group","embeddable":true,"href":"https:\/\/github.blog\/wp-json\/wp\/v2\/group?post=98803"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/github.blog\/wp-json\/wp\/v2\/coauthors?post=98803"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}