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.
To connect Bridgecrew Cloud to CircleCI:
- Under Continuous Integration, press CircleCI and then Add Subscription.
- Add the following name-value pair to your CircleCI Environment Variables:
Value: [your_API_key] (see Get API Token)
- 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
- Press Done.
Updated 2 months ago