fix(os): Add photon 5.0 in supported OS (#9724)

This commit is contained in:
Y.Horie
2025-10-30 16:41:54 +09:00
committed by GitHub
parent 212f0781c5
commit 29f0347965
2 changed files with 6 additions and 5 deletions

View File

@@ -27,7 +27,7 @@ Trivy supports operating systems for
| [openSUSE Tumbleweed](suse.md) | (n/a) | zypper/rpm |
| [SUSE Linux Enterprise](suse.md) | 11, 12, 15 | zypper/rpm |
| [SUSE Linux Enterprise Micro](suse.md) | 5, 6 | zypper/rpm |
| [Photon OS](photon.md) | 1.0, 2.0, 3.0, 4.0 | tndf/yum/rpm |
| [Photon OS](photon.md) | 1.0, 2.0, 3.0, 4.0, 5.0 | tndf/yum/rpm |
| [CoreOS](coreos.md)[^3] | All versions (SBOM only) | rpm |
| [Echo](echo.md) | (n/a) | apt/dpkg |
| [Debian GNU/Linux](debian.md) | 7, 8, 9, 10, 11, 12 | apt/dpkg |

View File

@@ -20,10 +20,11 @@ var (
eolDates = map[string]time.Time{
"1.0": time.Date(2022, 2, 28, 23, 59, 59, 0, time.UTC),
"2.0": time.Date(2022, 12, 31, 23, 59, 59, 0, time.UTC),
// The following versions don't have the EOL dates yet.
// See https://blogs.vmware.com/vsphere/2022/01/photon-1-x-end-of-support-announcement.html
"3.0": time.Date(2024, 6, 30, 23, 59, 59, 0, time.UTC),
"4.0": time.Date(2025, 12, 31, 23, 59, 59, 0, time.UTC),
"3.0": time.Date(2024, 3, 31, 23, 59, 59, 0, time.UTC),
"4.0": time.Date(2026, 3, 31, 23, 59, 59, 0, time.UTC),
// The following version don't have the EOL dates yet.
// https://blogs.vmware.com/cloud-foundation/2023/05/02/announcing-photon-os-5-0-general-availability/
"5.0": time.Date(3000, 1, 1, 23, 59, 59, 0, time.UTC),
}
)