In ChatGPT, open Plugins and connect GitHub. Give access only to the repositories you want checked, and read-only if you're asked. The dot doesn't need to change code for this job.
In your dot's Custom rules, add: 'Never change, commit to or delete anything in GitHub' set to Block, and 'Messages about security' set to Take action without asking, so warnings reach you fast.
Paste the first prompt. It checks every file and the past commits (old versions of files) for passwords, access keys, tokens and private keys.
If it finds a key, turn the key off (revoke it) in that service's dashboard first, then make a new one. Deleting the file isn't enough: the old version stays in the history.
Use the second prompt to have it re-check after every push or once a week, and to report 'all clear' only once a month so it doesn't nag you.
Turn on GitHub's secret scanning and push protection where your plan allows: it's free on public repositories and blocks many keys before they're pushed. The dot is a second pair of eyes, not a replacement.
Check these GitHub repositories: [list]. Look in every file and in past commits for anything that looks like a password, access key, secret, token, private key or connection string with a password in it, including in .env files, config files and notebooks. For each finding give: repository, file, line or commit, what kind of secret it seems to be and which service it's for, whether it's still in the latest version, and how sure you are. Don't print the full secret: show only the first 4 characters. Don't change, commit or delete anything.π¬ Keep watching
From now on, re-check my repositories [after every push / every Monday at 9am]. Message me straight away if you find a new secret, with the repository, file and service and the steps to revoke and replace it in that service. Otherwise send me one 'all clear' line on the first day of each month. Never change, commit to or delete anything in GitHub.π¬ Help me fix it properly
You found a [service] key in [repository/file]. Give me plain step-by-step instructions to: 1) revoke it in [service] now, 2) create a new one, 3) store it safely as an environment variable or secret instead of in the code, 4) check that service's usage page for anything I didn't do since [date]. Keep it short and assume I'm not a security expert.
From https://usecasy.com/use-case/dots-leaked-keys-in-code-alert/ Β· Guide checked 26 November 2026 Β· Prices are rough and shown in USD unless stated (MYR where relevant).