Implement automated security scanning in CI/CD pipelines. Detect vulnerabilities in container images, dependencies, and code before deployment to production.
Set up Trivy vulnerability scanner for testing.
brew install trivy || sudo apt-get install trivy || echo 'Install from: https://aquasecurity.github.io/trivy'trivy --versiondocker pull nginx:latesttrivy image nginx:latestTrivy scans containers for OS and application vulnerabilities. Free, fast, accurate. Works with Docker images, filesystems, Git repos, and more.
Trivy installed and working. nginx:latest scan shows vulnerabilities with severity levels (CRITICAL, HIGH, MEDIUM, LOW).