# Token for a CircleCI workload.
# CircleCI exposes CIRCLE_OIDC_TOKEN_V2 only for jobs with at least
# one context.
apiVersion: almaforge.com/v1
kind: Token
metadata:
  name: ci-mobile-release # CI job ALMA_CLIENT_ID value.
spec:
  roles:
    - system:bot # CI jobs join as bots, then impersonate allowed RBAC roles.
  botName: ci-mobile-release # Existing Bot resource this token is scoped to.
  circleCI:
    organizationID: 11111111-1111-1111-1111-111111111111 # CircleCI organization UUID.
    allow:
      - projectID: 22222222-2222-2222-2222-222222222222 # CircleCI project UUID.
        contextID: 33333333-3333-3333-3333-333333333333 # Required CircleCI context UUID.
