A scheduled pipeline should skip when there are no changes, and only specific users can manually run production jobs.

IntermediateScenarioGitLab CI
Answer

Situation read → Control triggers and actors.

What I'd do →

  1. Combine rules:changes with $CI_PIPELINE_SOURCE == "schedule" where needed.
  2. Mark production as a protected environment with allowed deployers and optional approvals.
  3. Restrict who can run manual jobs by protecting the branch and environment.

Why → Roles are enforced by the platform, not by job code.

Interview tip → Protected environments support multi-approver rules.

All CI/CD questions Roadmap: GitLab CI/CD

More on GitLab CI