Semgrep command to scan with OWASP rules and fail on findings?
BeginnerProductionRapid-Fire Tool Questions
Answer
semgrep scan --config p/owasp-top-ten --error --sarif --output semgrep.sarif
--error returns a non-zero exit code when findings exist. In Semgrep AppSec Platform pipelines, semgrep ci uses the policies configured centrally and scans only the diff on PRs.
More on Rapid-Fire Tool Questions
Gitleaks command to scan only staged changes before a commit?BeginnerTrivy 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?BeginnerHow do you list everything a service account can do in Kubernetes?Intermediate