CI/CD Integration
Trigger Surfbot scans from your CI/CD pipeline and gate deployments on security results.
Overview
Integrate Surfbot into your deployment pipeline to automatically scan after every deploy. This catches new vulnerabilities introduced by infrastructure changes before they're exploited.
GitHub Actions
GitLab CI
Generic Script
For any CI system, use this shell script:
Best Practices
- Use quick scans in CI (faster, focuses on web-layer changes)
- Run full scans on a daily schedule separately
- Only gate on new critical findings — don't block deploys on pre-existing issues
- Store your API key as a CI/CD secret, never in code
- Set a reasonable timeout (15 minutes) to avoid blocking pipelines indefinitely