Skip to Content
Internal ScanningCI/CD IntegrationsOverview

CI/CD Integrations

Trigger security scans from your CI/CD pipelines using the Internal Scanning Agent. Scan your applications for vulnerabilities before deployment and block releases when security issues are found using configurable guardrails.

This section covers Pre-Production Pipeline Scanning. For scheduled scans managed through the Detectify Platform, see Internal Scanning.

Why Integrate with CI/CD?

Integrating security scans into your pipeline catches vulnerabilities before they reach production:

  • Early Detection - Scan a deployed build from the merge request pipeline, before it reaches production
  • Automated Enforcement - Block risky code from being merged with guardrail policies
  • Developer Feedback - Security findings appear directly in your pipeline results
  • Audit Trail - Scan results are saved as artifacts for compliance and review

Available Integrations

PlatformStatusGuide
GitLab CI/CDAvailableQuick Start

Common Use Cases

Use CaseDescription
Scan on merge requestsAutomatically scan when code changes are proposed
Scan on push to mainValidate code merged to your default branch
Scan release candidatesDeploy to staging, scan, then decide whether to promote

For scheduled scans independent of code changes, configure them directly in the Detectify Platform.

See the GitLab CI/CD Use Cases for detailed examples.

How It Works

  1. Trigger - Pipeline starts on push, merge request, or schedule
  2. Scan - Pipeline calls your Internal Scanner API to start a security scan
  3. Wait - Pipeline polls for scan completion (configurable timeout)
  4. Evaluate - Results are checked against your guardrail thresholds
  5. Enforce - Pipeline passes or fails based on findings

Prerequisites

Before setting up CI/CD integration, ensure you have:

  • Internal Scanning Agent deployed in your environment
  • An internal scan profile created for this agent in the Detectify platform. See Detectify Configuration
  • The target application deployed and accessible from the Internal Scanning Agent
  • Network connectivity from your CI/CD runners to the scanner endpoint. Expose the scanner API with api_enabled = true (Terraform) or ingress.enabled: true (Helm). Both are off by default

Next Steps

Last updated on