Skip to content

Use HF Trusted Publisher token in update_metadata workflow - #15096

Open
coyotte508 wants to merge 1 commit into
mainfrom
moon/update-metadata-trusted-publisher
Open

coyotte508 wants to merge 1 commit 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

This branch has not been deployed

No deployments
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.

1 participant