Prepare for v0.65.0 #9262
Closed
nikpivkin
started this conversation in
Development
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Draft to collaborate on v0.65.0
📑 Table of Contents
🚀 What's new? 🚀
sarif
report 📈👷♂️ Notable Fixes 🛠️
🚀 What's new? 🚀
🐧 AlmaLinux 10 Support 🔟
Trivy now supports vulnerability scanning for AlmaLinux 10, the latest major release of this enterprise Linux distribution.
Simply scan AlmaLinux 10 images as you would any other supported distribution:
# Scan AlmaLinux 10 container image $ trivy image almalinux:10
Trivy will automatically detect AlmaLinux 10 and check for vulnerabilities using the AlmaLinux security advisory database, providing the same security analysis available for other AlmaLinux versions.
Thanks to @wololowarrior
📦 Package Type Filtering for License Scanning 🔍
The
--pkg-types
flag now works with license scanning, allowing you to filter license detection by package type. This brings consistency with the vulnerability scanner and enables more focused license compliance checks for either OS packages or application dependencies.Usage
The same
--pkg-types
values (os
andlibrary
) that work with vulnerability scanning now apply consistently to license scanning.Thanks to @mastacheata
🐳 Docker Context Resolution Support 🔌
Trivy now automatically detects and uses your active Docker context when scanning images with the
docker
source. This enhancement ensures seamless integration with different Docker environments, including Docker Desktop, Colima, Podman, and other Docker-compatible runtimes.Usage
The resolution priority is:
--docker-host
flag (highest priority)DOCKER_HOST
environment variableDOCKER_CONTEXT
environment variabledocker context ls
🔖 Git Repository Metadata in Reports 📊
Trivy now automatically extracts and includes git repository metadata in scan reports when scanning git repositories. This provides valuable context about the codebase being scanned, including commit details, authorship, branch information, and tags.
Usage
When scanning a git repository (local or remote), Trivy automatically includes git metadata:
Example JSON output:
This feature works automatically for any git repository - whether using
trivy repo
for remote/local repositories ortrivy fs
for local git directories.🔐 SHA-512 Hash Support for CycloneDX SBOM 🛡️
Trivy now supports SHA-512 hashes in CycloneDX Software Bill of Materials (SBOM) format, enhancing cryptographic hash capabilities for improved security and compliance. This addition complements the existing hash algorithms already supported in CycloneDX SBOMs.
Usage
When generating or processing CycloneDX SBOMs, SHA-512 hashes are now automatically included and recognized:
# Scan an existing CycloneDX SBOM containing SHA-512 hashes $ trivy sbom cyclonedx-sbom-with-sha512.json
Thanks to @attiand
🪛 CVSS vectors for
sarif
report 📈Trivy now includes CVSS metrics in
sarif
reports.You can see them in the
property
field:Thanks to @axidex
🛑 Graceful Shutdown Support 🔄
Trivy now handles interruption signals (SIGINT/SIGTERM) gracefully, allowing ongoing operations to complete before shutting down. Press Ctrl+C once to initiate graceful shutdown, or twice to force immediate termination.
Usage
When you press Ctrl+C during a scan:
$ trivy image alpine:3.19 ^C INFO Attempting graceful shutdown... Press Ctrl+C again to force exit INFO Shutting down...
In server mode, active requests are given time to complete:
$ trivy server --listen localhost:8080 ^C INFO Shutting down server... INFO Waiting for active requests to complete... INFO Server exited
👷♂️ Notable Fixes 🛠️
/var/lib/rpmmanifest/container-manifest-2
. #9100 (Thanks to @tofay)filepath
when removing duplicate packages #9142GFDL-NIV-1.1
andGFDL-NIV-1.2
into Trivy mapping #9116WITH
operator #9230/var/lib/dpkg/*/<package>.md5sums
to find list of system files #9046provider
when looking indpkg
#9118.egg-info/METADATA
#9171 (Thanks to @amitverse)Beta Was this translation helpful? Give feedback.
All reactions