Add latest changes from gitlab-org/security/gitlab@17-0-stable-ee

This commit is contained in:
GitLab Bot
2024-05-21 19:45:31 +00:00
parent decbf6d9c7
commit 52cbeb10de
42 changed files with 3112 additions and 9 deletions

View File

@ -250,7 +250,9 @@ module API
get ':id/pipelines/:pipeline_id/test_report', feature_category: :code_testing, urgency: :low do
authorize! :read_build, pipeline
present pipeline.test_reports, with: TestReportEntity, details: true
cache_action_if(pipeline.has_test_reports?, [user_project, pipeline], expires_in: 2.minutes) do
present pipeline.test_reports, with: TestReportEntity, details: true
end
end
desc 'Gets the test report summary for a given pipeline' do