Harness
Last updated
pipeline:
name: harness_pipeline
identifier: harness_pipeline
projectIdentifier: default_project
orgIdentifier: default
tags: {}
properties:
ci:
codebase:
connectorRef: antonychiu2
repoName: webgoat
build: <+input>
stages:
- stage:
name: Checkmarx Scan and Fix
identifier: Checkmarx
description: ""
type: CI
spec:
cloneCodebase: true
caching:
enabled: true
override: true
paths: []
platform:
os: Linux
arch: Amd64
runtime:
type: Cloud
spec: {}
execution:
steps:
- step:
type: CheckmarxOne
name: CheckmarxOne_1
identifier: CheckmarxOne_1
spec:
mode: orchestration
config: default
target:
type: repository
detection: auto
advanced:
log:
level: info
fail_on_severity: none
args:
cli: "--output-path ."
auth:
access_token: <+secrets.getValue("org.cx-token")>
type: apiKey
tool:
project_name: Webgoat
- step:
type: Run
name: Mobb Autofixer
identifier: Mobb_Autofixer
spec:
connectorRef: account.harnessImage
image: node:20
shell: Sh
command: |-
echo "Running Mobb with SAST report..."
npx mobbdev@latest analyze \
-f cx_result.json \
-r "$CI_REPO_REMOTE" \
--ref "$CI_COMMIT_BRANCH" \
--api-key <+secrets.getValue("org.mobb-api-token")> \
--ci
when:
stageStatus: All
sharedPaths:
- /shared
buildIntelligence:
enabled: false