You have clicked "Yes, and don't ask again" in Claude Code more times than you can count. Me too. It feels like a tiny productivity win.
Here is what happens next. Per the Claude Code permissions docs , when you pick that option on something like a Bash command, Claude Code saves the rule to .claude/settings.local.json at the root of your git repository. If the command you approved had a token in it, the rule can have the token too.
That is not a theory. Ars Technica reported on Nov 9, 2026 that researchers at Apiiro found over 100,000 Claude Code local settings files uploaded to public GitHub repos. Only about 1,100, from 63 organizations, held secrets such as API tokens, database passwords and private keys. Small share, real damage. And 215 of those secrets were not flagged by two popular scanners, gitleaks and TruffleHog.
Per the same report, a Claude Code team member said these files should pretty much never be checked into git, and that the team was looking into improvements.…