Claude Code's "don't ask again" leaked secrets to GitHub: check yours

My take: The fix belongs in Claude Code, and it shipped on November 12, 2026. What you already pushed is yours to clean: rotate first, delete second.
What to know
- When Claude Code asks to run a command and you pick "Yes, and don't ask again", it saves an allow rule in
.claude/settings.local.json(documentation). The command is often saved as typed, password or API token included. Apiiro, a security firm, found more than 100,000 of these files in public GitHub repositories, about 1,100 of them holding secrets, Ars Technica reported on November 9, 2026. Two popular scanners, Gitleaks and TruffleHog, missed 215 of those secrets. - Claude Code keeps the file out of git through your global git excludes, a setting of your machine, not of the repository. That protection has gaps: a file you created by hand, a folder that became a repository later, a new machine. Version 2.1.323, out on November 12, 2026, closes the last two, and "don't ask again" no longer saves a rule that looks like it holds a secret.
- On November 9, 2026, Notion reported that Fireworks AI, one of its AI providers, had been breached: Notion AI chat transcripts were exposed, in fewer than 1% of workspaces. Notion asks anyone who pasted a password or a key into Notion AI during the incident to rotate it.
Spotted on @nathanv_info, @wooden_koder and in Self-Host Weekly.
What changes
Update Claude Code, then run this in each repository:
git log --all --oneline -- '*settings.local.json'
One line of output means the file was committed at some point, and deleting it now leaves it in the history and in forks. So rotate every secret it held first, then add .claude/settings.local.json to the repository's own .gitignore, which travels with every clone. gitleaks git . scans the whole history, but given its misses, open the file and read it yourself. The same goes for any AI chat: a key you pasted there is a key to rotate.
Source: Anthropic, “Claude Code v2.1.323”, November 12, 2026
Drafted with Claude, Anthropic's AI, from my take. Reviewed and owned by me.