GitLab
Last updated
Last updated
Akto integrates with GitLab to add automated API security testing to your CI/CD pipeline. This integration enables you to:
Run API security tests during your GitLab pipelines
View security test results directly in merge requests
Block merges based on security test results
GitLab account with maintainer or owner permissions
GitLab repository with CI/CD enabled
Docker runner configured in GitLab
Akto API credentials (API key and dashboard URL)
Add GitLab CI Configuration
Create or update .gitlab-ci.yml
in your repository root:
Configure GitLab CI/CD Variables
Go to Settings > CI/CD > Variables
Add these variables:
AKTO_API_KEY
(mark as masked and protected)
AKTO_TEST_ID
Create a merge request
Pipeline will automatically run
Check "CI/CD > Pipelines" for test results
Note: Never commit sensitive credentials like API keys directly in your configuration files. Always use GitLab CI/CD variables for sensitive data.