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

vulnerability_uuid.rb « security « services « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3eab0f3dad6fc3e73772746da8bbbd25d487fb25 (plain)
1
2
3
4
5
6
7
8
9
# 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