Welcome to mirror list, hosted at ThFree Co, Russian Federation.

report.rb « sbom « reports « ci « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4f84d12f78cf1e0527f9b27eb0a5aa73c4332d6b (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
25
26
27
28
29
30
31
32
33
34
# frozen_string_literal: true

module Gitlab
  module Ci
    module Reports
      module Sbom
        class Report
          attr_reader :components, :source, :errors

          def initialize
            @components = []
            @errors = []
          end

          def add_error(error)
            errors << error
          end

          def set_source(source)
            self.source = source
          end

          def add_component(component)
            components << component
          end

          private

          attr_writer :source
        end
      end
    end
  end
end