Integrating CyberGuard with Your CI/CD Pipeline

Step-by-step guide to integrating CyberGuard's AI pentesting into your CI/CD workflow with GitHub Actions, GitLab CI, and Jenkins.

About 5 min read

Integrating CyberGuard with Your CI/CD Pipeline

Shift security left by integrating CyberGuard directly into your development workflow. Catch vulnerabilities before they reach production.

Why CI/CD Integration?

  • Early Detection: Find security issues during development, not after deployment
  • Faster Feedback: Developers get immediate security feedback on their code
  • Automated Gates: Block insecure code from reaching production
  • Continuous Security: Every commit is tested for vulnerabilities

GitHub Actions Integration

name: CyberGuard Security Scan

on: [push, pull_request]

jobs:
  security-scan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Run CyberGuard Scan
        uses: cyberguard/scan-action@v1
        with:
          api-key: ${{ secrets.CYBERGUARD_API_KEY }}
          target: ${{ github.event.repository.url }}
          severity-threshold: high

GitLab CI Integration

cyberguard-scan:
  stage: security
  image: cyberguard/scanner:latest
  script:
    - cyberguard scan --target $CI_PROJECT_URL
  only:
    - merge_requests
    - main

Jenkins Integration

pipeline {
    agent any
    stages {
        stage('Security Scan') {
            steps {
                sh 'cyberguard scan --target ${env.GIT_URL}'
            }
        }
    }
}

Best Practices

  1. Fail Fast: Configure scans to fail builds on critical vulnerabilities
  2. Incremental Scans: Scan only changed code for faster feedback
  3. Parallel Execution: Run security scans in parallel with other tests
  4. Dashboard Integration: Send results to your security dashboard

Get Started

View full CI/CD documentation or request a demo.

CyberGuard Logo

CyberGuard

Autonomous AI Pentesting Platform for enterprise-grade security.

© 2025 CyberGuard. All rights reserved.