debian-mirror-gitlab/app/services/security/vulnerability_uuid.rb
2021-04-17 20:07:23 +05:30

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