Impact Score: 5/10
Trivy v0.4.0 โ Release Notes & Engineering Impact
Source available โ automated, not human-reviewed
Component: trivy ยท Channel: stable. Automated analysis, not a compatibility certification. How this works.
Analysis updated: 2026-11-01.
โก Executive Summary (TL;DR)
Trivy v0.4.0. Source highlight: Support Photon OS (#340)
Who Does This Impact? (Role-Based Analysis)
๐ป Software Engineers & Devs
Check the source notes against the package and APIs you use before upgrading.
๐ Product & Engineering Leads
Use the documented changes to assess relevance to your product; release frequency alone is not a quality measure.
โ๏ธ DevOps & Security
Verify the target version, runtime requirements and rollback procedure in the official documentation.
๐ View Raw Release Notes (Original Developer Log)
## New Features
### Support Photon OS (#340)
```
$ trivy photon:3.0
```
Thank you, @masahiro331
### Support SUSE Enterprise Linux / openSUSE (#337)
```
$ trivy opensuse/leap:15.0
```
Thank you, @masahiro331
### Specify a directory to store image cache (#341)
Trivy could specify a directory to store the vulnerability database, but could not specify a directory to store image cache. Now, you can specify it with `--cache-dir`.
```
$ trivy --cache-dir /path/to/cache alpine:3.10
```
### Add --token-headers option (#326)
Trivy uses `Trivy-Token` as a default token header. You can specify a custom header by `--token-header`.
```
$ trivy server --token foo --token-header x-trivy-token
```
```
$ trivy client --token foo --token-header x-trivy-token
```
### Show progress when downloading the DB (#317)
```
$ trivy alpine:3.10
2019-12-27T14:44:26.345+0200 INFO Need to update DB
2019-12-27T14:44:26.346+0200 INFO Downloading DB...
3.04 MiB / 9.26 MiB [---------------------------->__________________________________________________________] 32.82% 1.14 MiB p/s ETA 5s
```
## Buf fixes
### Clear cache (#339)
```
$ trivy client --clear-cache
```
## Changelog
7abd416 Delete requires for release (#345)
fcc193b Support Photon OS (#340)
44d74a7 chore(README): add 0.0.0.0 to the server example (#342)
4189855 fix(cache): specify a directory to store image cache (#341)
77f1abc Integration tests for docker mode (#335)
96d58cc fix(client): clear cache (#339)
823374b feat(client/server): add --token-headers option (#326)
b127c1c Support SUSE (#337)
b1ea09d Merge pull request #272 from aquasecurity/lizrice-patch-1
8c1c3df Merge branch 'master' into lizrice-patch-1
cee08c3 feat(db): show progress when downloading the DB (#317)
bc8f613 fix(writer): Refactor results struct (#327)
b9eddaf Merge branch 'master' into lizrice-patch-1
bdd1266 docs: note that some sources are non-commercial
## Docker images
- `docker pull docker.io/aquasec/trivy:0.4.0`
- `docker pull docker.io/aquasec/trivy:latest`