Bitbucket
Bitbucket is a web-based version control repository hosting service owned by Atlassian, for source code and development projects that use either Mercurial or Git revision control systems. This plugin can be used to trigger Beagle penetration testing from Bitbucket.
Step 1: Log in to Bitbucket
- Go to your Bitbucket account.
- Select the repository or project you want to integrate with Beagle Security.
Step 2: Configure your pipeline
- In your repository, open or create the bitbucket-pipelines.yml file.
- Add the following snippet under the script: section:
- pipe: beaglesecurity/beaglesecurity-test:1.1.0
variables:
ACCESS_TOKEN: $ACCESS_TOKEN
APPLICATION_TOKEN: $APPLICATION_TOKEN
Step 3: Create a new pipeline (if not already configured)
- If your repository doesn't have a pipeline configured yet:
- Go to Pipelines from the side menu.
- Click Choose a language template -> Starter pipeline.
- Save and configure the bitbucket-pipelines.yml file as described above.
Step 4: Add repository variables
You need to add your Beagle Security credentials as environment variables in Bitbucket Pipelines.
- Click the settings in the left sidebar.
- Go to Repository variables.
- Add the following variables:
- Name: ACCESS_TOKEN
- Value: your access token from the Beagle Security dashboard.
- Name: APPLICATION_TOKEN
- Value: your application token from the Beagle Security dashboard.
- Check the Secured box for both variables to keep them hidden.
- Click Commit to save your configuration.