Skip to main content

GitLab CI/CD Integration

Add automated security testing to your GitLab CI/CD pipelines with AIPTx.

Quick Start

Add to your .gitlab-ci.yml:

Setup

1. Configure CI/CD Variables

In your GitLab project:
  1. Go to SettingsCI/CDVariables
  2. Add a new variable:
    • Key: AIPTX_API_KEY
    • Value: Your AIPTx API key
    • Type: Variable
    • Flags: ✅ Mask variable, ✅ Protect variable

2. Basic Pipeline Configuration

Configuration Options

Environment Variables

Pipeline Examples

Merge Request Scanning

Scan review apps on merge requests:

Scheduled Security Audits

Multi-Stage Pipeline

Using Configuration File

With aiptx.gitlab.yaml:

GitLab Security Dashboard Integration

Export findings in SARIF format for GitLab’s Security Dashboard:

Troubleshooting

Increase job timeout or use quick mode:
Ensure the target URL is accessible from GitLab runners. For private networks, use self-managed runners.
Verify variables are defined at the correct scope (project, group, or instance) and are not protected if running on unprotected branches.