New: Cookbooks and AI ExplanationsStep-by-Step recipes to solve problems connected to Roadmaps and Cheat Sheets. Need more details? Use AI buttons for structured and simple explanations with concrete examples throughout the whole platform.Take a look
Hardcoded my key to test something quickly. Forgot to take it out before I pushed.
What you'll have at the end
Your key moved to an environment variable, with a secret scan of your git history coming back clean.
You need
A repository already pushed to GitHub with a real API key hardcoded somewhere inside it, and sign-in access to that key's own provider dashboard.
Not covered
This doesn't cover wiring a scanner to run automatically before every future commit; that's a prevention habit worth adding separately, not part of cleaning up a key that's already public.
Leans on
Checked 15 Aug 2026
Part of the LLM APIs and Integration cookbook