Keep credentials in a secret manager or local environment configuration. Put example names and fake values in shared templates.
Review the staged diff and check logs, screenshots, notebooks and generated files for accidental credentials.
Use your repository's available secret scanning and push protection. Check the alerts and access settings with the repository owner.
Treat AI detections as findings to review. An empty scan is not evidence that every possible secret is absent.
02
If a credential is exposed
Revoke or rotate it with the provider first; removing a line from the latest file does not invalidate the credential.
Identify where it was used and check access logs. Follow the provider's recovery procedure.
Coordinate any repository history cleanup with collaborators and recheck automation that used the old credential.
03
Copy this review request
Review this staged diff for hardcoded credentials, accidentally tracked environment files and sensitive values in logs. Report file locations and the type of issue. Do not repeat actual secret values in your response.
FROM THE ORIGINAL CREATOR
This companion guide is by Huzaifa. Check the original project for current setup and availability.