mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-22 23:26:39 -08:00
feat(cli): convert JSON reports into a different format (#4452)
Co-authored-by: Aurelien LAJOIE <aurelien.lajoie@kili-technology.com>
This commit is contained in:
@@ -35,7 +35,7 @@ func Run(ctx context.Context, opts flag.Options) (err error) {
|
||||
|
||||
// download the database file
|
||||
if err = operation.DownloadDB(ctx, opts.AppVersion, opts.CacheDir, opts.DBRepository,
|
||||
true, opts.SkipDBUpdate, opts.Registry()); err != nil {
|
||||
true, opts.SkipDBUpdate, opts.RegistryOpts()); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -58,6 +58,6 @@ func Run(ctx context.Context, opts flag.Options) (err error) {
|
||||
m.Register()
|
||||
|
||||
server := rpcServer.NewServer(opts.AppVersion, opts.Listen, opts.CacheDir, opts.Token, opts.TokenHeader,
|
||||
opts.DBRepository, opts.Registry())
|
||||
opts.DBRepository, opts.RegistryOpts())
|
||||
return server.ListenAndServe(cache, opts.SkipDBUpdate)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user