Interview Prep/DevSecOps/Rapid-Fire Tool Questions

Gitleaks command to scan only staged changes before a commit?

BeginnerProductionRapid-Fire Tool Questions
Answer
gitleaks git --pre-commit --staged --redact -v

Newer Gitleaks versions (8.19+) replaced detect/protect with git, dir and stdin subcommands. --redact hides secret values in output.

All DevSecOps questions

More on Rapid-Fire Tool Questions