Add Predefined CI variable that identifies triggerer of manual job
Problem to solve
We have no clear indicator currently of who triggered a manual job. By providing a variable which captures who the triggerer is, we can flexibly leverage this feature for things like programmatic commit creation, triggering webhooks, and other behavior to improve auditability.
Intended users
User experience goal
Have a clearer audit trail for who triggered a manual job and provide a method to programmatically trigger additional behavior with populated variable
Proposal
It would be great if we could more programmatically determine who triggered a manual job within a CI pipeline. This would involve adding a new variable corresponding to CI_JOB_MANUAL
that contains the user who triggered the job; i.e. CI_JOB_MANUAL_TRIGGERER
(this placeholder name feels a bit awkward)
Further details
Permissions and Security
Consider whether we want to expose the triggerer. We are technically exposing new data but I don't currently see an issue here...
Documentation
Add new variable to https://docs.gitlab.com/ee/ci/variables/predefined_variables.html
Availability & Testing
What does success look like, and how can we measure that?
Better auditability and more flexibility around the triggerer of a manual job
What is the type of buyer?
Is this a cross-stage feature?
No