Travis CI
Travis CI is a hosted continuous integration service used to build and test software projects hosted on GitHub.
You can integrate Beagle Security with Travis to automatically trigger penetration tests as part of your CI pipeline.
Step 1: Add Beagle Security support in Travis
In your .travis.yml file, set the language to generic.
language: generic
Step 2: Add the Beagle Security test trigger script
Include the following snippet under the script section of your .travis.yml file.
script: curl --silent -L https://git.io/fjXpA | bash -s
Step 3: Configure environment variables in Travis
You'll need to create two encrypted environment variables in your Travis CI project settings to authenticate with Beagle Security.
- Log in to the Travis CI dashboard.
- Select your repository.
- Go to Settings.
- Scroll to Environment Variables.
- Add the following variables:
- ACCESS_TOKEN -> your Beagle Security access token
- APPLICATION_TOKEN -> your Beagle Security application token
- Turn off the “Display value in build log” option for both variables.