Skip to content

Commit 3e6ffee

Browse files
authored
[Trusted Publishers] Mention bucket resource type (#2595)
1 parent 4b33f62 commit 3e6ffee

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/hub/trusted-publishers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Complete working examples:
9696

9797
| Flavor | Configured on | What you get | Use it to… |
9898
| --- | --- | --- | --- |
99-
| **Repo publisher** | A repo's **Settings → Trusted Publishers** | A token with **write access to that one repo** | Publish a model, dataset, Space, or kernel from CI |
99+
| **Repo publisher** | A repo's **Settings → Trusted Publishers** | A token with **write access to that one repo** | Publish a model, dataset, Space, kernel, or bucket from CI |
100100
| **User publisher** | Your account's [**Authentication settings → CI/CD Access**](https://huggingface.co/settings/authentication#ci-cd-access) | A read-only token with the `gated-repos` scope | Read **gated repos you have access to** and use your rate limits from CI |
101101

102102
Both tokens expire after 60 minutes. You need the **Write** role on a Hub repo to manage its trusted publishers.
@@ -166,7 +166,7 @@ No client authentication is needed — the OIDC ID token authenticates the reque
166166
| `grant_type` | yes | `urn:ietf:params:oauth:grant-type:token-exchange` |
167167
| `subject_token_type` | yes | `urn:ietf:params:oauth:token-type:id_token` |
168168
| `subject_token` | yes | The raw OIDC ID token (JWT) from your CI provider. Its `aud` claim **must** be `https://huggingface.co`. |
169-
| `resource` | yes | A Hub repo (`namespace/name`, `datasets/namespace/name`, `spaces/namespace/name`, `kernels/namespace/name`) or a Hub **username** (no slash) for a user-scoped token. |
169+
| `resource` | yes | A Hub repo (`namespace/name`, `datasets/namespace/name`, `spaces/namespace/name`, `kernels/namespace/name`, `buckets/namespace/name`) or a Hub **username** (no slash) for a user-scoped token. |
170170
171171
**Success response:**
172172

0 commit comments

Comments
 (0)