Skip to content

Commit cbf3d75

Browse files
authored
Modified github_advisory_sync.rb's new_data variable to add patched_versions and related's url (#570)
1 parent be7eb3c commit cbf3d75

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/github_advisory_sync.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,10 @@ def create(package)
350350
Dir.mkdir dir_to_write unless Dir.exist?(dir_to_write)
351351
File.open(filename_to_write, "w") do |file|
352352
# create an automatically generated advisory yaml file
353-
file.write new_data.to_yaml
353+
file.write new_data.merge(
354+
{ "patched_versions" => vulnerabilities,
355+
"related" => { "url" => advisory["references"] }
356+
} ).to_yaml
354357

355358
# The data we just wrote is incomplete,
356359
# and therefore should not be committed as is

0 commit comments

Comments
 (0)