GitLab Runner Integration
GitLab
is an open-core company that provides GitLab, a DevOps software package that combines the ability to develop, secure, and operate software in a single application. Its application, GitLab Runner
, works with GitLab CI/CD to run jobs in a pipeline.
Using the installation script
You may automatically install the scanner using the installation script available from https://get.xygeni.io/latest/scanner/TYPE
, with TYPE either bash
or powershell
:
build-job:
stage: scan
script:
- >
curl -L https://get.xygeni.io/latest/scanner/install.sh |
/bin/bash -s -- -o -t $XYGENI_TOKEN
- >
$HOME/.xygeni/xygeni scan \
-n ${CI_PROJECT_NAME} --dir ${CI_PROJECT_DIR}
Using the docker image
If it is not possible to install the scanner in the GitLab host running the pipeline, you may run the docker image instead:
build-job:
stage: scan
script:
- >
docker run
-v $PROJECT_HOME:/app
-v $DD_CONF:/opt/xygeni_scanner/conf
-t -rm xygeni_scanner/xygeni scan
-n $PROJECT_NAME --dir /app
Last updated