Skip to content

Add variable metadata

Kevin L. Mitchell requested to merge (removed):add-variable-metadata into main

What does this MR do?

This MR adds support to gitlab-runner for providing metadata about CI variables made available to a job.

Why was this MR needed?

This metadata is not available, meaning it is not possible to, for instance, audit the usages of CI variables containing secrets for proper handling.

What's the best way to test this MR?

Set up a runner and examine the contents of the file variable CI_VARIABLE_META; it is a JSON-formatted file listing all variables passed by the gitlab-runner and as much metadata as the runner itself has available.

What are the relevant issue numbers?

gitlab#329396

Edited by Kevin L. Mitchell

Merge request reports