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
c25b0c70
Commit
c25b0c70
authored
Jun 18, 2020
by
Krasimir Angelov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make ci_secrets_syntax flag disabled by default
and extract check in Gitlab::Ci::Features.
parent
96c1e65a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletion
+20
-1
ee/lib/ee/gitlab/ci/config/entry/job.rb
ee/lib/ee/gitlab/ci/config/entry/job.rb
+1
-1
ee/lib/ee/gitlab/ci/features.rb
ee/lib/ee/gitlab/ci/features.rb
+17
-0
lib/gitlab/ci/features.rb
lib/gitlab/ci/features.rb
+2
-0
No files found.
ee/lib/ee/gitlab/ci/config/entry/job.rb
View file @
c25b0c70
...
...
@@ -27,7 +27,7 @@ module EE
end
def
secrets_enabled?
::
Feature
.
enabled?
(
:ci_secrets_syntax
,
default_enabled:
true
)
::
Gitlab
::
Ci
::
Features
.
secrets_syntax_enabled?
end
end
end
...
...
ee/lib/ee/gitlab/ci/features.rb
0 → 100644
View file @
c25b0c70
# frozen_string_literal: true
module
EE
module
Gitlab
module
Ci
module
Features
extend
ActiveSupport
::
Concern
prepended
do
def
self
.
secrets_syntax_enabled?
::
Feature
.
enabled?
(
:ci_secrets_syntax
)
end
end
end
end
end
end
lib/gitlab/ci/features.rb
View file @
c25b0c70
...
...
@@ -44,3 +44,5 @@ module Gitlab
end
end
end
::
Gitlab
::
Ci
::
Features
.
prepend_if_ee
(
'::EE::Gitlab::Ci::Features'
)
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