GitLab
Run AlphaBase from GitLab pipelines, issues, and merge requests.
AlphaBase can run in GitLab CI/CD to triage issues, review merge requests, and implement changes through controlled pipeline jobs.
CLI-Driven Job (Recommended)
- Store provider credentials in GitLab CI/CD variables (masked + protected).
- Install the
alphabaseCLI in the job image (npm i -g alphabase-ai). - Run
alphabase runnon-interactively with the prompt/context for that job.
Example:
alphabase-review: image: node:22 rules: - if: $CI_PIPELINE_SOURCE == "merge_request_event" variables: PROVIDER_API_KEY: $PROVIDER_API_KEY script: - npm i -g alphabase-ai - alphabase run "Review this merge request for regression risks and summarize findings." --format jsonMention-Driven Workflow
Use a trigger phrase in issue/MR comments, for example:
@alphabase review this merge requestA pipeline job triggered by a webhook/bot can parse the comment, then invoke
alphabase run with the relevant issue/MR context and post the result back to
the thread via the GitLab API.
Security Checklist
- Mark sensitive variables as masked and protected.
- Use least-privilege service accounts/tokens.
- Protect default branch and require MR approvals.
- Restrict pipeline permissions for forked contributions.
- Log and retain pipeline audit trails.
Rollout Pattern
- Read-only analysis jobs first.
- Controlled write jobs in staging.
- Production write automation after launch-gate verification.
See Launch Gates and Enterprise.