CircleCI Integration¶
Add the following configuration to your .circleci/config.yml
:
version: 2.1
jobs:
deploy:
docker:
- image: alpine/curl:8.12.1
steps:
- checkout
# Your deployment steps here
escape_scan:
docker:
- image: alpine/curl:8.12.1
steps:
- checkout
- run:
name: Install Escape CLI
command: curl -sf https://raw.githubusercontent.com/Escape-Technologies/cli/refs/heads/main/scripts/install.sh | sh
- run:
name: Run Escape Scan
command: escape-cli scan start ${ESCAPE_APPLICATION_ID} --watch
environment:
ESCAPE_APPLICATION_ID: $ESCAPE_APPLICATION_ID
ESCAPE_API_KEY: $ESCAPE_API_KEY
workflows:
version: 2
deploy_and_scan:
jobs:
- deploy
- escape_scan:
requires:
- deploy
filters:
branches:
only: staging