Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
769061d4
Commit
769061d4
authored
Jun 14, 2021
by
Marcel Amirault
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Merge branch 'secure-templates-mr-pipelines-2' into 'master'"
This reverts merge request !61672
parent
9c4698dc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
32 deletions
+4
-32
ee/spec/lib/gitlab/ci/templates/dast_latest_gitlab_ci_yaml_spec.rb
...ib/gitlab/ci/templates/dast_latest_gitlab_ci_yaml_spec.rb
+0
-25
lib/gitlab/ci/templates/Security/DAST.latest.gitlab-ci.yml
lib/gitlab/ci/templates/Security/DAST.latest.gitlab-ci.yml
+4
-7
No files found.
ee/spec/lib/gitlab/ci/templates/dast_latest_gitlab_ci_yaml_spec.rb
View file @
769061d4
...
...
@@ -84,31 +84,6 @@ RSpec.describe 'DAST.latest.gitlab-ci.yml' do
context
'when no specification provided'
do
include_examples
'includes dast job'
end
context
'when pipeline is a merge request pipeline'
do
before
do
create
(
:ci_variable
,
project:
project
,
key:
'CI_MERGE_REQUEST_IID'
,
value:
'1'
)
end
include_examples
'includes dast job'
end
context
'when pipeline is a branch pipeline with no merge request'
do
before
do
create
(
:ci_variable
,
project:
project
,
key:
'CI_COMMIT_BRANCH'
,
value:
'feature-branch'
)
end
include_examples
'includes dast job'
end
context
'when pipeline is a branch pipeline with a merge request'
do
before
do
create
(
:ci_variable
,
project:
project
,
key:
'CI_COMMIT_BRANCH'
,
value:
'feature-branch'
)
create
(
:ci_variable
,
project:
project
,
key:
'CI_OPEN_MERGE_REQUESTS'
,
value:
'true'
)
end
include_examples
'includes no jobs'
end
end
end
...
...
lib/gitlab/ci/templates/Security/DAST.latest.gitlab-ci.yml
View file @
769061d4
...
...
@@ -46,13 +46,10 @@ dast:
$REVIEW_DISABLED && $DAST_WEBSITE ==
null
&&
$DAST_API_SPECIFICATION ==
null
when
:
never
-
if
:
$CI_MERGE_REQUEST_IID &&
$CI_KUBERNETES_ACTIVE &&
$GITLAB_FEATURES =~ /\bdast\b/
-
if
:
$CI_MERGE_REQUEST_IID && ($DAST_WEBSITE || $DAST_API_SPECIFICATION)
-
if
:
$CI_OPEN_MERGE_REQUESTS
when
:
never
-
if
:
$CI_COMMIT_BRANCH &&
$CI_KUBERNETES_ACTIVE &&
$GITLAB_FEATURES =~ /\bdast\b/
-
if
:
$CI_COMMIT_BRANCH && ($DAST_WEBSITE || $DAST_API_SPECIFICATION)
-
if
:
$CI_COMMIT_BRANCH &&
$DAST_WEBSITE
-
if
:
$CI_COMMIT_BRANCH &&
$DAST_API_SPECIFICATION
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment