mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-12 15:50:15 -08:00
refactor: propagate time through context values (#5858)
Signed-off-by: knqyf263 <knqyf263@gmail.com>
This commit is contained in:
@@ -116,14 +116,14 @@ func (r *runner) run(ctx context.Context, artifacts []*k8sArtifacts.Artifact) er
|
||||
if err != nil {
|
||||
return xerrors.Errorf("compliance report build error: %w", err)
|
||||
}
|
||||
return cr.Write(complianceReport, cr.Option{
|
||||
return cr.Write(ctx, complianceReport, cr.Option{
|
||||
Format: r.flagOpts.Format,
|
||||
Report: r.flagOpts.ReportFormat,
|
||||
Output: output,
|
||||
})
|
||||
}
|
||||
|
||||
if err := k8sRep.Write(rpt, report.Option{
|
||||
if err := k8sRep.Write(ctx, rpt, report.Option{
|
||||
Format: r.flagOpts.Format,
|
||||
Report: r.flagOpts.ReportFormat,
|
||||
Output: output,
|
||||
|
||||
Reference in New Issue
Block a user