GitHub Action
GitHub Actions is an API for cause and effect on GitHub: orchestrate any workflow, based on any event, while GitHub manages the execution, provides rich feedback, and secures every step along the way.
Trigger Beagle Penetration Testing via GitHub Action
Automate your Beagle Security penetration tests directly from your GitHub repository using GitHub Actions. With just a few setup steps, you can integrate Beagle Security testing into your CI/CD pipeline effortlessly.
Step 1: Add the Application Key and Access Key as secrets in your repository
  • Navigate to Settings -> Secrets -> Actions in your GitHub repository.
  • Add the following secrets:
  • beagle_access_token
  • beagle_application_token
Step 2: Copy the code snippet to your main.yml

Insert the Beagle GitHub Action into your workflow file to automatically trigger penetration tests.

- name: Beagle Security Test
  uses: beaglesecurity/beagle-github-action@3.0.0
Step 3: Provide environment variables to the action

Ensure that your GitHub Action has access to the Beagle credentials by referencing the secrets in the workflow:

- name: Beagle Security Test
  uses: beaglesecurity/beagle-github-action@3.0.0
  env:
    access_token: ${{ secrets.access_token }}
    application_token: ${{ secrets.application_token }}