GitLab Pipeline Setup for Aikido CLI: Release Gating
The Aikido Security CI client allows you to integrate Aikido Security scans into CI pipelines. It helps ensure that security scans are part of your build process.
1. Get API key
2. Create a new GitLab Pipeline job
stages:
- security_check
aikido_release_gate:
stage: security_check
image: node:22
script:
- npm install --global @aikidosec/ci-api-client
- |
aikido-api-client scan-release \
"$CI_PROJECT_ID" \
"$CI_COMMIT_SHA" \
--apikey "$AIKIDO_CLIENT_API_KEY" \
--fail-on-sast-scan \
--fail-on-iac-scan \
--fail-on-secrets-scan
only:
- main3. Run your first scan
Last updated
Was this helpful?