Make deployment approvals affect jobs in downstream pipeline when the deploy job triggers a downstream pipeline

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

Proposal

Make deployment approvals affect jobs in downstream pipeline when the deploy job triggers a downstream pipeline.

Context

  • Deployment approvals are enabled in the project.
  • If a user tries to re-run a deploy job (that is a bridge job to trigger a downstream pipeline), the job will need to be approved again. This is expected.
  • However, the user could re-run the jobs inside the downstream pipeline without any approval. This is not expected.

See screenshots below.

Running a new pipeline image
Deployment requires approval image
Once approval has been given, the job can run image
Re-running the deploy job -> requires approval again Jobs page: image

Deployment page: image

However, a user can go to an old pipeline, and rerun the job in the downstream pipeline without approval image
`Prevent outdated deployment jobs` is also enabled in the Settings image
Edited by 🤖 GitLab Bot 🤖