GitLab CI Integration¶
Add the following configuration to your .gitlab-ci.yml
:
Set ESCAPE_APPLICATION_ID
and ESCAPE_API_KEY
environment variables in your project CI/CD settings.
---
Escape Public API:
stage: .post
allow_failure: true
interruptible: true
image:
name: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/alpine/curl:8.12.1
entrypoint: ['']
before_script:
- |
printf "\e[0Ksection_start:`date +%s`:execution_section_0\r\e[0KInstalling escape-cli\n"
curl -sf https://raw.githubusercontent.com/Escape-Technologies/cli/refs/heads/main/scripts/install.sh | sh
escape-cli version
printf "section_end:`date +%s`:execution_section_0\r\e[0K"
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
script:
# customize the command depending on your needs
- escape-cli scan start ${ESCAPE_APPLICATION_ID} --watch