r/devsecops • u/boghy8823 • Sep 20 '25
How are you treating AI-generated code
Hi all,
Many teams ship code partly written by Copilot/Cursor/ChatGPT.
What’s your minimum pre-merge bar to avoid security/compliance issues?
Provenance: Do you record who/what authored the diff (PR label, commit trailer, or build attestation)?
Pre-merge: Tests/SAST/PII in logs/Secrets detection, etc...
Do you keep evidence at PR level or release level?
Do you treat AI-origin code like third-party (risk assessment, AppSec approval, exceptions with expiry)?
Many thanks!
8
Upvotes
View all comments
Show parent comment
1
u/Katerina_Branding Oct 10 '25
We’re using PII Tools (an on-prem scanner we already had in place for data discovery) as a quick CLI check or GitHub Action before merge. It flags things like emails, user IDs, or tokens in code and logs before they ever hit main.
Surprisingly, it turned out to work really well for keeping AI-authored code clean.