Azure DevOps Integration¶
Quick Start¶
Add the following configuration to your Azure Pipeline YAML:
trigger:
branches:
include:
- staging
pool:
vmImage: 'ubuntu-latest'
jobs:
- job: EscapeScan
displayName: 'Escape Scan'
dependsOn: deploy # name of your deployment job
variables:
ESCAPE_APPLICATION_ID: $(EscapeAppId) # Define these in the Azure DevOps Pipeline environment variables or in a variable group.
ESCAPE_API_KEY: $(EscapeApiKey)
steps:
- script: |
npm install -g @escape.tech/action
npm show @escape.tech/action version
escape-action
displayName: 'Run Escape Action'
env:
ESCAPE_APPLICATION_ID: $(EscapeAppId)
ESCAPE_API_KEY: $(EscapeApiKey)
continueOnError: true
Configuration Options¶
Environment Variables¶
ESCAPE_APPLICATION_ID
: Your Escape application identifier (stored in Azure variables)ESCAPE_API_KEY
: Your Escape API key (stored in Azure variables)
Pipeline Settings¶
trigger
: Define branch-based triggerspool
: Specify build agent requirementsdependsOn
: Configure job dependenciescontinueOnError
: Control failure behavior
Failure behavior¶
The Escape CLI will: - Exit with code 1 if high-severity issues are found - Can be configured to fail on different severity levels
Available variables and options¶
See CLI documentation for complete configuration options.