Eigen RadarAI
Analysis

GitHub opens REST controls for repository-wide AI Scan

GitHub has put controls for repository-wide AI Scan into public preview through its REST application programming interface. Organizations can set a policy that repositories inherit, with local opt-outs when the organization permits scanning. Enabling the setting does not launch a scan: users request scans separately, and those operations consume AI Scan credits.

Artificial Intelligence··Midday
A laptop screen showing a list of code repositories, each row with an on or off scan toggle, beneath a master switch that governs the whole list.

Settings can be read and changed through REST

GitHub, the code hosting platform, has opened public-preview controls for repository-wide AI Scan through its REST application programming interface. Organization and repository configuration endpoints now expose a repository_scan field. Administrators can read settings with GET and change them with PATCH, using enabled or disabled as the field value. These controls manage participation in AI Scan across repositories rather than automatically starting an inspection of the code.[1], [2]

Organization policy governs repository choices

A repository can opt out when its organization enables the feature, but cannot opt in against an organization-wide prohibition. An enterprise policy that blocks a change produces a 422 response. Requests updating both scan settings together are atomic: if policy rejects either field, neither update takes effect. Organization owners and security managers manage organization settings, while repository administrators control their own repository’s participation.[1]

Scans use credits and require a separate request

Users with write access can manually start a scan once the applicable policy permits it, consuming AI Scan credits. Public repositories owned by organizations can use the preview. Private and internal repositories require GitHub Code Security or GitHub Advanced Security. The stated availability excludes GitHub Enterprise Server. The new interface adds administration options to the existing scanning service, with organization and enterprise restrictions remaining effective at repository level.[1]

References

  1. News sourceGitHubGitHub adds repository-wide AI Scan controls to its REST API↩1↩2↩3
  2. News sourceQATechToolsGitHub makes AI Scan settings manageable through REST endpoints↩