Commit 815483b3 authored by Shinya Maeda's avatar Shinya Maeda

Remove trigger_request.trigger.owner

parent 84ab8a71
...@@ -15,7 +15,7 @@ module Ci ...@@ -15,7 +15,7 @@ module Ci
pipeline_schedule: schedule pipeline_schedule: schedule
) )
result = validate(current_user || trigger_request.trigger.owner, result = validate(current_user,
ignore_skip_ci: ignore_skip_ci, ignore_skip_ci: ignore_skip_ci,
save_on_errors: save_on_errors) save_on_errors: save_on_errors)
......
...@@ -84,7 +84,6 @@ describe API::Triggers do ...@@ -84,7 +84,6 @@ describe API::Triggers do
expect(pipeline.variables.map { |v| { v.key => v.value } }.last).to eq(variables) expect(pipeline.variables.map { |v| { v.key => v.value } }.last).to eq(variables)
end end
end end
end
context 'when legacy trigger' do context 'when legacy trigger' do
before do before do
...@@ -101,6 +100,7 @@ describe API::Triggers do ...@@ -101,6 +100,7 @@ describe API::Triggers do
expect(pipeline.builds.size).to eq(5) expect(pipeline.builds.size).to eq(5)
end end
end end
end
context 'when triggering a pipeline from a trigger token' do context 'when triggering a pipeline from a trigger token' do
it 'does not leak the presence of project when token is for different project' do it 'does not leak the presence of project when token is for different project' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment