Skip to content

Commit f6ca4e4

Browse files
committed
Correct the generation of related URLs so it matches the expected format
1 parent ceb1564 commit f6ca4e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/github_advisory_sync.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ def create(package)
414414

415415
# populate the related information
416416
new_data["related"] = {
417-
"url" => advisory["references"]
417+
"url" => advisory["references"].map { |reference| reference['url'] }.reject(&:empty?)
418418
}
419419

420420
FileUtils.mkdir_p(File.dirname(filename_to_write))

0 commit comments

Comments
 (0)