github: Adjust AI Watchdog workflow to make it run PRs from forks

This commit is contained in:
Bjørn Erik Pedersen
2025-11-18 20:29:22 +01:00
parent bdf8b1a915
commit 38efb702aa
+7 -1
View File
@@ -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