Skip to content
This repository was archived by the owner on May 12, 2018. It is now read-only.

Commit e09b4ae

Browse files
committed
Dont expose controller information or other data through build creation
Signed-off-by: Dmitriy Zaporozhets <[email protected]>
1 parent d0f59cd commit e09b4ae

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

app/services/create_build_service.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,15 @@ def execute(project, params)
1212
ref: ref,
1313
sha: sha,
1414
before_sha: before_sha,
15-
push_data: params
15+
push_data: {
16+
before: before_sha,
17+
after: sha,
18+
ref: ref,
19+
user_name: params[:user_name],
20+
repository: params[:repository],
21+
commits: params[:commits],
22+
total_commits_count: params[:total_commits_count]
23+
}
1624
}
1725

1826
project.builds.create(data)

0 commit comments

Comments
 (0)