GitLab CI/CD is evolving its variable management to enhance security and maintainability by introducing pipeline inputs as the preferred method for passing parameters. This shift addresses security concerns related to unrestricted pipeline variables, lack of explicit declaration, and type safety. Pipeline inputs offer explicit declaration, type safety, built-in validation, and improved security against variable injection attacks. The platform now recommends restricting pipeline variables, particularly for sensitive information, and emphasizes the use of protected and masked variables. This post details the scopes of CI/CD variables (project, group, instance) and how to define and use them, along with predefined variables and best practices for secure management.
All GitLab trails