DecodeMarketing's picture
ci(ai-standards): SHA-pin actions + least-privilege permissions (slice 2b) (#25)
c745b10 unverified
Raw History Blame Contribute Delete
711 Bytes
name: Sync to Hugging Face hub
on:
push:
branches: [main]
# to run this workflow manually from the Actions tab
workflow_dispatch:
# Least privilege: this workflow only reads the repo to check it out, then
# pushes to the external HF Space using HF_TOKEN (not GITHUB_TOKEN).
permissions:
contents: read
jobs:
sync-to-hub:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
lfs: true
- name: Push to hub
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: git push https://DecodeMarketing:$HF_TOKEN@huggingface.co/spaces/DecodeMarketing/decode_tools main