Set up GitLab CI workflow for CodeAnt CI scan.
.gitlab-ci.yml
. This single job will download the scan helper script and trigger a CodeAnt analysis on each push:
Tip:
- In Settings → CI/CD → Variables, add a protected and masked variable named
ACCESS_TOKEN
with your repo- or project-level PAT.- GitLab provides
$CI_PROJECT_PATH
(e.g.group/project
) and$CI_COMMIT_SHA
automatically.
curl
the start_scan.sh
helper from the CodeAnt CI endpoint.
chmod +x start_scan.sh
makes it runnable.
/analysis/ci/scan
.