From: Bjørn Erik Pedersen Date: Tue, 18 Nov 2025 19:29:22 +0000 (+0100) Subject: github: Adjust AI Watchdog workflow to make it run PRs from forks X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=38efb702aad739f4e7c3bb0ca9fad746b65e5cde;p=brevno-suite%2Fhugo github: Adjust AI Watchdog workflow to make it run PRs from forks --- diff --git a/.github/workflows/aiwatchdog.yml b/.github/workflows/aiwatchdog.yml index 5e0a0d8ec..d7215ec78 100644 --- a/.github/workflows/aiwatchdog.yml +++ b/.github/workflows/aiwatchdog.yml @@ -1,5 +1,11 @@ name: AI Detection -on: [pull_request] +on: + # Use pull_request_target instead of pull_request (we need the secrets.OPENAI_API_KEY to be available for forks) + pull_request_target: + types: [opened, reopened, ready_for_review, synchronize] +permissions: + contents: read + pull-requests: write jobs: detect-ai: runs-on: ubuntu-latest