From 2b1e10e80ea510709a036bf8a4a27d6b9834f240 Mon Sep 17 00:00:00 2001 From: sayakpaul Date: Fri, 20 Nov 2026 10:46:44 +0530 Subject: [PATCH] shift community pipeline mirror to use oidc. --- .github/workflows/mirror_community_pipeline.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/mirror_community_pipeline.yml b/.github/workflows/mirror_community_pipeline.yml index 128eb61c5ccb..c2650d395858 100644 --- a/.github/workflows/mirror_community_pipeline.yml +++ b/.github/workflows/mirror_community_pipeline.yml @@ -27,6 +27,7 @@ jobs: mirror_community_pipeline: permissions: contents: read + id-token: write env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_COMMUNITY_MIRROR }} runs-on: ubuntu-22.04 @@ -83,13 +84,7 @@ jobs: - name: Install dependencies run: | pip install --upgrade pip - pip install --upgrade huggingface_hub - - # Check secret is set - - name: whoami - run: hf auth whoami - env: - HF_TOKEN: ${{ secrets.HF_TOKEN_MIRROR_COMMUNITY_PIPELINES }} + pip install --upgrade "huggingface_hub>=1.19.0" # Push to HF! (under subfolder based on checkout ref) # https://huggingface.co/datasets/diffusers/community-pipelines-mirror @@ -97,7 +92,7 @@ jobs: run: hf upload diffusers/community-pipelines-mirror ./examples/community ${PATH_IN_REPO} --repo-type dataset env: PATH_IN_REPO: ${{ env.PATH_IN_REPO }} - HF_TOKEN: ${{ secrets.HF_TOKEN_MIRROR_COMMUNITY_PIPELINES }} + HF_OIDC_RESOURCE: datasets/diffusers/community-pipelines-mirror - name: Report success status if: ${{ success() }}