Files
craft-wiki/.github/workflows/deploy.yml
Dylan M. Taylor adaaa7d35c ci: lock workflow actions through an actions.lock lockfile
Mutable action tags are a supply-chain risk: a moved tag runs different code
without a diff. Every workflow action is now pinned through
.github/workflows/actions.lock, and CI verifies the lockfile so an out-of-sync
or tampered one fails instead of running.
2026-11-12 07:19:10 -05:00

28 lines
641 B
YAML

name: Trigger Cloudflare deploy
on:
push:
branches: [main]
workflow_dispatch:
permissions: {}
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Harden runner
uses: step-security/harden-runner@v2.22.4
with:
egress-policy: audit
- name: Trigger Cloudflare build
env:
DEPLOY_HOOK: ${{ vars.CLOUDFLARE_DEPLOY_HOOK }}
run: |
if [ -z "$DEPLOY_HOOK" ]; then
echo "CLOUDFLARE_DEPLOY_HOOK is not configured" >&2
exit 1
fi
curl --fail --silent --show-error --request POST "$DEPLOY_HOOK"