Secret scanning alerts have piled up, and many look like false positives or old test credentials.
IntermediateScenarioSecrets, Signing and Security
Answer
Situation read → Alert fatigue will cause real leaks to be ignored.
What I'd do →
- Triage by validity: GitHub shows whether a provider-pattern secret is still active.
- Rotate and close the valid ones as "revoked".
- Close the rest as "false positive" or "used in tests" with a comment.
- Exclude fixtures and paths via
secret_scanning.yml(paths-ignore). - Track the time to remediation as a metric.
Why → Clean queues make real alerts stand out.
Interview tip → Validity checks let you prioritise active credentials first.
More on Secrets, Signing and Security
A developer pushed an AWS access key to a public repo 10 minutes ago. What is your first move?BeginnerAfter rotating the leaked key, you must purge it from repository history. How?AdvancedA push is rejected: "GH013: Repository rule violations found ... Push cannot contain secrets". What do you do?IntermediateYou must set up signed commits on your laptop. Which method do you pick?BeginnerYour GPG signing key expires next week. What is the correct way to handle it?IntermediateA release bot pushes commits, and branch rules require signed commits. How do you handle it?Intermediate