forked from WebGoat/WebGoat
-
Notifications
You must be signed in to change notification settings - Fork 2
/
buildspec.yml
57 lines (56 loc) · 1.8 KB
/
buildspec.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: 0.2
env:
variables:
CX_FLOW_BUG_TRACKER: "None"
CX_FLOW_BUG_TRACKER_IMPL: ${CX_FLOW_BUG_TRACKER}
CX_FLOW_EXE: "java -jar /app/cx-flow.jar"
CHECKMARX_VERSION: "9.0"
CHECKMARX_SETTINGS_OVERRIDE: "false"
CHECKMARX_EXCLUDE_FILES: ""
CHECKMARX_EXCLUDE_FOLDERS: ""
CHECKMARX_CONFIGURATION: "Default Configuration"
CHECKMARX_SCAN_PRESET: "Checkmarx Default"
CX_FLOW_FILTER_SEVERITY: "High"
CX_FLOW_FILTER_CATEGORY: ""
CX_FLOW_FILTER_CWE: ""
CX_FLOW_FILTER_STATUS: ""
CX_FLOW_FILTER_STATE: ""
CX_FLOW_ENABLED_VULNERABILITY_SCANNERS: sast
CX_TEAM: "/CxServer/"
CX_FLOW_BREAK_BUILD: "false"
SCA_FILTER_SEVERITY: ""
SCA_FILTER_SCORE: ""
SCA_THRESHOLDS_SCORE: ""
SCA_TEAM: ""
PARAMS: ""
phases:
pre_build:
commands:
- echo processing pre_build phase...
- export CX_REPO_NAME=$(basename "$CODEBUILD_SOURCE_REPO_URL" .git)
- export CX_REPO_BRANCH=$(basename "$CODEBUILD_WEBHOOK_HEAD_REF")
- |
if expr "${CX_REPO_BRANCH}"; then
export CX_PROJECT=$(echo "$CODEBUILD_BUILD_ID" | cut -f1 -d:)-${CX_REPO_BRANCH}
else
export CX_PROJECT=$(echo "$CODEBUILD_BUILD_ID" | cut -f1 -d:)
fi
- |
${CX_FLOW_EXE} \
--scan \
--app="${CX_REPO_NAME}" \
--namespace="${CX_REPO_NAME}" \
--repo-name="${CX_REPO_NAME}" \
--repo-url="${CI_REPOSITORY_URL}" \
--cx-team="${CX_TEAM}" \
--cx-project="${CX_PROJECT}" \
--branch="${CX_REPO_BRANCH}" \
--spring.profiles.active="${CX_FLOW_ENABLED_VULNERABILITY_SCANNERS}" \
--f=.
${PARAMS}
build:
commands:
- echo Build started on `date`
post_build:
commands:
- echo Build completed on `date`