Trust rules
Update a trust rule
Updates a trust rule’s condition, audience, service account, or token lifetime.
PATCH
cURL
Workload identity federation is in Private Preview.
Authorizations
Body
application/json
Request to update a trust rule. Only the fields sent change.
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'"