diff --git a/app/models/sources/github.rb b/app/models/sources/github.rb index 0a46889..36ac0e4 100644 --- a/app/models/sources/github.rb +++ b/app/models/sources/github.rb @@ -31,6 +31,8 @@ def map_advisories(advisories) references: advisory[:node][:advisory][:references].map { |r| r[:url] }, source_kind: 'github', identifiers: advisory[:node][:advisory][:identifiers].map { |i|i[:value] }, + epss_percentage: advisory[:node][:advisory][:epss][:percentage], + epss_percentile: advisory[:node][:advisory][:epss][:percentile], # advisories need to be grouped by uuid and the following fields added together ecosystem: correct_ecosystem(advisory[:node][:package][:ecosystem]), @@ -104,6 +106,10 @@ def fetch_advisories_page(cursor = 'null') vectorString } classification + epss{ + percentage + percentile + } } firstPatchedVersion { identifier diff --git a/app/views/advisories/show.html.erb b/app/views/advisories/show.html.erb index 3aa3737..d2c797b 100644 --- a/app/views/advisories/show.html.erb +++ b/app/views/advisories/show.html.erb @@ -27,6 +27,11 @@ CVSS vector: <%= @advisory.cvss_vector %>

<% end %> + <% if @advisory.epss_percentage %> + EPSS Percentage: <%= @advisory.epss_percentage %>
+ EPSS Percentile: <%= @advisory.epss_percentile %>

+ <% end %> + Identifiers: <%= @advisory.identifiers.join(', ') %>
References: