Skip to content

Add PEP source to job options

What does this MR do and why?

Add config_sha and config_uri to PEP-triggered jobs options so that it can be later added as claims to ID tokens.

References

  1. Scope policy job options under a single key (!208845 - merged)
  2. 👉 This one: Add PEP source to job options (!190625)
  3. Draft: Add SEP policy source to job options (!209673)
  4. Draft: Add policy source claims to id_tokens (!209823)

How to set up and validate locally

  1. Setup a project with a pipeline execution policy
  2. Trigger a pipeline
  3. Verify the policy job options include config_sha and config_uri
    Ci::Build.find(<id>).options

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #459001

Edited by Martin Čavoj

Merge request reports

Loading