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:- Go to Settings → CI/CD → Variables
- Add a new variable:
- Key:
AIPTX_API_KEY - Value: Your AIPTx API key
- Type: Variable
- Flags: ✅ Mask variable, ✅ Protect variable
- Key:
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
aiptx.gitlab.yaml:
GitLab Security Dashboard Integration
Export findings in SARIF format for GitLab’s Security Dashboard:Troubleshooting
Pipeline timeout
Pipeline timeout
Increase job timeout or use quick mode:
Target not accessible
Target not accessible
Ensure the target URL is accessible from GitLab runners. For private networks, use self-managed runners.
Variable not found
Variable not found
Verify variables are defined at the correct scope (project, group, or instance) and are not protected if running on unprotected branches.