Integrate with CircleCI

Overview

Integrating Bridgecrew with CircleCI makes it possible for Bridgecrew to scan your Infrastructure-as-code files (Terraform and CloudFormation), display Incidents on the Console and, optionally, cause a build to fail.

How To

To connect Bridgecrew Cloud to CircleCI:

  1. Under Continuous Integration, press CircleCI and then Add Subscription.
  1. Add the following name-value pair to your CircleCI Environment Variables:
    Name: BC_API_KEY
    Value: [your_API_key] (see Get API Token)
  1. Update your .circleci/config.yaml file based on the example below.
version: 2.1
orbs:
    bridgecrew: bridgecrew/[email protected]
jobs:
    build:
      executor: bridgecrew/default
      steps:
        - checkout
        - bridgecrew/scan:
            directory: ‘.’
            api-key-variable: BC_API_KEY
  1. Press Done.

Updated 9 days ago


What's Next

Get API Token

Integrate with CircleCI


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.