mirror of https://github.com/harness/drone.git
change the user used for the audit call in repo import (#2566)
* change the user used for the audit call in repo importpull/3545/head
parent
dab431568f
commit
b10a30ca8f
|
@ -273,7 +273,7 @@ func (r *Repository) Handle(ctx context.Context, data string, _ job.ProgressRepo
|
|||
|
||||
if isRepoPublic {
|
||||
err = r.auditService.Log(ctx,
|
||||
bootstrap.NewPipelineServiceSession().Principal,
|
||||
bootstrap.NewSystemServiceSession().Principal,
|
||||
audit.NewResource(audit.ResourceTypeRepository, repo.Identifier),
|
||||
audit.ActionUpdated,
|
||||
paths.Parent(repo.Path),
|
||||
|
|
Loading…
Reference in New Issue