lib/codesake/dawn/kb/dependency_check.rb in codesake-dawn-1.0.0.rc2 vs lib/codesake/dawn/kb/dependency_check.rb in codesake-dawn-1.0.0
- old
+ new
@@ -24,9 +24,13 @@
@dependencies.each do |dep|
# don't care about gem version when it mitigates a vulnerability... this can be risky, maybe I would reconsider in the future.
@mitigated = true if dep[:name] == @aux_mitigation_gem[:name] unless @aux_mitigation_gem.nil?
@safe_dependencies.each do |safe_dep|
+ if safe_dep[:name] == "rails"
+ debug_me "Forcing save_minor_fixes flag for rails gem dependency check"
+ self.save_minor_fixes = true
+ end
if @ruby_vulnerable_versions.empty?
if dep[:name] == safe_dep[:name] && is_vulnerable_version?(dep[:version], safe_dep[:version])
ret = true
message = "Vulnerable #{dep[:name]} gem version found: #{dep[:version]}"
end