Interview Prep/Git & GitHub/Secrets, Signing and Security

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 →

  1. Triage by validity: GitHub shows whether a provider-pattern secret is still active.
  2. Rotate and close the valid ones as "revoked".
  3. Close the rest as "false positive" or "used in tests" with a comment.
  4. Exclude fixtures and paths via secret_scanning.yml (paths-ignore).
  5. 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.

All Git & GitHub questions Roadmap: Git & GitHub

More on Secrets, Signing and Security