Files
craft-wiki/.github/workflows/deploy.yml
Dylan M. Taylor 93252671d7 ci: run Harden-Runner on every job (#42)
Adds step-security/harden-runner (audit, pinned to v2.22.4 like
craft-common-actions) as the first step of each job that did not have it,
so every workflow in the org's public repos reports its egress to
StepSecurity. Audit, not block: block-mode allow lists come from each
job's observed traffic.
2026-11-11 12:10:18 -05:00

28 lines
684 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@1d88384fd173af6ecb012dfd0264a306b711241a # 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"