Skip to content

Commit 38efb70

Browse files
committed
github: Adjust AI Watchdog workflow to make it run PRs from forks
1 parent bdf8b1a commit 38efb70

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎.github/workflows/aiwatchdog.yml‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
name: AI Detection
2-
on: [pull_request]
2+
on:
3+
# Use pull_request_target instead of pull_request (we need the secrets.OPENAI_API_KEY to be available for forks)
4+
pull_request_target:
5+
types: [opened, reopened, ready_for_review, synchronize]
6+
permissions:
7+
contents: read
8+
pull-requests: write
39
jobs:
410
detect-ai:
511
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)