Harness CI Integration¶
Add the following step to your Harness pipeline configuration:
Set ESCAPE_APPLICATION_ID and ESCAPE_API_KEY as secrets in your Harness project.
pipeline:
stages:
- stage:
name: Security Scan
identifier: security_scan
type: CI
spec:
cloneCodebase: false
infrastructure:
type: KubernetesDirect
spec:
connectorRef: <your_connector>
namespace: <your_namespace>
execution:
steps:
- step:
type: Run
name: Escape Scan
identifier: escape_scan
spec:
connectorRef: account.harnessImage
image: alpine/curl:8.12.1
shell: Sh
command: |
curl -sf https://raw.githubusercontent.com/Escape-Technologies/cli/refs/heads/main/scripts/install.sh | sh
escape-cli version
escape-cli scan start ${ESCAPE_APPLICATION_ID} --watch
envVariables:
ESCAPE_APPLICATION_ID: <+secrets.getValue("ESCAPE_APPLICATION_ID")>
ESCAPE_API_KEY: <+secrets.getValue("ESCAPE_API_KEY")>