Compare commits

...

2 Commits

Author SHA1 Message Date
Aqua Security automated builds
95dbf1152b release: v0.56.1 [release/v0.56] (#7648) 2024-10-03 14:10:29 +00:00
Aqua Security automated builds
5dbdadfe45 fix(db): fix javadb downloading error handling [backport: release/v0.56] (#7646)
Signed-off-by: nikpivkin <nikita.pivkin@smartforce.io>
Co-authored-by: Nikita Pivkin <nikita.pivkin@smartforce.io>
2024-10-03 13:26:26 +00:00
3 changed files with 10 additions and 3 deletions

View File

@@ -1 +1 @@
{".":"0.56.0"}
{".":"0.56.1"}

View File

@@ -1,5 +1,12 @@
# Changelog
## [0.56.1](https://github.com/aquasecurity/trivy/compare/v0.56.0...v0.56.1) (2024-10-03)
### Bug Fixes
* **db:** fix javadb downloading error handling [backport: release/v0.56] ([#7646](https://github.com/aquasecurity/trivy/issues/7646)) ([5dbdadf](https://github.com/aquasecurity/trivy/commit/5dbdadfe4578288d5c3f2a5b625fff4a3580f8c5))
## [0.56.0](https://github.com/aquasecurity/trivy/compare/v0.55.0...v0.56.0) (2024-10-03)

View File

@@ -104,10 +104,10 @@ func (u *Updater) downloadDB(ctx context.Context) error {
Quiet: u.quiet,
}
if err := artifacts.Download(ctx, u.dbDir, downloadOpt); err != nil {
return xerrors.Errorf("failed to download vulnerability DB: %w", err)
return xerrors.Errorf("failed to download Java DB: %w", err)
}
return xerrors.New("failed to download Java DB from any source")
return nil
}
func Init(cacheDir string, javaDBRepositories []name.Reference, skip, quiet bool, registryOption ftypes.RegistryOptions) {