Trust rules
Get a trust rule
Returns one trust rule by ID.
GET
cURL
Workload identity federation is in Private Preview.
Authorizations
Response
200 - application/json
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.
Example:
"claims.repository_owner_id == '12345' && claims.sub.startsWith('repo:acme/models:') && claims.ref == 'refs/heads/main'"