summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-04-14 21:09:52 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-04-14 21:09:52 +0000
commitae93b284016c07a8a4b47e2510789253d14870f3 (patch)
treec7dc8690b841dd7d3a4eeeca944969d14df582a6 /lib
parentf697dc5e76dfc5894df006d53b2b7e751653cf05 (diff)
downloadgitlab-ce-ae93b284016c07a8a4b47e2510789253d14870f3.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/ci/templates/Security/DAST.gitlab-ci.yml1
-rw-r--r--lib/gitlab/path_regex.rb8
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/gitlab/ci/templates/Security/DAST.gitlab-ci.yml b/lib/gitlab/ci/templates/Security/DAST.gitlab-ci.yml
index 10ef33e71d5..0e3d7660bdf 100644
--- a/lib/gitlab/ci/templates/Security/DAST.gitlab-ci.yml
+++ b/lib/gitlab/ci/templates/Security/DAST.gitlab-ci.yml
@@ -22,6 +22,7 @@ dast:
allow_failure: true
script:
- export DAST_WEBSITE=${DAST_WEBSITE:-$(cat environment_url.txt)}
+ - if [ -z "$DAST_WEBSITE$DAST_API_SPECIFICATION" ]; then echo "Either DAST_WEBSITE or DAST_API_SPECIFICATION must be set. See https://docs.gitlab.com/ee/user/application_security/dast/#configuration for more details." && exit 1; fi
- /analyze
artifacts:
reports:
diff --git a/lib/gitlab/path_regex.rb b/lib/gitlab/path_regex.rb
index d95da262eea..706c16f6149 100644
--- a/lib/gitlab/path_regex.rb
+++ b/lib/gitlab/path_regex.rb
@@ -57,6 +57,10 @@ module Gitlab
v2
].freeze
+ # NOTE: Do not add new items to this list unless necessary as this will
+ # cause conflicts with existing namespaced routes for groups or projects.
+ # See https://docs.gitlab.com/ee/development/routing.html#project-routes
+ #
# This list should contain all words following `/*namespace_id/:project_id` in
# routes that contain a second wildcard.
#
@@ -103,6 +107,10 @@ module Gitlab
wikis
].freeze
+ # NOTE: Do not add new items to this list unless necessary as this will
+ # cause conflicts with existing namespaced routes for groups or projects.
+ # See https://docs.gitlab.com/ee/development/routing.html#group-routes
+ #
# These are all the paths that follow `/groups/*id/ or `/groups/*group_id`
# We need to reject these because we have a `/groups/*id` page that is the same
# as the `/*id`.