mirror of
https://github.com/aquasecurity/trivy.git
synced 2026-12-02 01:40:33 +00:00
fix(oracle): add Oracle Linux 10 EOL date (#11601)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5c3eac0c16
commit
6cd398d59b
3 files changed
+21
-8
No files matched your search
@@ -20,7 +20,7 @@ Trivy supports operating systems for
|
||||
| [CentOS](centos.md)[^1] | 6, 7, 8 | dnf/yum/rpm |
|
||||
| [AlmaLinux](alma.md) | 8, 9, 10 | dnf/yum/rpm |
|
||||
| [Rocky Linux](rocky.md) | 8, 9, 10 | dnf/yum/rpm |
|
||||
| [Oracle Linux](oracle.md) | 5, 6, 7, 8 | dnf/yum/rpm |
|
||||
| [Oracle Linux](oracle.md) | 5, 6, 7, 8, 9, 10 | dnf/yum/rpm |
|
||||
| [Azure Linux (CBL-Mariner)](azure.md) | 1.0, 2.0, 3.0 | tdnf/dnf/yum/rpm |
|
||||
| [Amazon Linux](amazon.md) | 1, 2, 2023 | dnf/yum/rpm |
|
||||
| [openSUSE Leap](suse.md) | 42, 15 | zypper/rpm |
|
||||
|
||||
@@ -21,13 +21,14 @@ var (
|
||||
// Source:
|
||||
// https://www.oracle.com/a/ocom/docs/elsp-lifetime-069338.pdf
|
||||
// https://community.oracle.com/docs/DOC-917964
|
||||
"3": time.Date(2011, 12, 31, 23, 59, 59, 0, time.UTC),
|
||||
"4": time.Date(2013, 12, 31, 23, 59, 59, 0, time.UTC),
|
||||
"5": time.Date(2017, 12, 31, 23, 59, 59, 0, time.UTC),
|
||||
"6": time.Date(2021, 3, 21, 23, 59, 59, 0, time.UTC),
|
||||
"7": time.Date(2024, 12, 31, 23, 59, 59, 0, time.UTC),
|
||||
"8": time.Date(2029, 7, 18, 23, 59, 59, 0, time.UTC),
|
||||
"9": time.Date(2032, 7, 18, 23, 59, 59, 0, time.UTC),
|
||||
"3": time.Date(2011, 12, 31, 23, 59, 59, 0, time.UTC),
|
||||
"4": time.Date(2013, 12, 31, 23, 59, 59, 0, time.UTC),
|
||||
"5": time.Date(2017, 12, 31, 23, 59, 59, 0, time.UTC),
|
||||
"6": time.Date(2021, 3, 21, 23, 59, 59, 0, time.UTC),
|
||||
"7": time.Date(2024, 12, 31, 23, 59, 59, 0, time.UTC),
|
||||
"8": time.Date(2029, 7, 18, 23, 59, 59, 0, time.UTC),
|
||||
"9": time.Date(2032, 7, 18, 23, 59, 59, 0, time.UTC),
|
||||
"10": time.Date(2035, 6, 30, 23, 59, 59, 0, time.UTC),
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@@ -71,6 +71,18 @@ func TestScanner_IsSupportedVersion(t *testing.T) {
|
||||
osVersion: "8",
|
||||
expected: false,
|
||||
},
|
||||
"oracle10": {
|
||||
now: time.Date(2035, 6, 30, 23, 59, 58, 0, time.UTC),
|
||||
osFamily: "oracle",
|
||||
osVersion: "10.0",
|
||||
expected: true,
|
||||
},
|
||||
"oracle10-same-time": {
|
||||
now: time.Date(2035, 6, 30, 23, 59, 59, 0, time.UTC),
|
||||
osFamily: "oracle",
|
||||
osVersion: "10.0",
|
||||
expected: false,
|
||||
},
|
||||
"latest": {
|
||||
now: time.Date(2019, 5, 31, 23, 59, 59, 0, time.UTC),
|
||||
osFamily: "oracle",
|
||||
|
||||
Reference in new issue
Block a user