We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
github_advisory_sync.rb
patched_versions
related
url
1 parent be7eb3c commit cbf3d75Copy full SHA for cbf3d75
lib/github_advisory_sync.rb
@@ -350,7 +350,10 @@ def create(package)
350
Dir.mkdir dir_to_write unless Dir.exist?(dir_to_write)
351
File.open(filename_to_write, "w") do |file|
352
# create an automatically generated advisory yaml file
353
- file.write new_data.to_yaml
+ file.write new_data.merge(
354
+ { "patched_versions" => vulnerabilities,
355
+ "related" => { "url" => advisory["references"] }
356
+ } ).to_yaml
357
358
# The data we just wrote is incomplete,
359
# and therefore should not be committed as is
0 commit comments