Add job source claims to ID tokens
- A new
job_sourceclaim will be added to our id_token claims. The value will be the same as requirement 1 listed above. - For jobs that are run by a security policy project, a new
job_policy_ref_uriclaim will be added to our id_token claims.- The value will be null for jobs that do not come from a scan execution policy.
- The value will point to the scan execution policy file for jobs that do come from a scan execution policy.
- The format will be
gitlab.example.com/my-group/my-project//.gitlab-ci.yml@refs/heads/main.
- For jobs that are run by a security policy project, a new
job_policy_ref_shaclaim will be added to our id_token claims.- The value will be null for jobs that do not come from a scan execution policy.
- The value will be the git commit SHA for the
job_policy_ref_urifor jobs that do come from a scan execution policy.
Edited by Nate Rosandich