mirror of
https://github.com/harness/drone.git
synced 2025-05-03 20:52:54 +08:00
change the user used for the audit call in repo import (#2566)
* change the user used for the audit call in repo import
This commit is contained in:
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
Block a user