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
432d24ac
Commit
432d24ac
authored
Jun 04, 2019
by
Matija Čupić
Committed by
mfluharty
Jun 06, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expose javascript regex
parent
ff3486a9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
app/helpers/ci_variables_helper.rb
app/helpers/ci_variables_helper.rb
+4
-0
doc/ci/variables/README.md
doc/ci/variables/README.md
+1
-2
No files found.
app/helpers/ci_variables_helper.rb
View file @
432d24ac
...
...
@@ -27,4 +27,8 @@ module CiVariablesHelper
%w(File file)
]
end
def
ci_variable_maskable_regex
Maskable
::
REGEX
.
inspect
.
sub
(
'\\A'
,
'^'
).
sub
(
'\\z'
,
'$'
).
sub
(
/^\//
,
''
).
sub
(
/\/[a-z]*$/
,
''
)
end
end
doc/ci/variables/README.md
View file @
432d24ac
...
...
@@ -92,10 +92,9 @@ This means that the value of the variable will be hidden in job logs,
though it must match certain requirements to do so:
-
The value must be in a single line.
-
The value must
contain only letters, numbers, or underscores
.
-
The value must
only consist of characters from the Base64 alphabet, defined in
[
RFC4648
](
https://tools.ietf.org/html/rfc4648
)
.
-
The value must be at least 8 characters long.
-
The value must not use variables.
-
The value must only consist of characters from the Base64 alphabet, defined in
[
RFC4648
](
https://tools.ietf.org/html/rfc4648
)
.
If the value does not meet the requirements above, then the CI variable will fail to save.
In order to save, either alter the value to meet the masking requirements
...
...
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