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.
More on Rapid-Fire Tool Questions
Trivy command to fail a build only on fixable critical vulnerabilities?BeginnerGenerate a CycloneDX SBOM for an image with Syft and scan it with Grype?BeginnerCosign keyless verify command that pins the GitHub Actions workflow identity?IntermediateRun Checkov against a Terraform plan instead of raw HCL?BeginnerSemgrep command to scan with OWASP rules and fail on findings?BeginnerHow do you list everything a service account can do in Kubernetes?Intermediate