Failed DAST check with Auto DevOps template
When running a DAST job from Auto DevOps latest template, I got this error:
$ /zap/zap-baseline.py -J gl-dast-report.json -t http://$CI_PROJECT_PATH_SLUG-$CI_ENVIRONMENT_SLUG.$AUTO_DEVOPS_DOMAIN || true
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
Jan 11, 2018 5:41:11 PM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
2018-01-11 17:41:18,501 I/O error(5): ZAP failed to access: http://bikebilly-auto-devops-10-4-.i2p.online
Traceback (most recent call last):
File "/zap/zap-baseline.py", line 305, in main
zap_access_target(zap, target)
File "/zap/zap_common.py", line 276, in zap_access_target
raise IOError(errno.EIO, 'ZAP failed to access: {0}'.format(target))
IOError: [Errno 5] ZAP failed to access: http://bikebilly-auto-devops-10-4-.i2p.online
ERROR ZAP failed to access: http://bikebilly-auto-devops-10-4-.i2p.online
It seems it tries to access http://bikebilly-auto-devops-10-4-.i2p.online
, but the review app url is http://bikebilly-auto-devops-10-4-review-test-branc-8go4ia.i2p.online/
, so it is missing the $CI_ENVIRONMENT_SLUG
value.