From 38efb702aad739f4e7c3bb0ca9fad746b65e5cde Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 18 Nov 2025 20:29:22 +0100 Subject: [PATCH] github: Adjust AI Watchdog workflow to make it run PRs from forks --- .github/workflows/aiwatchdog.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- 2.39.5