Cyber
GitHub adds Secret Scanning to Copilot to catch leaked keys before merge
Edited by WF LABs · Published
Source date
GitHub has opened a public preview that lets Copilot's security checks call Secret Scanning on code being edited, covering the CLI, the Copilot app, the SDK and supported pull request reviews.

Opt-in, and it only checks changes
The feature is off by default. Once enabled, GitHub's own detectors run alongside the language-model analysis. It scans the code that changed, not the full repository history, and scans consume AI credits under the service terms.
The White Forces view
The value is catching an API key before the code leaves development. Teams that let AI write code should make secret checks part of the merge criteria, just like tests, instead of relying on whoever wrote the code to remember.
What development teams should do
Check permissions and cost for the tools you use, then trial it on a repository with no real data. If a key has already leaked, deleting it from the file is not enough: revoke or rotate it and look for unusual usage.
Original sources
Summarised from the original announcement; our recommendations are kept separate in The White Forces view.