Skip to content

Commit b2f4ef7

Browse files
committed
Updated the package filename to correct two packages that have been renamed in the past
1 parent f6ca4e4 commit b2f4ef7

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

lib/github_advisory_sync.rb

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,18 @@ def updating?
196196
end
197197

198198
def filename
199-
File.join("gems", name, "#{@advisory.primary_id}.yml")
199+
# These packages appear to have been named differently in the past
200+
# This 'corrects' them so updates don't affect existing vulnerabilities
201+
package_name = case name
202+
when "arabic-prawn"
203+
"Arabic-Prawn"
204+
when "redcloth"
205+
"RedCloth"
206+
else
207+
name
208+
end
209+
210+
File.join("gems", package_name, "#{@advisory.primary_id}.yml")
200211
end
201212

202213
def framework

0 commit comments

Comments
 (0)