Create a trust rule
Creates a trust rule that lets matching tokens act as a service account.
Authorizations
Body
Request to create a trust rule.
A CEL expression over the token's claims that must evaluate to true. It must pin a specific claims.sub in a top-level && clause, plus any provider-required checks. Up to 4,096 characters. Can be changed later.
"claims.repository_owner_id == '12345' && claims.sub.startsWith('repo:acme/models:') && claims.ref == 'refs/heads/main'"
Response
Which tokens from an identity provider may act as a service account.
A CEL expression over the token's claims that must evaluate to true. It must pin a specific claims.sub in a top-level && clause, plus any provider-required checks. Up to 4,096 characters.
"claims.repository_owner_id == '12345' && claims.sub.startsWith('repo:acme/models:') && claims.ref == 'refs/heads/main'"