lib/contrast/agent/assess/policy/trigger_node.rb in contrast-agent-6.6.5 vs lib/contrast/agent/assess/policy/trigger_node.rb in contrast-agent-6.7.0
- old
+ new
@@ -1,11 +1,11 @@
# Copyright (c) 2022 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
# frozen_string_literal: true
require 'contrast/agent/assess/policy/trigger/reflected_xss'
require 'contrast/agent/assess/policy/trigger/xpath'
-require 'contrast/api/decorators/trace_taint_range_tags'
+require 'contrast/agent/reporting/reporting_events/finding_event_taint_range_tags'
require 'contrast/components/logger'
module Contrast
module Agent
module Assess
@@ -183,11 +183,11 @@
def validate_rule_tags tags
return unless tags
tags.each do |tag|
raise(ArgumentError, "Rule #{ rule_id } had an invalid tag. #{ tag } is not a known value.") unless
- Contrast::Api::Decorators::TraceTaintRangeTags::VALID_TAGS.include?(tag) ||
- Contrast::Api::Decorators::TraceTaintRangeTags::VALID_SOURCE_TAGS.include?(tag)
+ Contrast::Agent::Reporting::FindingEventTaintRangeTags::VALID_TAGS.include?(tag) ||
+ Contrast::Agent::Reporting::FindingEventTaintRangeTags::VALID_SOURCE_TAGS.include?(tag)
end
end
# Find the ranges that satisfy all of the given tags.
#