class Danger::Buddybuild

### CI Setup

Read how you can setup Danger on the buddybuild blog: www.buddybuild.com/blog/using-danger-with-buddybuild/

### Token Setup

Login to buddybuild and select your app. Go to your *App Settings* and in the *Build Settings* menu on the left, choose *Environment Variables*. docs.buddybuild.com/docs/environment-variables

#### GitHub Add the ‘DANGER_GITHUB_API_TOKEN` to your build user’s ENV.

#### GitLab Add the ‘DANGER_GITLAB_API_TOKEN` to your build user’s ENV.

#### Bitbucket Cloud Add the ‘DANGER_BITBUCKETSERVER_USERNAME`, `DANGER_BITBUCKETSERVER_PASSWORD` to your build user’s ENV.

#### Bitbucket server Add the ‘DANGER_BITBUCKETSERVER_USERNAME`, `DANGER_BITBUCKETSERVER_PASSWORD` and `DANGER_BITBUCKETSERVER_HOST` to your build user’s ENV.

### Running Danger

Once the environment variables are all available, create a custom build step to run Danger as part of your build process: docs.buddybuild.com/docs/custom-prebuild-and-postbuild-steps