Beagle Security Plugin for Travis-CI

This plugin can be used to trigger beagle penetration testing from Travis-CI

Prerequisites

  • Obtain Application Token and User Token from Beagle Dashboard
  • Add the environment variables "USER_TOKEN" and "APPLICATION_TOKEN" to Travis CI.

Generate your User Token From Beagle User Settings:

Settings -> Access token -> Generate your new personal access token

Generate user token

Generate your Application Token From Beagle

Home -> Applications -> Select your application -> Settings -> Application token

Get application token

What is Beagle?

Beagle is an intelligent and holistic platform to make your applications hack-proof. The platform provides continuous and automated Penetration Testing (under human supervision) for organizations, so that they can always stay on top of the cyber threats.

In short, Beagle finds out how deep your system can be penetrated. Know it before the hackers do!

Deployment

Add generic to the language section of your .travis.yml file

language: generic

Add the snippet to script section of your .travis.yml file

script:
 curl --silent -L https://git.io/fjXpA | bash -s

Creating Environment Variables

In-order to trigger beagle penetration testing you need to create two encrypted variables in Travis environment.

Follow the steps ->
  1. Login to Travis Dashboard
  2. Select your repo
  3. Go to repo settings Step 1
  4. Navigate to Environment Variables
  5. Add tokens, make sure you use environment variable names as follows:
    • For user token -> user_token
    • For application token -> application_token Step 2
    • Final View Step 3
  6. Also make sure that "Display value in build log" is off
  7. Build the project!

Authors

  • Beagle Security

License

This project is licensed under the MIT License - see the LICENSE.md file for details