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
b7c241c6
Commit
b7c241c6
authored
Sep 08, 2016
by
Luke Bennett
Committed by
Felipe Artur
Sep 20, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added prevent committing secrets checkbox
parent
3e684d89
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
app/views/projects/push_rules/index.html.haml
app/views/projects/push_rules/index.html.haml
+2
-1
app/views/shared/_push_rules_form.html.haml
app/views/shared/_push_rules_form.html.haml
+11
-0
No files found.
app/views/projects/push_rules/index.html.haml
View file @
b7c241c6
...
...
@@ -15,4 +15,5 @@
=
form_for
[
@project
.
namespace
.
becomes
(
Namespace
),
@project
,
@push_rule
]
do
|
f
|
=
form_errors
(
@push_rule
)
=
render
"shared/push_rules_form"
,
f:
f
=
render
"shared/push_rules_form"
,
f:
f
,
prevent_committing_secrets_check:
true
app/views/shared/_push_rules_form.html.haml
View file @
b7c241c6
...
...
@@ -14,6 +14,17 @@
%p
.light.append-bottom-0
Restrict commits by author (email) to existing GitLab users
-
if
local_assigns
.
fetch
(
:prevent_committing_secrets_check
,
false
)
.form-group
=
f
.
check_box
:member_check
,
class:
"pull-left"
.prepend-left-20
=
f
.
label
:member_check
,
"Prevent committing secrets to git"
,
class:
"label-light append-bottom-0"
%p
.light.append-bottom-0
We'll reject anything that is likely to contain secrets from your commits.
The list of things we reject is available in
%a
{
href:
'/'
}
the documentation.
.form-group
=
f
.
label
:commit_message_regex
,
"Commit message"
,
class:
'label-light'
=
f
.
text_field
:commit_message_regex
,
class:
"form-control"
,
placeholder:
'Example: Fixes \d+\..*'
...
...
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