Provide deployment approver/executor information in pipelines

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Problem to solve

Currently, when a job is created that deploys to a protected environment requiring deployment approvals, user information for who approved/executed the deployment can only be found when viewing the environment and clicking the "approval options" button next to the job in question.

We should provide the information of those who approved/executed the job within the job itself, which would allow users to more easily access this information and implement different automatons to suit their needs.

Proposal

After a deployment job has been approved/executed, inject predefined variables similar to what we provide for the user who created the job (e.g. GITLAB_USER_ID).

Something like: DEPLOYMENT_APPROVER_ID, DEPLOYMENT_APPROVER_EMAIL, etc.

Intended users

Feature Usage Metrics

Edited by 🤖 GitLab Bot 🤖