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() }}