GitLab
GitLab is a web-based DevOps lifecycle tool that provides a Git-repository manager providing wiki, issue-tracking and CI/CD pipeline features, using an open-source license.This pipeline can be used to trigger beagle penetration testing from GitLab
Step 1: Log in to GitLab
- Go to your GitLab dashboard.
- Select the project where you want to enable Beagle Security testing.
Step 2: Configure your pipeline
- Open your project's root directory and locate the .gitlab-ci.yml file.
- Add the following snippet to define a Beagle test trigger job:
beagle-trigger:
image: beaglesecurity/beagle-gitlab-pipeline
script:
- trigger-test
Step 3: Add Beagle tokens as environment variables
- Navigate to Settings -> CI/CD -> Variables
- Click Add variable and create the following:
- ACCESS_TOKEN — your access token from the Beagle Dashboard.
- APPLICATION_TOKEN — your application token from the Beagle Dashboard.
- Enable Protected and Masked for both variables (recommended for security).
- Click Add variable to save your tokens.
Step 4: Trigger your build
- Once your pipeline is configured, trigger your GitLab build.
- You'll see the beagle-trigger job running under CI/CD -> Jobs, automatically initiating your Beagle Security test.