Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-11-17 14:33:21 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-11-17 14:33:21 +0300
commit7021455bd1ed7b125c55eb1b33c5a01f2bc55ee0 (patch)
tree5bdc2229f5198d516781f8d24eace62fc7e589e9 /.gitlab/ci/review-apps/dast-api.gitlab-ci.yml
parent185b095e93520f96e9cfc31d9c3e69b498cdab7c (diff)
Add latest changes from gitlab-org/gitlab@15-6-stable-eev15.6.0-rc42
Diffstat (limited to '.gitlab/ci/review-apps/dast-api.gitlab-ci.yml')
-rw-r--r--.gitlab/ci/review-apps/dast-api.gitlab-ci.yml29
1 files changed, 25 insertions, 4 deletions
diff --git a/.gitlab/ci/review-apps/dast-api.gitlab-ci.yml b/.gitlab/ci/review-apps/dast-api.gitlab-ci.yml
index e2f32f120af..4d35a282037 100644
--- a/.gitlab/ci/review-apps/dast-api.gitlab-ci.yml
+++ b/.gitlab/ci/review-apps/dast-api.gitlab-ci.yml
@@ -2,13 +2,34 @@ include:
- template: DAST-API.gitlab-ci.yml
dast_api:
+ needs: ["review-deploy"]
+ # Uncomment resource_group if DAST_API_PROFILE is changed to an active scan
+ # resource_group: dast_api_scan
+ rules:
+ - when: never
+
+dast_api_graphql:
+ extends: dast_api
variables:
- DAST_API_PROFILE: Passive
DAST_API_GRAPHQL: /api/graphql
+ DAST_API_PROFILE: Passive
+ DAST_API_TARGET_URL: ${CI_ENVIRONMENT_URL}
+ DAST_API_OVERRIDES_ENV: "{\"headers\":{\"Authorization\":\"Bearer $REVIEW_APPS_ROOT_TOKEN\"}}"
+ rules:
+ - !reference [".reports:rules:schedule-dast", rules]
+ #
+ # To run this job in an MR pipeline, use this rule:
+ # - !reference [".reports:rules:test-dast", rules]
+
+dast_api_rest:
+ extends: dast_api
+ variables:
+ DAST_API_OPENAPI: doc/api/openapi/openapi_v2.yaml
+ DAST_API_PROFILE: Passive
DAST_API_TARGET_URL: ${CI_ENVIRONMENT_URL}
DAST_API_OVERRIDES_ENV: "{\"headers\":{\"Authorization\":\"Bearer $REVIEW_APPS_ROOT_TOKEN\"}}"
- needs: ["review-deploy"]
- # Uncomment resource_group if DAST_API_PROFILE is changed to an active scan
- # resource_group: dast_api_scan
rules:
- !reference [".reports:rules:schedule-dast", rules]
+ #
+ # To run this job in an MR pipeline, use this rule:
+ # - !reference [".reports:rules:test-dast", rules]