From d59f81978e38a40bcf3cd6e9c93b11ff8789685d Mon Sep 17 00:00:00 2001 From: MarkvanMents Date: Thu, 10 Sep 2026 11:50:18 +0200 Subject: [PATCH] Prevent build-and-deploy workflow from running in forks The push and pull_request triggers caused the workflow to run in forked repositories, wasting Actions minutes and potentially failing on missing secrets. Adding `if: github.event.repository.fork == false` to the build job ensures the workflow only runs in the main repository. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/build-and-deploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index d949c93eadb..0ee95381fc4 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -24,6 +24,7 @@ on: jobs: build: runs-on: ubuntu-22.04 + if: github.event.repository.fork == false outputs: target: ${{ steps.env.outputs.target }} concurrency: