diff --git a/pkg/cloud/aws/commands/run.go b/pkg/cloud/aws/commands/run.go index af8afb36f8d..708d9314f94 100644 --- a/pkg/cloud/aws/commands/run.go +++ b/pkg/cloud/aws/commands/run.go @@ -140,7 +140,7 @@ func Run(ctx context.Context, opt flag.Options) error { var err error defer func() { if errors.Is(err, context.DeadlineExceeded) { - log.Warn("Increase --timeout value") + log.Warn("Provide a higher timeout value, see https://aquasecurity.github.io/trivy/latest/docs/configuration/") } }() diff --git a/pkg/commands/artifact/run.go b/pkg/commands/artifact/run.go index a1fde23d519..ef23db03957 100644 --- a/pkg/commands/artifact/run.go +++ b/pkg/commands/artifact/run.go @@ -397,7 +397,7 @@ func Run(ctx context.Context, opts flag.Options, targetKind TargetKind) (err err defer func() { if errors.Is(err, context.DeadlineExceeded) { - log.Warn("Increase --timeout value") + log.Warn("Provide a higher timeout value, see https://aquasecurity.github.io/trivy/latest/docs/configuration/") } }() diff --git a/pkg/k8s/commands/run.go b/pkg/k8s/commands/run.go index 3516f1afc8e..7c34bb4feb2 100644 --- a/pkg/k8s/commands/run.go +++ b/pkg/k8s/commands/run.go @@ -39,7 +39,7 @@ func Run(ctx context.Context, args []string, opts flag.Options) error { defer func() { cancel() if errors.Is(err, context.DeadlineExceeded) { - log.WarnContext(ctx, "Increase --timeout value") + log.WarnContext(ctx, "Provide a higher timeout value, see https://aquasecurity.github.io/trivy/latest/docs/configuration/") } }() opts.K8sVersion = cluster.GetClusterVersion()