Skip to content

Use HF Trusted Publisher token in update_metadata workflow - #15096

Merged
sayakpaul merged 3 commits into
mainfrom
moon/update-metadata-trusted-publisher
Oct 22, 2026
Merged

sayakpaul merged 3 commits into
mainfrom
moon/update-metadata-trusted-publisher

Conversation

@coyotte508

Copy link
Copy Markdown
Member

Replaces the long-lived SAYAK_HF_TOKEN secret in the update_metadata workflow with a short-lived (1h) token from the Hub's Trusted Publishers, scoped to datasets/huggingface/diffusers-metadata only.

  • Adds id-token: write so the job can request a GitHub OIDC token
  • Requires huggingface_hub>=1.19.0 for the OIDC token exchange
  • Sets HF_OIDC_RESOURCE instead of HF_TOKEN

@github-actions github-actions Bot added CI size/S PR with diff < 50 LOC labels Oct 21, 2026
@coyotte508
coyotte508 requested a review from sayakpaul October 21, 2026 14:58

@sayakpaul sayakpaul left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@DN6 FYI.

@sayakpaul
sayakpaul merged commit 29d199a into main Oct 22, 2026
12 of 13 checks passed
@sayakpaul
sayakpaul deleted the moon/update-metadata-trusted-publisher branch October 22, 2026 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI size/S PR with diff < 50 LOC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants