blob: a8bb21960436040cedeb5d4ca311a634f459005f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# 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
|