Ability to restrict running manual gitlab-ci tasks to admin/group/user permission

This issue was moved (and resolved) in another project.

Description

We use gitlab-ci manual tasks to trigger deployment. Currently every developer can trigger a deployment by clicking on the manual task play button.

It would be handy if we can restrict manual task running to admin group and above, or a specified group/user.

This would also be a nice way to create an approval job.

Proposal

Add configuration in the .gitlab-ci.yml to allow for a job to restrict who can press the play button

Edited by Tim Poffenbarger