Skip to content
Get Saturday's email
SecurityWritten for the boardroom

How do you build securely when AI is writing more of the code?

GitHub lays out how to check AI-written code at three points: before a pull request, during review, and across older code already in a repository.

  • GitHub says it detected over 200 million vulnerabilities from January to October 2026, based on internal data, a 100% rise year over year.
  • Running /security-review locally before a pull request returns prioritized findings and suggested fixes, but only covers your active changes and does not edit code.
  • CodeQL runs on every pull request. AI Scanning adds coverage for more languages, such as PHP, and for business logic flaws.
  • A Standard AI Scan on a default branch needs write access, and its findings sit alongside CodeQL alerts in the code scanning backlog.

Why it matters: Pull request checks skip code that nobody has changed recently. Check whether your teams run a repository scan on older code, not just on new changes.

Read the original at GitHub Blog: AI and ML ↗ (opens in a new tab)Saturday Admin links to the source rather than copying it.
  • ai-generated-code
  • code-security
  • secrets
  • dependencies
  • devsecurity

Related reading