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
ca7ad14a
Commit
ca7ad14a
authored
Jul 14, 2020
by
Philip Cunningham
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Errno::ENOENT issue in RunDastScanService
parent
c20df30d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
ee/app/services/ci/run_dast_scan_service.rb
ee/app/services/ci/run_dast_scan_service.rb
+4
-2
No files found.
ee/app/services/ci/run_dast_scan_service.rb
View file @
ca7ad14a
...
...
@@ -2,10 +2,12 @@
module
Ci
class
RunDastScanService
<
BaseService
DAST_CI_TEMPLATE
=
'lib/gitlab/ci/templates/Security/DAST.gitlab-ci.yml'
.
freeze
def
self
.
ci_template_raw
@ci_template_raw
||=
Gitlab
::
Template
::
GitlabCiYmlTemplate
.
find
(
'DAST'
).
content
end
def
self
.
ci_template
@ci_template
||=
File
.
open
(
DAST_CI_TEMPLATE
,
'r'
)
{
|
f
|
YAML
.
safe_load
(
f
.
read
)
}
.
tap
do
|
template
|
@ci_template
||=
YAML
.
safe_load
(
ci_template_raw
)
.
tap
do
|
template
|
template
[
'stages'
]
=
[
'dast'
]
template
[
'dast'
].
delete
(
'rules'
)
end
...
...
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