service-accounts

Trusted publisher

Changed on

Let OIDC tokens matching the issuer and claims exchange for a short-lived token of the service account, with resource set to the service account name.

post/api/organizations/{name}/service-accounts/{serviceAccountId}/trusted-publishers

Request

  • Base URL
    https://huggingface.co
  • Auth
    HTTP bearer

Path parameters

namestring required
serviceAccountIdstring required

Request body

issuerUrlstring uri required

URL of the OIDC issuer, e.g. https://token.actions.githubusercontent.com.

claimsobject required

Claims the OIDC token must match, by claim name. At least one is required.

capabilitiesstring[]

Scopes granted to matching tokens on top of gated-repos (read the gated repos the account has access to).

Response

Trusted publisher

_idstring required

A hex string of 24 characters representing an ObjectId.

issuerUrlstring required
claimsobject required
createdAtstring date-time required
lastUsedAtstring date-time
capabilitiesstring[]
permissionsstring[]

Changes