9 lines
308 B
Ruby
9 lines
308 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Security
|
|
class VulnerabilityUUID
|
|
def self.generate(report_type:, primary_identifier_fingerprint:, location_fingerprint:, project_id:)
|
|
Gitlab::UUID.v5("#{report_type}-#{primary_identifier_fingerprint}-#{location_fingerprint}-#{project_id}")
|
|
end
|
|
end
|
|
end
|