🔐Secret Scanning
Also known as Secret Detection, Push Protection, Leaked Secret Scanning
A check for keys and passwords left in code. It runs before others see it.
Think of it like
Think of it like a guard who looks in your bag for keys.
Example
Lucy pushes a commit with a cloud key pasted into a test file. GitHub blocks the push and shows her the exact line.
Why it matters
Bots search public code for leaked keys all the time. One key can run up a big bill or open your data.
Definition
Common mistake
Key takeaways
- 1Scan every change. Catch keys before they are shared.
- 2Block or warn. Stop the push or flag it.
- 3Replace leaked keys. The history keeps the old one.