refactor: removed unused code
docs: added answer for Q3.4 Signed-off-by: Klagarge <remi@heredero.ch>
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
variables:
|
||||
DOCKER_IMAGE_TEST: registry.forge.hefr.ch/klagarge/mse2425-grp09/python-pdm:latest
|
||||
DOCKER_IMAGE_APP: registry.forge.hefr.ch/klagarge/mse2425-grp09/devsecops-app:latest
|
||||
APP_PORT: 5000
|
||||
TARGET_URL: "http://app:${APP_PORT}"
|
||||
|
||||
default:
|
||||
image: $DOCKER_IMAGE_TEST
|
||||
@@ -88,18 +86,8 @@ docker-build-app:
|
||||
|
||||
include:
|
||||
- template: Jobs/SAST.gitlab-ci.yml
|
||||
# - template: DAST.gitlab-ci.yml
|
||||
|
||||
#dast-ci:
|
||||
# stage: dast
|
||||
# dast_configuration:
|
||||
# site_profile: "dast-site-profile-devsecops-mse"
|
||||
# scanner_profile: "dast-scanner-profile-devsecops-mse"
|
||||
#services:
|
||||
# - name: $DOCKER_IMAGE_APP
|
||||
# alias: app
|
||||
|
||||
dast-local:
|
||||
dast:
|
||||
stage: dast
|
||||
image: ghcr.io/zaproxy/zaproxy:stable
|
||||
services:
|
||||
@@ -108,5 +96,4 @@ dast-local:
|
||||
script:
|
||||
- echo "Waiting for the app to start on http://app:5000"
|
||||
- timeout 60 bash -c 'until curl -s http://app:5000; do echo "Waiting..."; sleep 3; done'
|
||||
- zap-full-scan.py -t http://app:5000 -I
|
||||
allow_failure: true # Allow failure for DAST job (because GitLab is not well configured and network didn't work)
|
||||
- zap-full-scan.py -t http://app:5000 -I
|
Reference in New Issue
Block a user