diff --git a/0001-Add-suse-sles-15.2-to-the-EOL-list-as-well.patch b/0001-Add-suse-sles-15.2-to-the-EOL-list-as-well.patch new file mode 100644 index 0000000..6168e1f --- /dev/null +++ b/0001-Add-suse-sles-15.2-to-the-EOL-list-as-well.patch @@ -0,0 +1,36 @@ +From 80efb57cace38e4002b4020a786f988d9e03630d Mon Sep 17 00:00:00 2001 +From: Dirk Mueller +Date: Fri, 30 Oct 2020 15:46:27 +0100 +Subject: [PATCH] Add suse sles 15.2 to the EOL list as well + +without that you get this arning: + WARN This OS version is not on the EOL list: suse linux enterprise server 15.2 + +which is actually misleading because 15.2 is the most current release, +we just don't know when it ends. we can however assume that it runs +for at least another year. + +Signed-off-by: Dirk Mueller +Signed-off-by: Dirk Mueller +--- + pkg/detector/ospkg/suse/suse.go | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/pkg/detector/ospkg/suse/suse.go b/pkg/detector/ospkg/suse/suse.go +index 114eb40..6216840 100644 +--- a/pkg/detector/ospkg/suse/suse.go ++++ b/pkg/detector/ospkg/suse/suse.go +@@ -39,7 +39,9 @@ var ( + "15": time.Date(2019, 12, 31, 23, 59, 59, 0, time.UTC), + "15.1": time.Date(2021, 1, 31, 23, 59, 59, 0, time.UTC), + // 6 months after SLES 15 SP3 release +- // "15.2": time.Date(2028, 7, 31, 23, 59, 59, 0, time.UTC), ++ "15.2": time.Date(2021, 10, 31, 23, 59, 59, 0, time.UTC), ++ // 6 months after SLES 15 SP4 release ++ // "15.3": time.Date(2028, 7, 31, 23, 59, 59, 0, time.UTC), + } + + opensuseEolDates = map[string]time.Time{ +-- +2.29.0 + diff --git a/trivy.changes b/trivy.changes index 24412b8..4191f73 100644 --- a/trivy.changes +++ b/trivy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Oct 30 14:52:37 UTC 2020 - Dirk Mueller + +- add 0001-Add-suse-sles-15.2-to-the-EOL-list-as-well.patch + ------------------------------------------------------------------- Wed Oct 28 12:47:30 UTC 2020 - Dirk Mueller diff --git a/trivy.spec b/trivy.spec index 902dae3..88da20f 100644 --- a/trivy.spec +++ b/trivy.spec @@ -27,6 +27,7 @@ Group: System/Management URL: https://github.com/aquasecurity/trivy Source: %{name}-%{version}.tar.gz Source1: vendor.tar.gz +Patch1: 0001-Add-suse-sles-15.2-to-the-EOL-list-as-well.patch BuildRequires: golang-packaging BuildRequires: golang(API) >= 1.15 Requires: ca-certificates