change the user used for the audit call in repo import (#2566)

* change the user used for the audit call in repo import
pull/3545/head
Marko Gaćeša 2024-08-22 14:10:48 +00:00 committed by Harness
parent dab431568f
commit b10a30ca8f
1 changed files with 1 additions and 1 deletions

View File

@ -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),