gitlab-ce/lib/gitlab/ci/templates/Security/DAST-Runner-Validation.gitl...

34 lines
1.1 KiB
YAML

# To contribute improvements to CI/CD templates, please follow the Development guide at:
# https://docs.gitlab.com/ee/development/cicd/templates.html
# This specific template is located at:
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Security/DAST-Runner-Validation.gitlab-ci.yml
# NOTE: This template is intended for internal GitLab use only and likely will not work properly
# in any other project. Do not include it in your pipeline configuration.
# For information on how to set up and use DAST, visit https://docs.gitlab.com/ee/user/application_security/dast/
stages:
- build
- test
- deploy
- dast
variables:
DAST_RUNNER_VALIDATION_VERSION: 1
validation:
stage: dast
image:
name: "$CI_TEMPLATE_REGISTRY_HOST/security-products/dast-runner-validation:$DAST_RUNNER_VALIDATION_VERSION$DAST_IMAGE_SUFFIX"
variables:
GIT_STRATEGY: none
allow_failure: false
script:
- ~/validate.sh
rules:
- if: $CI_GITLAB_FIPS_MODE == "true"
variables:
DAST_IMAGE_SUFFIX: "-fips"
- if: $CI_GITLAB_FIPS_MODE != "true"
variables:
DAST_IMAGE_SUFFIX: ""