CircleCI
CircleCI allows teams to rapidly build quality projects, at scale. This workflow can be used to trigger Beagle penetration testing from CircleCI.
Step 1: Configure your pipeline
  • Log in to your CircleCI account.
  • Select your project.
  • In your repository, navigate to the .circleci folder and open the config.yml file.
  • Add the following snippet under the jobs: section:
beagle-trigger:
    docker:
        - image: beaglesecurity/beagle-test-trigger-common:latest
    steps:
        - run:
            command: trigger-test
Step 2: Add Beagle to your workflow
  • Include the Beagle trigger job in your workflow configuration as shown below:
workflows:
    version: x
    workflow-name:
        jobs:
            - job1
            - job2
            - beagle-trigger
Step 3: Add environment variables
  • Click on the mechanical wheel icon in your project settings.
  • Navigate to Environment variables and click Add variable.
  • Add the following variables:
  • ACCESS_TOKEN — your access token from the Beagle Dashboard.
  • APPLICATION_TOKEN — your application token from the Beagle Dashboard.
Step 4: Trigger your build
  • Run your build pipeline.
  • Once triggered, you'll see the beagle-trigger workflow running automatically to start your Beagle Security test.