Skip to content

Commit 1d39fbd

Browse files
author
Shivam Mukhade
committed
Fixes user verfication, if not allowed then don't proceed
if user is not allowed to run CI then don't proceed with execution, but PAC was going ahead after reporting status instead of aborting. this fixes it. Signed-off-by: Shivam Mukhade <[email protected]>
1 parent 603a5aa commit 1d39fbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/pipelineascode/match.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ is that what you want? make sure you use -n when generating the secret, eg: echo
136136
if err := p.vcx.CreateStatus(ctx, p.run.Clients.Tekton, p.event, p.run.Info.Pac, status); err != nil {
137137
return repo, fmt.Errorf("failed to run create status, user is not allowed to run: %w", err)
138138
}
139-
return repo, nil
139+
return nil, nil
140140
}
141141
}
142142
return repo, nil

0 commit comments

Comments
 (0)