Skip to content

add per repo consideration to docs - #2664

Merged
Muhammadsaeed707 merged 3 commits into
huggingface:mainfrom
Muhammadsaeed707:docs/service-account-repo-scoping
Jul 24, 2026
Merged

add per repo consideration to docs#2664
Muhammadsaeed707 merged 3 commits into
huggingface:mainfrom
Muhammadsaeed707:docs/service-account-repo-scoping

Conversation

@Muhammadsaeed707

@Muhammadsaeed707 Muhammadsaeed707 commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

add per repo consideration to docs. new change from this pr: https://github.com/huggingface-internal/moon-landing/pull/18964

(also to share with this customer https://huggingface.slack.com/archives/C08NNTKSHH9/p1783446066600199)


Note

Low Risk
Documentation-only change with no runtime or security behavior impact.

Overview
Updates docs/hub/enterprise-service-accounts.md in the Managing Access Tokens section to describe how fine-grained permissions can be scoped.

Organization-wide permissions apply across all org repos; per-repository permissions limit read/write to selected repos (org-owned or public), with a short example of a single-model read-only token.

Reviewed by Cursor Bugbot for commit 9860aea. Bugbot is set up for automated code reviews on this repo. Configure here.

Copilot AI review requested due to automatic review settings July 23, 2026 17:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Service Accounts documentation to clarify how fine-grained access token permissions can be scoped, adding guidance on organization-wide versus per-repository token scoping for enterprise service accounts.

Changes:

  • Adds an explanation of two permission-scoping levels: organization-wide and per-repository.
  • Adds an example emphasizing narrowly scoped tokens (e.g., read access to a single model repo).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/hub/enterprise-service-accounts.md Outdated
@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Comment thread docs/hub/enterprise-service-accounts.md Outdated
Comment thread docs/hub/enterprise-service-accounts.md Outdated
Co-authored-by: Alexandre Nicolas Pouliquen <11311853+alexpouliquen@users.noreply.github.com>
@Muhammadsaeed707
Muhammadsaeed707 merged commit c62a35f into huggingface:main Jul 24, 2026
2 checks passed
@Muhammadsaeed707
Muhammadsaeed707 deleted the docs/service-account-repo-scoping branch July 24, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants