Generate a CycloneDX SBOM for an image with Syft and scan it with Grype?
BeginnerProductionRapid-Fire Tool Questions
Answer
syft registry.example.com/app:1.4.2 -o cyclonedx-json=sbom.cdx.json
grype sbom:sbom.cdx.json --fail-on high
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?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