mirror of
https://github.com/huggingface/diffusers.git
synced 2026-10-24 20:59:27 +03:00
A tag is mutable: whoever controls the action's repository can move `v4` to different code, and the next run picks it up with no diff to review. Pinning to the commit SHA freezes the code that runs today. Co-authored-by: hf-security-analysis[bot] <265538906+hf-security-analysis[bot]@users.noreply.github.com>
36 lines
716 B
YAML
36 lines
716 B
YAML
name: Update Diffusers metadata
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
- update_diffusers_metadata*
|
|
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
update_metadata:
|
|
permissions:
|
|
contents: read
|
|
runs-on: ubuntu-22.04
|
|
defaults:
|
|
run:
|
|
shell: bash -l {0}
|
|
|
|
steps:
|
|
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
|
|
|
|
- name: Setup environment
|
|
run: |
|
|
pip install --upgrade pip
|
|
pip install datasets pandas
|
|
pip install .[torch]
|
|
|
|
- name: Update metadata
|
|
env:
|
|
HF_TOKEN: ${{ secrets.SAYAK_HF_TOKEN }}
|
|
run: |
|
|
python utils/update_metadata.py --commit_sha ${{ github.sha }}
|