
GitHub Engineering · 6 min readSecurity
How do you build securely when AI is writing more of the code?
Learn how to integrate security checks into a GitHub workflow that includes AI‑generated code. The guide shows how to run local security reviews, pull‑request scans with CodeQL and AI scanning, and repository‑wide AI scans to catch vulnerabilities before merging. It explains how to apply fixes and use autofix workflows.
- Run /security-review locally to catch SQL injection before PR
- Use CodeQL + AI scanning on PRs for new or changed code
- Apply Standard AI Scan on default branch to audit older code