gitlab-org--gitlab-foss/lib/gitlab/ci/reports/security/aggregated_report.rb

25 lines
528 B
Ruby

# frozen_string_literal: true
# Used to represent combined Security Reports. This is typically done for vulnerability deduplication purposes.
module Gitlab
module Ci
module Reports
module Security
class AggregatedReport
attr_reader :findings
def initialize(reports, findings)
@reports = reports
@findings = findings
end
def created_at
@reports.map(&:created_at).compact.min
end
end
end
end
end
end