summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-03-24 20:12:38 +0200
committerValery Sizov <vsv2711@gmail.com>2015-03-25 13:20:40 +0200
commit32536c73f42c80db9bf3596d01191db3706b1044 (patch)
tree0c203d81295b5253e9fe9a67e8804b9083fcdc2b /lib/api
parent1a150e144087cdd2d936823401a6d24baa31ad86 (diff)
downloadgitlab-ci-32536c73f42c80db9bf3596d01191db3706b1044.tar.gz
Security fix: added is_shared parameter
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/runners.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/api/runners.rb b/lib/api/runners.rb
index 34cf041..0ec4871 100644
--- a/lib/api/runners.rb
+++ b/lib/api/runners.rb
@@ -47,7 +47,8 @@ module API
# Create shared runner. Requires admin access
Runner.create(
description: params[:description],
- tag_list: params[:tag_list]
+ tag_list: params[:tag_list],
+ is_shared: true
)
elsif project = Project.find_by(token: params[:token])
# Create a specific runner for project.