GitLab Pipeline
Last updated
Last updated
This documentation is specific to Gitlab. Common build server documentation should be reviewed before proceeding further.
Environment variable values can be found in your user profile.
THREATRIX_OID - Your organization ID.
THREATRIX_EID - Your entityID (if you wish to override your default).
THREATRIX_API_KEY - Personal or organization API key.
This step may require administrative privileges within Gitlab
From within Gitlab, navigate to Settings -> CI/CD -> Variables, as shown below.
Click "Add Variable" to add THREATRIX_OID and THREATRIX_API_KEY and optionally, a THREATRIX_EID for which the API key has permissions to create projects.
In Gitlab, in the repository you wish you run your scan, create a .gitlab-ci.yml file
and add the following contents.
This option may not work for Gitlab On-Prem deployments. Please use Option 1 for Gitlab On-Prem.