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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/ci/reports/sbom/source.rb')
-rw-r--r--lib/gitlab/ci/reports/sbom/source.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/gitlab/ci/reports/sbom/source.rb b/lib/gitlab/ci/reports/sbom/source.rb
new file mode 100644
index 00000000000..60bf30b65a5
--- /dev/null
+++ b/lib/gitlab/ci/reports/sbom/source.rb
@@ -0,0 +1,19 @@
+# frozen_string_literal: true
+
+module Gitlab
+ module Ci
+ module Reports
+ module Sbom
+ class Source
+ attr_reader :source_type, :data, :fingerprint
+
+ def initialize(source = {})
+ @source_type = source['type']
+ @data = source['data']
+ @fingerprint = source['fingerprint']
+ end
+ end
+ end
+ end
+ end
+end