GitLab Integration
How to scan your code with AquilaX with GitLab Jobs
AquilaX Security Scan Gitlab Action
Why Use AquilaX Security Scan?
Setup and Configuration
1. Add the Gitlab Actions YAML File
stages:
- aquilax
Security Scan:
stage: aquilax
image: python:3.12-slim
allow_failure: true
timeout: 5m
script:
- |
echo "$CI_PROJECT_URL.git" - "$CI_COMMIT_REF_NAME"
pip3 install --no-cache-dir --upgrade aquilax
aquilax -v
aquilax login "$AQUILAX_TOKEN" --server "https://aquilax.ai" || exit 1
aquilax ci-scan \
"$CI_PROJECT_URL".git \
--org-id "$AQUILAX_ORG_ID" \
--group-id "$AQUILAX_GROUP_ID" \
--branch "$CI_COMMIT_REF_NAME"
artifacts:
when: always
paths:
- results.sarif
rules:
- if: '$CI_PIPELINE_SOURCE != "schedule"'
2. Set GitLab Secrets
3. Set Organization ID and Group ID
Usage
Benefits of Using AquilaX Security Scan
Support
More Links
Last updated