Interview Prep/CI/CD/Secrets, Security and Pipeline Performance

`gitleaks` finds a secret in an old commit, but the file is gone now.

BeginnerTroubleshootingSecrets, Security and Pipeline Performance
Answer

Likely causes → Secrets remain in Git history.

Diagnose → gitleaks detect --log-opts="--all".

Fix → Rotate the secret, then rewrite history with git filter-repo if required.

Prevent → Pre-commit scanning and push protection.

All CI/CD questions

More on Secrets, Security and Pipeline Performance