Bitbucket Pipeline
Last updated
Was this helpful?
Last updated
Was this helpful?
This documentation is specific to Gitlab. documentation should be reviewed before proceeding further.
Environment variable values can be found in your .
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 your avatar in the bottom left, select a workspace.
Select Settings on the left navigation sidebar to open your Workspace settings.
In the menu on the left, go to Pipelines > Workspace variables.
Workspaces variables can be overridden by repository variables.
Workspace variables can be accessed by all users with the write permission for any repository (private or public) that belongs to the team or account.
You must be an administrator of a workspace or a repository to manage variables respectively.
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.
You have two options to add Threatrix TheatAgent to your build step.
1) Using our ThreatAgent CLI directly. This is the best option if you already have Java installed on your build server or you have a complex build environment
2) Use our Dockerized agent.
In Bitbucket, in your repository you wish you run your scan, create a bitbucket-pipelines.yml file
and add the following contents.
In Bitbucket, in your repository you wish you run your scan, create a bitbucket-pipelines.yml file
and add the following contents.