-
Notifications
You must be signed in to change notification settings - Fork 27
/
buildspec.yaml
27 lines (24 loc) · 1.61 KB
/
buildspec.yaml
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
version: 0.2
phases:
install:
commands:
#- sudo apt-get update
#- sudo curl -fsSL https://get.docker.com -o get-docker.sh # to download docker if needed
#- sudo sh get-docker.sh
#- sudo service --status-all # to see if docker is running, it should be
- sudo chmod a+rw -R ./
- docker pull checkmarx/dast:latest #pull the latest docker dast image
build:
commands:
#- pwd
#- uname -a
#- ls
#- whoami
#- cat gin_juice.yaml
#- chmod 777 gin_juice.yaml
- docker run -e CX_APIKEY=eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICIwNzExMDZkNS0xM2FlLTRlYTgtYTcwOC1kYTUwZmQ3ZTRlNWIifQ.eyJpYXQiOjE3MDU0MjM1NDUsImp0aSI6IjRiNGNlN2RmLTFhOTYtNDFjNy1iZjUwLTQyYTZiNjFhYTk3ZSIsImlzcyI6Imh0dHBzOi8vaWFtLmNoZWNrbWFyeC5uZXQvYXV0aC9yZWFsbXMvY3hfYXN0X3NlX2FsbGVuZ2F5X2RlbW9fbmEiLCJhdWQiOiJodHRwczovL2lhbS5jaGVja21hcngubmV0L2F1dGgvcmVhbG1zL2N4X2FzdF9zZV9hbGxlbmdheV9kZW1vX25hIiwic3ViIjoiZWEzNzBmNzYtZDVhMS00MTI0LWIxZjEtYmRjMjBiNmYzZDViIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6ImFzdC1hcHAiLCJzZXNzaW9uX3N0YXRlIjoiMWU0ZTE5ZTAtYzQ1NS00ZTE5LTk0M2MtYWQ1YTM1NWEzYTVkIiwic2NvcGUiOiIgb2ZmbGluZV9hY2Nlc3MiLCJzaWQiOiIxZTRlMTllMC1jNDU1LTRlMTktOTQzYy1hZDVhMzU1YTNhNWQifQ.1cn9s9lqhC3kMpFLSuVPMU6Pv-baIH2UBlkx1qVh0EI -v $(pwd):/dast_home checkmarx/dast:latest web --environment-id='e64ac486-f2e3-486e-8757-fece216af179' --config='/dast_home/gin_juice.yaml' --base-url=https://ast.checkmarx.net --output='/tmp' --jvm-properties=-Xmx3G --log-level=trace --verbose --retry=3 --retry-delay=20
artifacts:
files:
- '**/*'
# - 'Gin_juice.yaml'
- '/dast_home/DAST_results/dast_scan_output'