-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCheckmarxCLI.gitlab-ci.yml
More file actions
33 lines (31 loc) · 868 Bytes
/
Copy pathCheckmarxCLI.gitlab-ci.yml
File metadata and controls
33 lines (31 loc) · 868 Bytes
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
#
# Include this file in your .gitlab-ci.yml file to automate & integrate Checkmarx security scans.
#
# These variables can be overridden in your .gitlab-ci.yml file or as envionrment variables.
#
variables:
BRANCH_NAME: "${CI_COMMIT_REF_NAME}"
PROJECT_NAME: "$CI_PROJECT_NAME"
CX_BASE_URI: ${CX_BASE_URI}
CX_TENANT: ${CX_TENANT}
CX_CLIENT_ID: ${CX_CLIENT_ID}
CX_CLIENT_SECRET: ${CX_CLIENT_SECRET}
ADDITIONAL_PARAMS: ""
FILE_FILTERS: ""
CHECKMARX_DOCKER_IMAGE: "ast-cli"
checkmarx-scan:
stage: test
image:
name: checkmarx/${CHECKMARX_DOCKER_IMAGE}
entrypoint: ['']
script:
- eval "args=(${ADDITIONAL_PARAMS})"
- echo "${args[@]}"
- >-
/app/bin/cx
scan create
--project-name ${PROJECT_NAME}
--file-source '.'
--branch ${BRANCH_NAME}
--agent 'Gitlab'
"${args[@]}"