Add repository guards to deployment workflows (#877)

- Guard deploy-docs job to only run in canonical repository
- Guard goreleaser job to only run in canonical repository
- Guard update-homebrew job to only run in canonical repository
- Guard test-pypi job to only run in canonical repository

Prevents fork workflows from attempting to deploy, release, or publish to external services.
This commit is contained in:
matt wilkie
2026-01-03 22:16:09 -07:00
committed by GitHub
parent 6a5c289af3
commit 625ac5dff2
4 changed files with 8 additions and 0 deletions

View File

@@ -83,6 +83,8 @@ jobs:
path: website/build
deploy:
# Guard: deploy should only run in the canonical repository (not in forks)
if: ${{ github.repository == 'steveyegge/beads' }}
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}