<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>59516</bug_id>
          
          <creation_ts>2026-06-11 18:39:35 +0300</creation_ts>
          <short_desc>Пишет &quot;This OS version is not on the EOL list&quot;</short_desc>
          <delta_ts>2026-06-11 18:39:35 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>trivy</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Maxim Slipenko">maxim</reporter>
          <assigned_to name="Alexey Shabalin">shaba</assigned_to>
          <cc>shaba</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>289405</commentid>
    <comment_count>0</comment_count>
    <who name="Maxim Slipenko">maxim</who>
    <bug_when>2026-06-11 18:39:35 +0300</bug_when>
    <thetext>При вызове trivy image --scanners vuln registry.altlinux.org/p10/alt:latest пишет &quot;This OS version is not on the EOL list&quot;.

Хотя информация судя по исходному коду (https://altlinux.space/trivy/trivy/src/commit/3ddaf56050471955feaa1e60079bc756ad0d0903/pkg/detector/ospkg/alt/alt.go#L26-L35) должна быть.
Похоже, что надо сделать:
```
func (s *Scanner) IsSupportedVersion(ctx context.Context, osFamily ftypes.OSType, osVer string) bool {
	return osver.Supported(ctx, eolDates, osFamily, fromCPE(osVer))
}
```


$ trivy version
Version: 0.70.0
Vulnerability DB:
  Version: 2
  UpdatedAt: 2026-06-11 12:03:21.492332916 +0000 UTC
  NextUpdate: 2026-06-11 18:03:21.492332163 +0000 UTC
  DownloadedAt: 2026-06-11 14:56:05.244949352 +0000 UTC

$ trivy image --scanners vuln registry.altlinux.org/p10/alt:latest --debug
2026-06-11T18:30:41+03:00	DEBUG	No plugins loaded
2026-06-11T18:30:41+03:00	DEBUG	Default config file &quot;file_path=trivy.yaml&quot; not found, using built in values
2026-06-11T18:30:41+03:00	DEBUG	Cache dir	dir=&quot;/home/maxim/.cache/trivy&quot;
2026-06-11T18:30:41+03:00	DEBUG	Cache dir	dir=&quot;/home/maxim/.cache/trivy&quot;
2026-06-11T18:30:41+03:00	DEBUG	Parsed severities	severities=[UNKNOWN LOW MEDIUM HIGH CRITICAL]
2026-06-11T18:30:41+03:00	DEBUG	Ignore statuses	statuses=[]
2026-06-11T18:30:41+03:00	DEBUG	DB update was skipped because the local DB is the latest
2026-06-11T18:30:41+03:00	DEBUG	DB info	schema=2 updated_at=2026-06-11T12:03:21.492332916Z next_update=2026-06-11T18:03:21.492332163Z downloaded_at=2026-06-11T14:56:05.244949352Z
2026-06-11T18:30:41+03:00	DEBUG	[pkg] Package types	types=[os library]
2026-06-11T18:30:41+03:00	DEBUG	[pkg] Package relationships	relationships=[unknown root workspace direct indirect]
2026-06-11T18:30:41+03:00	INFO	[vuln] Vulnerability scanning is enabled
2026-06-11T18:30:41+03:00	DEBUG	Initializing scan cache...	type=&quot;fs&quot;
2026-06-11T18:30:41+03:00	DEBUG	[notification] Running version check
2026-06-11T18:30:42+03:00	DEBUG	[image] Image found	image=&quot;registry.altlinux.org/p10/alt:latest&quot; source=&quot;remote&quot;
2026-06-11T18:30:42+03:00	DEBUG	Created process-specific temp directory	path=&quot;/tmp/.private/maxim/trivy-65530&quot;
2026-06-11T18:30:42+03:00	DEBUG	[image] Detected image ID	image_id=&quot;sha256:7387f2d5f20f88d97c4e0b44d22916cee7434f251fe527c25a78bff7c9ce9f66&quot;
2026-06-11T18:30:42+03:00	DEBUG	[image] Detected diff ID	diff_ids=[sha256:d5283aff84e0f6923d97a9cb96b9cd1a79f94062d7b44008b3448e1804bab0a7 sha256:fd8b7823c01c2d68d358033e0fab4d7e986b29a21382fc73a8cdfef0644c5ddc]
2026-06-11T18:30:42+03:00	DEBUG	[image] Detected base layers	diff_ids=[]
2026-06-11T18:30:42+03:00	INFO	Detected OS	family=&quot;alt&quot; version=&quot;cpe:/o:alt:container:10&quot;
2026-06-11T18:30:42+03:00	WARN	This OS version is not on the EOL list	family=&quot;alt&quot; version=&quot;cpe:/o:alt:container:10&quot;
2026-06-11T18:30:42+03:00	DEBUG	[alt] Skipping third-party packages	packages=[alt-gpgkeys alt-os-release altlinux-repos apt apt-conf-branch apt-https basesystem bash bash4 bashrc branding-alt-container-notes branding-alt-container-release bzip2 bzlib chkconfig chrooted chrooted-resolv common-licenses control coreutils cpio diffutils etcskel fakeroot file filesystem findutils gawk getopt glibc-core glibc-nss glibc-preinstall glibc-pthread glibc-utils gnupg grep gzip iproute2 iputils libacl libapt libatm libattr libaudit1 libblkid libcap libcap-ng libcap-utils libcrypt libdb4.7 libelf libffi7 libgcc1 libgcrypt20 libgmp10 libgnutls30 libgpg-error libgpm libhogweed6 libidn2 libiptables liblua5.3 liblzma libmagic libmnl libmount libncursesw libnetlink libnettle8 libp11-kit libpam0 libpasswdqc libpcre3 libpopt libprocps libreadline7 librpm7 libseccomp libselinux libsha1detectcoll1 libshell libsmartcols libstdc++6 libtasn1 libtcb libtic libtinfo libudev1 libunistring2 libuuid libzstd nss_tcb pam pam-config pam-config-control pam0_mktemp pam0_passwdqc pam0_tcb pam0_userpass passwdqc-control perl-base perl-parent procps psmisc rootfiles rpm sed service setarch setproctitle setup sh sh4 shadow-convert shadow-utils sysvinit-utils tar tcb-utils terminfo termutils usrmerge usrmerge-hier-convert usrmerge-ready util-linux util-linux-control vim-minimal vitmp xz zlib zstd]
2026-06-11T18:30:42+03:00	INFO	[alt] Detecting ALT vulnerabilities...
2026-06-11T18:30:42+03:00	DEBUG	[alt] ALT: os version: 	cpe=&quot;p10&quot;
2026-06-11T18:30:42+03:00	DEBUG	[alt] ALT: the number of packages: 	pkg_num=0
0 [________________________________________________________________________________________________________________________________________________________________] ?% ? p/s
2026-06-11T18:30:42+03:00	INFO	Number of language-specific files	num=0
2026-06-11T18:30:42+03:00	DEBUG	Specified ignore file does not exist	file=&quot;.trivyignore&quot;
2026-06-11T18:30:42+03:00	DEBUG	[vex] VEX filtering is disabled

Report Summary

┌────────────────────────────────────────────────────────────────────┬──────┬─────────────────┐
│                               Target                               │ Type │ Vulnerabilities │
├────────────────────────────────────────────────────────────────────┼──────┼─────────────────┤
│ registry.altlinux.org/p10/alt:latest (alt cpe:/o:alt:container:10) │ alt  │        0        │
└────────────────────────────────────────────────────────────────────┴──────┴─────────────────┘
Legend:
- &apos;-&apos;: Not scanned
- &apos;0&apos;: Clean (no security findings detected)

2026-06-11T18:30:42+03:00	DEBUG	Cleaning up temp directory	path=&quot;/tmp/.private/maxim/trivy-65530&quot;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>