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 CI/CD Component
Xygeni provides an officially supported GitLab CI/CD Component named xygeni-scanner, available in the GitLab Marketplace: Gitlab Xygeni CI/CD Component
This component runs multiple kinds of scans on the GitLab repository. The scanner is automatically updated and cached for performance. All you need is a Xygeni API token registered as a pipeline secret.
To add this component to your CI/CD pipeline, add the following to your project's .gitlab-ci.yml:
include:
- component: $CI_SERVER_FQDN/xygeni/gitlab-ci-integration/xygeni-scanner@<tag>
inputs:
stage: test
# any additional input follows
# Create a job that extends the template
xygeni-scanner:
extends: .xygeni-scanner-jobWhere <tag> is the release tag you want to use (releases list). Use ~latest for the latest published component.
Using ~latest is not recommended: it is safer to always pin components to a specific release, to avoid supply chain attacks. In the following examples we use ~latest so you can copy and paste the examples for testing. Set a specific release in production environments.
The component provides a hidden job template .xygeni-scanner-job that you extend with your own job name. This allows you to customize the job name and add additional configuration like artifacts, allow_failure, or other job-level settings.
Multiple Configurations
You can include the component multiple times with different configurations by using the name input parameter. Each unique name creates a separate template that won't collide:
The job in template follows the pattern .xygeni-scanner-<name>, where <name> is the value of the name input (defaults to job). Extend the appropriate job as needed.
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:
Integrate with Gitlab Security Reports
GitLab provides built-in security reporting capabilities that allow you to view security vulnerabilities directly within your GitLab project. When integrated with Xygeni, security findings can be automatically sent to GitLab's security dashboard, providing a centralized view of your project's security posture.
Sending Xygeni Secrets Findings to GitLab
Xygeni can automatically send secrets detection findings to GitLab's security dashboard using the following command:
GitLab CI/CD Configuration:
To properly receive Xygeni findings, ensure your GitLab project has the security scanning features enabled. The findings will appear in:
Security & Compliance > Vulnerability Report
CI/CD > Pipelines > Security tab for each pipeline run
Project > Security Dashboard

Benefits of Integration:
Centralized security reporting in GitLab
Automated vulnerability tracking
Historical trend analysis
Integration with GitLab's issue tracking system
Compliance reporting capabilities
Last updated